|
@@ -1,11 +1,5 @@
|
|
|
-%define ver 0.11.383.102
|
|
|
-%define rel 3
|
|
|
-%define utdic 20100601
|
|
|
-%define enable_utdic_jinmei 0
|
|
|
-%define enable_utdic_zipcode 0
|
|
|
-%define enable_utdic_meisi 0
|
|
|
-%define enable_utdic_jigyosyo 0
|
|
|
-%define enable_edict_katakanago 0
|
|
|
+%define ver 0.12.402.102
|
|
|
+%define rel 1
|
|
|
|
|
|
%define scim_dir %(pkg-config --variable=moduledir scim)
|
|
|
|
|
@@ -22,9 +16,6 @@ URL: http://code.google.com/p/mozc/
|
|
|
# See http://code.google.com/p/mozc/wiki/LinuxBuildInstructions
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
|
|
|
|
-# Additional dictionaries by UTUMI Hirosi
|
|
|
-Source1: mozcdic-ut-%{utdic}.tar.bz2
|
|
|
-
|
|
|
## Mozc icons by AWASHIRO Ikuya
|
|
|
## http://blog.goo.ne.jp/ikunya/e/2ac954b762a5eec3cc767f2502971f14
|
|
|
# http://twitpic.com/1ybqpd
|
|
@@ -126,7 +117,7 @@ tool and about dialog.
|
|
|
Mozc GUI ユーティリティー。設定ツールやユーザ辞書ツールなどが含まれます。
|
|
|
|
|
|
%prep
|
|
|
-%setup -q -a 1
|
|
|
+%setup -q
|
|
|
#%patch0 -p0 -b .fix-x86_64
|
|
|
%patch1 -p1 -b .fix-i386
|
|
|
%ifarch x86_64
|
|
@@ -136,34 +127,6 @@ Mozc GUI ユーティリティー。設定ツールやユーザ辞書ツール
|
|
|
# update execute files path
|
|
|
%{__sed} -i -e"s|/usr/lib/mozc|%{_libexecdir}|g" base/util.cc
|
|
|
|
|
|
-# Add some dictionaries
|
|
|
-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/
|
|
|
-%{__cp} dictionary1.txt dictionary1.txt.new
|
|
|
-%if %{enable_utdic_jinmei}
|
|
|
-%{__cat} mozcdic-ut-jinmei-*.txt >> dictionary1.txt.new
|
|
|
-%endif
|
|
|
-%if %{enable_utdic_zipcode}
|
|
|
-%{__cat} mozcdic-ut-zipcode-*.txt >> dictionary1.txt.new
|
|
|
-%endif
|
|
|
-%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
|
|
|
|
|
|
%build
|
|
|
%{__python} build_mozc.py gyp --gypdir=%{_bindir}
|
|
@@ -177,23 +140,25 @@ popd
|
|
|
%{__mkdir_p} %{buildroot}%{_libdir}
|
|
|
%{__mkdir_p} %{buildroot}%{_libexecdir}
|
|
|
|
|
|
+%define output_dir out_linux/Release
|
|
|
+
|
|
|
# ibus-mozc
|
|
|
-%{__cp} -p out/Release/ibus_mozc %{buildroot}%{_libdir}/ibus-engine-mozc
|
|
|
+%{__cp} -p %{output_dir}/ibus_mozc %{buildroot}%{_libdir}/ibus-engine-mozc
|
|
|
%{__mkdir_p} %{buildroot}%{_datadir}/ibus/component/
|
|
|
-%{__sed} 's|/usr/libexec|%{_libdir}|' < unix/ibus/mozc.xml > %{buildroot}%{_datadir}/ibus/component/mozc.xml
|
|
|
+%{__sed} 's|/usr/libexec|%{_libdir}|' < %{output_dir}/obj/gen/unix/ibus/mozc.xml > %{buildroot}%{_datadir}/ibus/component/mozc.xml
|
|
|
|
|
|
# scim-mozc
|
|
|
%{__mkdir_p} %{buildroot}%{scim_dir}/{IMEngine,SetupUI}
|
|
|
-%{__cp} -p out/Release/lib.target/libscim_mozc.so \
|
|
|
+%{__cp} -p %{output_dir}/lib.target/libscim_mozc.so \
|
|
|
%{buildroot}%{scim_dir}/IMEngine/mozc.so
|
|
|
-%{__cp} -p out/Release/lib.target/libscim_mozc_setup.so \
|
|
|
+%{__cp} -p %{output_dir}/lib.target/libscim_mozc_setup.so \
|
|
|
%{buildroot}%{scim_dir}/SetupUI/mozc-setup.so
|
|
|
|
|
|
# mozc-server
|
|
|
-%{__cp} -p out/Release/mozc_server %{buildroot}%{_libexecdir}
|
|
|
+%{__cp} -p %{output_dir}/mozc_server %{buildroot}%{_libexecdir}
|
|
|
|
|
|
# mozc_tool
|
|
|
-%{__cp} -p out/Release/mozc_tool %{buildroot}%{_libexecdir}
|
|
|
+%{__cp} -p %{output_dir}/mozc_tool %{buildroot}%{_libexecdir}
|
|
|
|
|
|
# install icon (temporary)
|
|
|
%{__mkdir_p} %{buildroot}%{_datadir}/ibus-mozc/setup
|
|
@@ -209,22 +174,17 @@ popd
|
|
|
%{__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
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root)
|
|
|
-%doc COPYING README.vine utdic edict
|
|
|
+%doc COPYING README.vine
|
|
|
|
|
|
%files server
|
|
|
%defattr(-,root,root)
|
|
|
-%doc COPYING README.vine utdic edict
|
|
|
+%doc COPYING README.vine
|
|
|
%{_libexecdir}/mozc_server
|
|
|
|
|
|
%files utils-gui
|
|
@@ -253,6 +213,12 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%{_datadir}/scim/icons/scim-mozc-tool.png
|
|
|
|
|
|
%changelog
|
|
|
+* Fri Jul 2 2010 IWAI, Masaharu <iwai@alib.jp> 0.12.402.102-1
|
|
|
+- new upstream release
|
|
|
+- drop mozcdic-ut dictionary
|
|
|
+- update README.vine (Source10)
|
|
|
+- defined output_dir macro for %%install section
|
|
|
+
|
|
|
* Thu Jun 24 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.383.102-3
|
|
|
- add x86_64 libdir patch (Patch2): based openSUSE by kazukado
|
|
|
|