|
@@ -0,0 +1,104 @@
|
|
|
|
+Name: ibus-mozc
|
|
|
|
+Summary: IBus engine for Mozc(GoogleIME)
|
|
|
|
+Summary(ja): IBus 用 Mozc(Google日本語入力) エンジン
|
|
|
|
+Version: 0.11.0
|
|
|
|
+Release: 2%{?_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
|
|
|
|
+
|
|
|
|
+# Additional dictionaries by UTUMI Hirosi
|
|
|
|
+Source1: mozc-jinmei-20100513.7z
|
|
|
|
+Source2: mozc-zipcode-20100513.7z
|
|
|
|
+Source3: ibus-mozc.png
|
|
|
|
+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
|
|
|
|
+BuildRequires: ibus-devel
|
|
|
|
+BuildRequires: dbus-devel
|
|
|
|
+BuildRequires: openssl-devel
|
|
|
|
+BuildRequires: zlib-devel
|
|
|
|
+BuildRequires: subversion
|
|
|
|
+BuildRequires: curl-devel
|
|
|
|
+BuildRequires: p7zip
|
|
|
|
+
|
|
|
|
+Packager: kazutaka
|
|
|
|
+
|
|
|
|
+%description
|
|
|
|
+Mozc is a Japanese Input Method Editor (IME) designed for
|
|
|
|
+multi-platform such as Chromium OS, Windows, Mac and Linux.
|
|
|
|
+This open-source project originates from Google Japanese Input.
|
|
|
|
+
|
|
|
|
+%description -l ja
|
|
|
|
+Mozc は日本語入力用の IME (Imput Method Editor)です。
|
|
|
|
+Chromium OS や Windows、Mac、Linux といったマルチプラット
|
|
|
|
+フォームで利用できるようにデザインされており、「Google日本語
|
|
|
|
+入力」のオープンソース版です。
|
|
|
|
+
|
|
|
|
+このパッケージには Mozc の IBus 用エンジンが含まれています。
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+%prep
|
|
|
|
+%setup -q -n src
|
|
|
|
+%patch0 -p0 -b .fix-x86_64
|
|
|
|
+%patch1 -p1 -b .fix-i386
|
|
|
|
+
|
|
|
|
+# Add some dictionaries
|
|
|
|
+cp %SOURCE1 data/dictionary/
|
|
|
|
+cp %SOURCE2 data/dictionary/
|
|
|
|
+cd data/dictionary/
|
|
|
|
+7za x mozc-jinmei-*.7z
|
|
|
|
+7za x mozc-zipcode-*.7z
|
|
|
|
+cat dictionary1.txt mozc-jinmei-*.txt mozc-zipcode-*.txt > dictionary1.txt.new
|
|
|
|
+mv dictionary1.txt.new dictionary1.txt
|
|
|
|
+cd -
|
|
|
|
+
|
|
|
|
+%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
|
|
|
|
+
|
|
|
|
+%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
|
|
|
|
+
|
|
|
|
+# install icon (temporary)
|
|
|
|
+mkdir -p %buildroot/%{_datadir}/%{name}
|
|
|
|
+cp -p %{SOURCE3} %buildroot/%{_datadir}/%{name}/product_icon.png
|
|
|
|
+
|
|
|
|
+# install document
|
|
|
|
+chmod 644 debian/*
|
|
|
|
+cp debian/copyright COPYING
|
|
|
|
+
|
|
|
|
+%clean
|
|
|
|
+rm -rf $RPM_BUILD_ROOT
|
|
|
|
+
|
|
|
|
+%files
|
|
|
|
+%defattr(-,root,root)
|
|
|
|
+%doc COPYING
|
|
|
|
+%{_libdir}/ibus-engine-mozc
|
|
|
|
+%{_datadir}/ibus/component/mozc.xml
|
|
|
|
+%{_datadir}/%{name}/product_icon.png
|
|
|
|
+
|
|
|
|
+%changelog
|
|
|
|
+* Fri May 14 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.0-2
|
|
|
|
+- add Patch1 to fix compile error on i386 (workaround patch)
|
|
|
|
+
|
|
|
|
+* Thu May 13 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.0-1
|
|
|
|
+- initial build for Vine Liux based on custom mandriva package made by UTUMI-san
|
|
|
|
+
|
|
|
|
+* Thu May 13 2010 UTUMI Hirosi <utuhiro78@yahoo.co.jp> 0.11.0-2.20110511.1mdv2010.1
|
|
|
|
+- add some dictionaries
|
|
|
|
+
|
|
|
|
+* Wed May 12 2010 UTUMI Hirosi <utuhiro78@yahoo.co.jp> 0.11.0-1.20110511.1mdv2010.1
|
|
|
|
+- first release
|
|
|
|
+
|