|
@@ -1,7 +1,9 @@
|
|
|
%define ver 0.11.0
|
|
|
-%define rel 7
|
|
|
+%define rel 8
|
|
|
%define svnrev 28
|
|
|
%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
|
|
@@ -35,10 +37,11 @@ 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: openssl-devel, zlib-devel
|
|
|
BuildRequires: curl-devel
|
|
|
BuildRequires: protobuf-devel, gtest-devel
|
|
|
BuildRequires: qt4-devel
|
|
|
+BuildRequires: gyp
|
|
|
|
|
|
Requires: mozc-server = %{version}-%{release}
|
|
|
Requires: mozc-utils-gui = %{version}-%{release}
|
|
@@ -111,7 +114,13 @@ pushd mozcdic-ut-%{utdic}
|
|
|
popd
|
|
|
|
|
|
pushd data/dictionary/
|
|
|
-%{__cat} dictionary1.txt mozcdic-ut-jinmei-*.txt mozcdic-ut-zipcode-*.txt > dictionary1.txt.new
|
|
|
+%{__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
|
|
@@ -125,27 +134,29 @@ pushd data/dictionary/
|
|
|
popd
|
|
|
|
|
|
%build
|
|
|
-%{__python} build_mozc.py gyp
|
|
|
+%{__python} build_mozc.py gyp --gypdir=%{_bindir}
|
|
|
%{__python} build_mozc.py build_tools -c Release
|
|
|
%{__python} build_mozc.py build -c Release unix/ibus/ibus.gyp:ibus_mozc server/server.gyp:mozc_server gui/gui.gyp:mozc_tool
|
|
|
|
|
|
|
|
|
%install
|
|
|
-%{__rm} -rf %buildroot
|
|
|
-%{__mkdir_p} %buildroot/%{_libdir}
|
|
|
-%{__cp} -p out/Release/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
|
|
|
+%{__rm} -rf %{buildroot}
|
|
|
+%{__mkdir_p} %{buildroot}%{_libdir}/mozc
|
|
|
+
|
|
|
+# ibus-mozc
|
|
|
+%{__cp} -p out/Release/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
|
|
|
+
|
|
|
|
|
|
# mozc-server
|
|
|
-%{__mkdir_p} %buildroot/%{_libdir}/mozc
|
|
|
-%{__cp} -p out/Release/mozc_server %buildroot/%{_libdir}/mozc
|
|
|
+%{__cp} -p out/Release/mozc_server %{buildroot}%{_libdir}/mozc
|
|
|
|
|
|
# mozc_tool
|
|
|
-%{__cp} -p out/Release/mozc_tool %buildroot/%{_libdir}/mozc
|
|
|
+%{__cp} -p out/Release/mozc_tool %{buildroot}%{_libdir}/mozc
|
|
|
|
|
|
# install icon (temporary)
|
|
|
-%{__mkdir_p} %{buildroot}%{_datadir}/ibus-mozc
|
|
|
+%{__mkdir_p} %{buildroot}%{_datadir}/ibus-mozc/setup
|
|
|
%{__cp} -p %{SOURCE3} %{buildroot}%{_datadir}/ibus-mozc/product_icon.png
|
|
|
%{__cp} -p %{SOURCE4} %{buildroot}%{_datadir}/ibus-mozc/unknown.ico
|
|
|
|
|
@@ -184,10 +195,17 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%{_libdir}/ibus-engine-mozc
|
|
|
%{_datadir}/ibus/component/mozc.xml
|
|
|
%dir %{_datadir}/ibus-mozc
|
|
|
+%dir %{_datadir}/ibus-mozc/setup
|
|
|
%{_datadir}/ibus-mozc/product_icon.png
|
|
|
%{_datadir}/ibus-mozc/unknown.ico
|
|
|
|
|
|
%changelog
|
|
|
+* Fri Jun 4 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-8.svn28
|
|
|
+- disable all mozcdic-ut dictionary (disable jinmei and zipcode)
|
|
|
+- update README.vine
|
|
|
+- add BuildRequires: gyp
|
|
|
+- drop BuildRequires: subversion
|
|
|
+
|
|
|
* Wed Jun 2 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-7.svn28
|
|
|
- add mozc_tool's icon (Source4)
|
|
|
- rename Source0: fixed created directory name "src"
|