|
@@ -1,26 +1,26 @@
|
|
|
-Name: ibus-mozc
|
|
|
-Summary: IBus engine for Mozc(GoogleIME)
|
|
|
-Summary(ja): IBus 用 Mozc(Google日本語入力) エンジン
|
|
|
+%define ver 0.11.0
|
|
|
+%define rel 5
|
|
|
+%define svnrev 28
|
|
|
+
|
|
|
+Name: mozc
|
|
|
+Summary: Japanese Input Method Editor designed for multi-platform
|
|
|
+Summary(ja): マルチプラットホームで動くように設計された日本語インプットメソッドエディタ
|
|
|
Version: 0.11.0
|
|
|
-Release: 4%{?_dist_release}
|
|
|
+Release: %{rel}.svn%{svnrev}%{?_dist_release}
|
|
|
Group: System Environment/Libraries
|
|
|
License: BSD-like
|
|
|
URL: http://code.google.com/p/mozc/
|
|
|
|
|
|
# Source tar ball is not released yet.
|
|
|
# See http://code.google.com/p/mozc/wiki/LinuxBuildInstructions
|
|
|
-Source0: %{name}-%{version}.tar.bz2
|
|
|
+Source0: %{name}-r%{svnrev}.tar.bz2
|
|
|
|
|
|
# Additional dictionaries by UTUMI Hirosi
|
|
|
Source1: mozc-jinmei-20100513.7z
|
|
|
Source2: mozc-zipcode-20100513.7z
|
|
|
+# http://twitpic.com/1ouyrr by AWASHIRO Ikuya
|
|
|
Source3: ibus-mozc.png
|
|
|
|
|
|
-# Setting tool for mozc
|
|
|
-# See http://github.com/hidegit/mozc-config
|
|
|
-Source10: mozc-config.tar.bz2
|
|
|
-Source11: ibus-setup-mozc.desktop
|
|
|
-
|
|
|
#Patch0: ibus-mozc-fix-for-x86_64.diff
|
|
|
Patch1: ibus-mozc-0.11.0-fix-compile-w-i386.patch
|
|
|
|
|
@@ -30,6 +30,10 @@ BuildRequires: openssl-devel, zlib-devel, subversion
|
|
|
BuildRequires: curl-devel, p7zip
|
|
|
BuildRequires: protobuf-devel, gtest-devel
|
|
|
|
|
|
+Requires: mozc-server = %{version}-%{release}
|
|
|
+Requires: mozc-utils-gui = %{version}-%{release}
|
|
|
+Requires: ibus-mozc = %{version}-%{release}
|
|
|
+
|
|
|
Packager: kazutaka
|
|
|
|
|
|
%description
|
|
@@ -43,11 +47,47 @@ Chromium OS や Windows、Mac、Linux といったマルチプラット
|
|
|
フォームで利用できるようにデザインされており、「Google日本語
|
|
|
入力」のオープンソース版です。
|
|
|
|
|
|
-このパッケージには Mozc の IBus 用エンジンが含まれています。
|
|
|
+%package server
|
|
|
+Summary: Server part of the Mozc input method
|
|
|
+Summary(ja): Mozc インプットメソッドのサーバ部分
|
|
|
+Group: Applications/System
|
|
|
+
|
|
|
+%description server
|
|
|
+Server part of the Mozc input method, used by Mozc clients such as
|
|
|
+ibus-mozc.
|
|
|
+
|
|
|
+%description server -l ja
|
|
|
+Mozc インプットメソッドのサーバ部分。ibus-mozcなどのMozcクライアントから
|
|
|
+使うことができます。
|
|
|
+
|
|
|
+%package -n ibus-mozc
|
|
|
+Summary: iBus engine module for Mozc
|
|
|
+Summary(ja): Mozc 用 iBus エンジンモジュール
|
|
|
+Group: System Environment/Libraries
|
|
|
+Requires: mozc-server = %{version}-%{release}
|
|
|
|
|
|
+%description -n ibus-mozc
|
|
|
+iBus engine module for Mozc.
|
|
|
+
|
|
|
+%description -n ibus-mozc -l ja
|
|
|
+Mozc 用 iBus エンジンモジュール。
|
|
|
+
|
|
|
+%package utils-gui
|
|
|
+Summary: Mozc GUI utilities
|
|
|
+Summary(ja): Mozc GUI ユーティリティー
|
|
|
+Group: Applications/System
|
|
|
+Requires: qt4
|
|
|
+Requires: mozc-server = %{version}-%{release}
|
|
|
+
|
|
|
+%description utils-gui
|
|
|
+Mozc GUI uitilities, such as the configuration dialog, user dictionary
|
|
|
+tool and about dialog.
|
|
|
+
|
|
|
+%description utils-gui -l ja
|
|
|
+Mozc GUI ユーティリティー。設定ツールやユーザ辞書ツールなどが含まれます。
|
|
|
|
|
|
%prep
|
|
|
-%setup -q -n src -a 10
|
|
|
+%setup -q -n src
|
|
|
#%patch0 -p0 -b .fix-x86_64
|
|
|
%patch1 -p1 -b .fix-i386
|
|
|
|
|
@@ -64,12 +104,8 @@ popd
|
|
|
%build
|
|
|
%{__python} build_mozc.py gyp
|
|
|
%{__python} build_mozc.py build_tools -c Release
|
|
|
-%{__python} build_mozc.py build -c Release unix/unix.gyp:ibus_mozc
|
|
|
+%{__python} build_mozc.py build -c Release unix/ibus/ibus.gyp:ibus_mozc server/server.gyp:mozc_server gui/gui.gyp:mozc_tool
|
|
|
|
|
|
-# make mozc-config
|
|
|
-pushd mozc-config
|
|
|
-%{__make}
|
|
|
-popd
|
|
|
|
|
|
%install
|
|
|
%{__rm} -rf %buildroot
|
|
@@ -78,45 +114,59 @@ popd
|
|
|
%{__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
|
|
|
+
|
|
|
+# mozc_tool
|
|
|
+%{__cp} -p out/Release/mozc_tool %buildroot/%{_libdir}/mozc
|
|
|
+
|
|
|
# install icon (temporary)
|
|
|
-%{__mkdir_p} %buildroot/%{_datadir}/%{name}
|
|
|
-%{__cp} -p %{SOURCE3} %buildroot/%{_datadir}/%{name}/product_icon.png
|
|
|
+%{__mkdir_p} %buildroot/%{_datadir}/ibus-mozc
|
|
|
+%{__cp} -p %{SOURCE3} %buildroot/%{_datadir}/ibus-mozc/product_icon.png
|
|
|
|
|
|
# install document
|
|
|
%{__chmod} 644 debian/*
|
|
|
%{__cp} debian/copyright COPYING
|
|
|
|
|
|
-# install mozc-config
|
|
|
-pushd mozc-config
|
|
|
-%{__make} install prefix=%buildroot/%{_prefix}
|
|
|
-popd
|
|
|
-
|
|
|
-# install desktop entry for ibus-setup-mozc
|
|
|
-%{__mkdir_p} %buildroot/%{_datadir}/applications
|
|
|
-%{__cp} %{SOURCE11} %buildroot/%{_datadir}/applications
|
|
|
-
|
|
|
-# install document for mozc-config
|
|
|
-%{__cp} mozc-config/README README.mozc-config
|
|
|
|
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root)
|
|
|
-%doc COPYING README.mozc-config
|
|
|
+%doc COPYING
|
|
|
+
|
|
|
+%files server
|
|
|
+%defattr(-,root,root)
|
|
|
+%doc COPYING
|
|
|
+%dir %{_libdir}/mozc
|
|
|
+%{_libdir}/mozc/mozc_server
|
|
|
+
|
|
|
+%files utils-gui
|
|
|
+%defattr(-,root,root)
|
|
|
+%doc COPYING
|
|
|
+%dir %{_libdir}/mozc
|
|
|
+%{_libdir}/mozc/mozc_tool
|
|
|
+
|
|
|
+%files -n ibus-mozc
|
|
|
+%defattr(-,root,root)
|
|
|
+%doc COPYING
|
|
|
%{_libdir}/ibus-engine-mozc
|
|
|
%{_datadir}/ibus/component/mozc.xml
|
|
|
-%{_datadir}/%{name}/product_icon.png
|
|
|
-# for mozc-config
|
|
|
-%{_bindir}/mozc-config
|
|
|
-%{_bindir}/mozc-dict
|
|
|
-%{_datadir}/applications/ibus-setup-mozc.desktop
|
|
|
-%{_datadir}/ibus-mozc/setup/setup.glade
|
|
|
-%{_libexecdir}/ibus-setup-mozc
|
|
|
-%{_localedir}/ja/LC_MESSAGES/ibus-mozc.mo
|
|
|
-
|
|
|
-
|
|
|
+%dir %{_datadir}/ibus-mozc
|
|
|
+%{_datadir}/ibus-mozc/product_icon.png
|
|
|
+
|
|
|
%changelog
|
|
|
+* Tue Jun 1 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-5.svn28
|
|
|
+- rename base name: mozc
|
|
|
+- add new sub packages:
|
|
|
+ - mozc-server
|
|
|
+ - mozc-utils-gui
|
|
|
+- update source to revision 28
|
|
|
+- replace icon (Source3)
|
|
|
+- drop mozc-config: upstream implement same tool
|
|
|
+
|
|
|
* Sun May 23 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.0-4
|
|
|
- update source to revision 23
|
|
|
- add BuildRequires protobuf-devel, gtest-devel
|