|
@@ -1,6 +1,10 @@
|
|
|
%define ver 0.11.0
|
|
|
-%define rel 5
|
|
|
+%define rel 6
|
|
|
%define svnrev 28
|
|
|
+%define utdic 20100601
|
|
|
+%define enable_utdic_meisi 0
|
|
|
+%define enable_utdic_jigyosyo 0
|
|
|
+%define enable_edict_katakanago 0
|
|
|
|
|
|
Name: mozc
|
|
|
Summary: Japanese Input Method Editor designed for multi-platform
|
|
@@ -8,7 +12,7 @@ Summary(ja): マルチプラットホームで動くように設計された日
|
|
|
Version: 0.11.0
|
|
|
Release: %{rel}.svn%{svnrev}%{?_dist_release}
|
|
|
Group: System Environment/Libraries
|
|
|
-License: BSD-like
|
|
|
+License: BSD-like (and EDICT is CC-by-sa 3.0 Unported)
|
|
|
URL: http://code.google.com/p/mozc/
|
|
|
|
|
|
# Source tar ball is not released yet.
|
|
@@ -16,19 +20,23 @@ URL: http://code.google.com/p/mozc/
|
|
|
Source0: %{name}-r%{svnrev}.tar.bz2
|
|
|
|
|
|
# Additional dictionaries by UTUMI Hirosi
|
|
|
-Source1: mozc-jinmei-20100513.7z
|
|
|
-Source2: mozc-zipcode-20100513.7z
|
|
|
+Source1: mozcdic-ut-%{utdic}.tar.bz2
|
|
|
+
|
|
|
# http://twitpic.com/1ouyrr by AWASHIRO Ikuya
|
|
|
Source3: ibus-mozc.png
|
|
|
|
|
|
+# Vine Lunux
|
|
|
+Source10: README.vine
|
|
|
+
|
|
|
#Patch0: ibus-mozc-fix-for-x86_64.diff
|
|
|
Patch1: ibus-mozc-0.11.0-fix-compile-w-i386.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
BuildRequires: python, ibus-devel, dbus-devel
|
|
|
BuildRequires: openssl-devel, zlib-devel, subversion
|
|
|
-BuildRequires: curl-devel, p7zip
|
|
|
+BuildRequires: curl-devel
|
|
|
BuildRequires: protobuf-devel, gtest-devel
|
|
|
+BuildRequires: qt4-devel
|
|
|
|
|
|
Requires: mozc-server = %{version}-%{release}
|
|
|
Requires: mozc-utils-gui = %{version}-%{release}
|
|
@@ -87,17 +95,30 @@ tool and about dialog.
|
|
|
Mozc GUI ユーティリティー。設定ツールやユーザ辞書ツールなどが含まれます。
|
|
|
|
|
|
%prep
|
|
|
-%setup -q -n src
|
|
|
+%setup -q -n src -a 1
|
|
|
#%patch0 -p0 -b .fix-x86_64
|
|
|
%patch1 -p1 -b .fix-i386
|
|
|
|
|
|
# Add some dictionaries
|
|
|
-%{__cp} %SOURCE1 data/dictionary/
|
|
|
-%{__cp} %SOURCE2 data/dictionary/
|
|
|
+pushd mozcdic-ut-%{utdic}
|
|
|
+%{__cp} mozcdic-ut-jinmei-*.txt ../data/dictionary/
|
|
|
+%{__cp} mozcdic-ut-zipcode-*.txt ../data/dictionary/
|
|
|
+%{__cp} mozcdic-ut-meisi-*.txt ../data/dictionary/
|
|
|
+%{__cp} mozcdic-ut-jigyosyo-*.txt ../data/dictionary/
|
|
|
+%{__cp} edict-katakanago/mozcdic-ut-edict-katakanago-*.txt ../data/dictionary/
|
|
|
+popd
|
|
|
+
|
|
|
pushd data/dictionary/
|
|
|
-7za x mozc-jinmei-*.7z
|
|
|
-7za x mozc-zipcode-*.7z
|
|
|
-%{__cat} dictionary1.txt mozc-jinmei-*.txt mozc-zipcode-*.txt > dictionary1.txt.new
|
|
|
+%{__cat} dictionary1.txt mozcdic-ut-jinmei-*.txt mozcdic-ut-zipcode-*.txt > dictionary1.txt.new
|
|
|
+%if %{enable_utdic_meisi}
|
|
|
+%{__cat} mozcdic-ut-meisi-*.txt >> dictionary1.txt.new
|
|
|
+%endif
|
|
|
+%if %{enable_utdic_jigyosyo}
|
|
|
+%{__cat} mozcdic-ut-jigyosyo-*.txt >> dictionary1.txt.new
|
|
|
+%endif
|
|
|
+%if %{enable_edict_katakanago}
|
|
|
+%{__cat} mozcdic-ut-edict-katakanago-*.txt >> dictionary1.txt.new
|
|
|
+%endif
|
|
|
%{__mv} dictionary1.txt.new dictionary1.txt
|
|
|
popd
|
|
|
|
|
@@ -128,6 +149,11 @@ popd
|
|
|
# install document
|
|
|
%{__chmod} 644 debian/*
|
|
|
%{__cp} debian/copyright COPYING
|
|
|
+%{__cp} %{SOURCE10} .
|
|
|
+%{__mkdir} utdic
|
|
|
+%{__cp} mozcdic-ut-%{utdic}/{AUTHORS,COPYING,ChangeLog,README} utdic
|
|
|
+%{__mkdir} edict
|
|
|
+%{__cp} mozcdic-ut-%{utdic}/edict-katakanago/README.edict edict
|
|
|
|
|
|
|
|
|
%clean
|
|
@@ -135,11 +161,11 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root)
|
|
|
-%doc COPYING
|
|
|
+%doc COPYING README.vine utdic edict
|
|
|
|
|
|
%files server
|
|
|
%defattr(-,root,root)
|
|
|
-%doc COPYING
|
|
|
+%doc COPYING README.vine utdic edict
|
|
|
%dir %{_libdir}/mozc
|
|
|
%{_libdir}/mozc/mozc_server
|
|
|
|
|
@@ -158,6 +184,11 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%{_datadir}/ibus-mozc/product_icon.png
|
|
|
|
|
|
%changelog
|
|
|
+* Tue Jun 1 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-6.svn28
|
|
|
+- update mozcdic-ut 20100601 (Source10)
|
|
|
+- include documents for all dictionaries
|
|
|
+- add BuildRequires: qt4-devel
|
|
|
+
|
|
|
* Tue Jun 1 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-5.svn28
|
|
|
- rename base name: mozc
|
|
|
- add new sub packages:
|