source: projects/specs/trunk/m/mozc/mozc-vl.spec @ 6035

Revision 6035, 13.8 KB checked in by daisuke, 12 years ago (diff)

update to 1.4.1003.102

RevLine 
[6035]1%define         ver     1.4.1003.102
2%define         rel     1
[1128]3
[4485]4# if you want to make scim-mozc package, rpm --define with_scim:1
5%define         with_scim       0
6
7%if %{with_scim}
[1230]8%define         scim_dir                %(pkg-config --variable=moduledir scim)
[4485]9%endif
[2063]10%define         mozc_el                 mozc-el
[1230]11
[1128]12Name:           mozc
13Summary:        Japanese Input Method Editor designed for multi-platform
14Summary(ja):    マルチプラットホームで動くように設計された日本語インプットメソッドエディタ
[1217]15Version:        %{ver}
16Release:        %{rel}%{?_dist_release}
[1012]17Group:          System Environment/Libraries
[3558]18License:        BSD-like
[1012]19URL:            http://code.google.com/p/mozc/
20
[1313]21Source0:        http://mozc.googlecode.com/files/%{name}-%{version}.tar.bz2
22## svn debian/copyright
[2063]23Source1:        mozc-copyright
24# for mozc-el
25Source2:        %{name}-install.sh
26Source3:        %{name}-remove.sh
27Source4:        vine-default-%{name}.el
28Source5:        %{name}-init.el
[1012]29
[2063]30
[1130]31# Vine Lunux
32Source10:       README.vine
[5236]33Patch10:        mozc-1.3.911.102-ibus-japanese.patch
[1130]34
[1012]35BuildRoot:      %{_tmppath}/%{name}-%{version}-root
[1074]36BuildRequires:  python, ibus-devel, dbus-devel
[1140]37BuildRequires:  openssl-devel, zlib-devel
[1130]38BuildRequires:  curl-devel
[1074]39BuildRequires:  protobuf-devel, gtest-devel
[1130]40BuildRequires:  qt4-devel
[1140]41BuildRequires:  gyp
[4485]42%if %{with_scim}
[1230]43# for scim-mozc
44BuildRequires:  pkgconfig
45BuildRequires:  gtk2-devel
46BuildRequires:  scim-devel
[4485]47%endif
[3485]48# for 1.1.690.102+
49BuildRequires:  zinnia-devel
[1012]50
[1128]51Requires:       mozc-server = %{version}-%{release}
52Requires:       mozc-utils-gui = %{version}-%{release}
53Requires:       ibus-mozc = %{version}-%{release}
54
[6035]55Distribution: Vine Linux
56Vendor: Project Vine
57Packager: kazutaka, daisuke
[1012]58
59%description
60Mozc is a Japanese Input Method Editor (IME) designed for
61multi-platform such as Chromium OS, Windows, Mac and Linux.
62This open-source project originates from Google Japanese Input.
63
64%description -l ja
65Mozc は日本語入力用の IME (Imput Method Editor)です。
66Chromium OS や Windows、Mac、Linux といったマルチプラット
67フォームで利用できるようにデザインされており、「Google日本語
68入力」のオープンソース版です。
69
[1128]70%package server
71Summary:        Server part of the Mozc input method
72Summary(ja):    Mozc インプットメソッドのサーバ部分
73Group:          Applications/System
[1012]74
[1128]75%description server
76Server part of the Mozc input method, used by Mozc clients such as
77ibus-mozc.
[1012]78
[1128]79%description server -l ja
80Mozc インプットメソッドのサーバ部分。ibus-mozcなどのMozcクライアントから
81使うことができます。
82
83%package -n ibus-mozc
84Summary:        iBus engine module for Mozc
85Summary(ja):    Mozc 用 iBus エンジンモジュール
86Group:          System Environment/Libraries
87Requires:       mozc-server = %{version}-%{release}
88
89%description -n ibus-mozc
90iBus engine module for Mozc.
91
92%description -n ibus-mozc -l ja
93Mozc 用 iBus エンジンモジュール。
94
[4485]95%if %{with_scim}
[1230]96%package -n scim-mozc
97Summary:        SCIM IMEngine module for Mozc
98Summary(ja):    Mozc 用 SCIM IMEngine モジュール
99Group:          System Environment/Libraries
100Requires:       mozc-server = %{version}-%{release}
101Requires:       scim gtk2
102
103%description -n scim-mozc
104SCIM IMEngine module for Mozc.
105
106%description -n scim-mozc -l ja
107Mozc 用 SCIM IMエンジンモジュール
108
[4485]109%endif
110
[1128]111%package utils-gui
112Summary:        Mozc GUI utilities
113Summary(ja):    Mozc GUI ユーティリティー
114Group:          Applications/System
115Requires:       qt4
116Requires:       mozc-server = %{version}-%{release}
[3558]117Requires:       tegaki-zinnia-japanese
[1128]118
119%description utils-gui
120Mozc GUI uitilities, such as the configuration dialog, user dictionary
121tool and about dialog.
122
123%description utils-gui -l ja
124Mozc GUI ユーティリティー。設定ツールやユーザ辞書ツールなどが含まれます。
125
[2063]126%package -n %{mozc_el}
127Summary:        Emacs Lisp frontend for Mozc
128Summary(ja):    Mozc 用 Emacs Lisp フロントエンド
129Group:          Applications/Editors/Emacs
130BuildRequires:  emacs
131Requires(post,preun): emacsen, emacsen-common >= 0.1
132Requires:       mozc-server = %{version}-%{release}
133
134%description -n %{mozc_el}
135Emacs Lisp frontend for Mozc
136
137%description -n %{mozc_el} -l ja
138Mozc のための Emacs-lisp フロントエンド
139
[1012]140%prep
[1300]141%setup -q
[5236]142%patch10 -p1 -b.japanese
[1313]143%{__cp} -p %{SOURCE1} COPYING
[1012]144
[1177]145# update execute files path
146%{__sed} -i -e"s|/usr/lib/mozc|%{_libexecdir}|g" base/util.cc
147
[1130]148
[1012]149%build
[4642]150unset QTDIR
[6035]151%{__python} build_mozc.py gyp \
152  --gypdir=%{_bindir} \
153  --channel_dev=0 \
154  --use_libprotobuf
155
[1074]156%{__python} build_mozc.py build_tools -c Release
[1230]157%{__python} build_mozc.py build -c Release unix/ibus/ibus.gyp:ibus_mozc \
[4485]158%if %{with_scim}
[1230]159            unix/scim/scim.gyp:scim_mozc unix/scim/scim.gyp:scim_mozc_setup \
[4485]160%endif
[2063]161            unix/emacs/emacs.gyp:mozc_emacs_helper server/server.gyp:mozc_server \
162            gui/gui.gyp:mozc_tool
[1012]163
164%install
[1140]165%{__rm} -rf %{buildroot}
[1177]166%{__mkdir_p} %{buildroot}%{_libdir}
167%{__mkdir_p} %{buildroot}%{_libexecdir}
[1012]168
[1300]169%define output_dir out_linux/Release
170
[3558]171# main
172
[1140]173# ibus-mozc
[1300]174%{__cp} -p %{output_dir}/ibus_mozc %{buildroot}%{_libdir}/ibus-engine-mozc
[1140]175%{__mkdir_p} %{buildroot}%{_datadir}/ibus/component/
[1300]176%{__sed} 's|/usr/libexec|%{_libdir}|' < %{output_dir}/obj/gen/unix/ibus/mozc.xml > %{buildroot}%{_datadir}/ibus/component/mozc.xml
[1599]177## install icons
178%{__mkdir_p} %{buildroot}%{_datadir}/ibus-mozc/setup
179%{__cp} -p data/images/unix/ime_product_icon_opensource-32.png %{buildroot}%{_datadir}/ibus-mozc/product_icon.png
180%{__cp} -p data/images/unix/ui-tool.png %{buildroot}%{_datadir}/ibus-mozc/tool.png
181%{__cp} -p data/images/unix/ui-properties.png %{buildroot}%{_datadir}/ibus-mozc/properties.png
182%{__cp} -p data/images/unix/ui-dictionary.png %{buildroot}%{_datadir}/ibus-mozc/dictionary.png
183%{__cp} -p data/images/unix/ui-direct.png %{buildroot}%{_datadir}/ibus-mozc/direct.png
184%{__cp} -p data/images/unix/ui-hiragana.png %{buildroot}%{_datadir}/ibus-mozc/hiragana.png
185%{__cp} -p data/images/unix/ui-katakana_half.png %{buildroot}%{_datadir}/ibus-mozc/katakana_half.png
186%{__cp} -p data/images/unix/ui-katakana_full.png %{buildroot}%{_datadir}/ibus-mozc/katakana_full.png
187%{__cp} -p data/images/unix/ui-alpha_half.png %{buildroot}%{_datadir}/ibus-mozc/alpha_half.png
188%{__cp} -p data/images/unix/ui-alpha_full.png %{buildroot}%{_datadir}/ibus-mozc/alpha_full.png
[1140]189
[4485]190%if %{with_scim}
[1230]191# scim-mozc
192%{__mkdir_p} %{buildroot}%{scim_dir}/{IMEngine,SetupUI}
[1300]193%{__cp} -p %{output_dir}/lib.target/libscim_mozc.so \
[1230]194                                  %{buildroot}%{scim_dir}/IMEngine/mozc.so
[1300]195%{__cp} -p %{output_dir}/lib.target/libscim_mozc_setup.so \
[1230]196                                  %{buildroot}%{scim_dir}/SetupUI/mozc-setup.so
[1599]197## install icons
198%{__mkdir_p} %{buildroot}%{_datadir}/scim/icons
199%{__cp} -p data/images/unix/ime_product_icon_opensource-32.png %{buildroot}%{_datadir}/scim/icons/scim-mozc.png
200%{__cp} -p data/images/unix/ui-tool.png %{buildroot}%{_datadir}/scim/icons/scim-mozc-tool.png
201%{__cp} -p data/images/unix/ui-properties.png %{buildroot}%{_datadir}/scim/icons/scim-mozc-properties.png
202%{__cp} -p data/images/unix/ui-dictionary.png %{buildroot}%{_datadir}/scim/icons/scim-mozc-dictionary.png
203%{__cp} -p data/images/unix/ui-direct.png %{buildroot}%{_datadir}/scim/icons/scim-mozc-direct.png
204%{__cp} -p data/images/unix/ui-hiragana.png %{buildroot}%{_datadir}/scim/icons/scim-mozc-hiragana.png
205%{__cp} -p data/images/unix/ui-katakana_half.png %{buildroot}%{_datadir}/scim/icons/scim-mozc-katakana_half.png
206%{__cp} -p data/images/unix/ui-katakana_full.png %{buildroot}%{_datadir}/scim/icons/scim-mozc-katakana_full.png
207%{__cp} -p data/images/unix/ui-alpha_half.png %{buildroot}%{_datadir}/scim/icons/scim-mozc-alpha_half.png
208%{__cp} -p data/images/unix/ui-alpha_full.png %{buildroot}%{_datadir}/scim/icons/scim-mozc-alpha_full.png
[4485]209%endif
[1230]210
[1599]211
[1128]212# mozc-server
[1300]213%{__cp} -p %{output_dir}/mozc_server %{buildroot}%{_libexecdir}
[1128]214
215# mozc_tool
[1300]216%{__cp} -p %{output_dir}/mozc_tool %{buildroot}%{_libexecdir}
[1128]217
[2063]218# mozc-el
219%{__cp} -p %{output_dir}/mozc_emacs_helper %{buildroot}%{_libexecdir}
220mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp/%{name}/packages
221mkdir -p %{buildroot}%{emacsen_pkgdir}/install
222mkdir -p %{buildroot}%{emacsen_pkgdir}/remove
223cp -p unix/emacs/mozc.el %{SOURCE4} %{SOURCE5} %{buildroot}%{_datadir}/emacs/site-lisp/%{name}
224#
225# install script (bytecompile el and install elc , remove)
226#
227%_installemacsenscript %{name} %{SOURCE2}
[1012]228
[2063]229%_removeemacsenscript  %{name} %{SOURCE3}
230
[1012]231# install document
[1130]232%{__cp} %{SOURCE10} .
[1012]233
234%clean
235rm -rf $RPM_BUILD_ROOT
236
[2063]237
238%post -n %{mozc_el}
239#
240# bytecompile and install
241#
242if [ "$1" = 2 ]; then
243
244%_emacsenPackageRemove %{name}
245
246fi
247
248%_addemacsenlist %{name}
249
250%_emacsenPackageInstall %{name}
251
252
253%preun -n %{mozc_el}
254if [ "$1" = 0 ]; then
255
256%_emacsenPackageRemove %{name}
257
258%_removeemacsenlist %{name}
259
260fi
261
[1012]262%files
263%defattr(-,root,root)
[2428]264%doc COPYING README.vine CONTRIBUTORS
[1128]265
266%files server
267%defattr(-,root,root)
[1300]268%doc COPYING README.vine
[1177]269%{_libexecdir}/mozc_server
[1128]270
271%files utils-gui
272%defattr(-,root,root)
273%doc COPYING
[1177]274%{_libexecdir}/mozc_tool
[1128]275
276%files -n ibus-mozc
277%defattr(-,root,root)
278%doc COPYING
[1012]279%{_libdir}/ibus-engine-mozc
280%{_datadir}/ibus/component/mozc.xml
[1128]281%dir %{_datadir}/ibus-mozc
[1140]282%dir %{_datadir}/ibus-mozc/setup
[1599]283%{_datadir}/ibus-mozc/*.png
[1012]284
[4485]285%if %{with_scim}
[1230]286%files -n scim-mozc
287%defattr(-,root,root)
288%doc COPYING
289%{scim_dir}/SetupUI/mozc-setup.so
290%{scim_dir}/IMEngine/mozc.so
[1599]291%{_datadir}/scim/icons/*.png
[4485]292%endif
[1230]293
[2063]294%files -n %{mozc_el}
295%defattr(-,root,root)
296%doc COPYING
297%{_libexecdir}/mozc_emacs_helper
298%{_datadir}/emacs/site-lisp/%{name}
299%{emacsen_pkgdir}/install/%{name}
300%{emacsen_pkgdir}/remove/%{name}
301
302
[1012]303%changelog
[6035]304* Thu Mar 08 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.1003.102-1
305- new upstream release
306- add --use_libprotobuf to link with system protobuf
307
[5701]308* Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.3.975.102-2
309- rebuild with protobuf-2.4.1
310
[5641]311* Mon Feb 13 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.975.102-1
312- new upstream release
313
[5329]314* Sat Dec 24 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.931.102-1
315- new upstream release
316
[5236]317* Fri Dec 02 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.911.102-1
[5329]318- new upstream release
[5236]319- drop patch0
320- add patch10 to translate panel menu
[5223]321
[5236]322* Wed Nov 30 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.855.102-1
323- new upstram release
324
[4642]325* Tue Aug 23 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.773.102-1
326- new upstram release
327
[4485]328* Fri Jul 22 2011 IWAI, Masaharu <iwai@alib.jp> 1.1.717.102-2
329- fix typo in ibus lang panel patch (Patch0): <BTS:VineLinux:1161>
330- stop built scim-mozc package by default
331
[3914]332* Fri May 20 2011 IWAI, Masaharu <iwai@alib.jp> 1.1.717.102-1
333- new upstream release
334
[3558]335* Tue Apr 19 2011 IWAI, Masaharu <iwai@alib.jp> 1.1.690.102-2
336- add Requires: tegaki-zinnia-japanese for utils-gui
337- build with "--channel_dev=0" option
338- fix License: droped mozcdic-ut dictionary in 0.12.402.102-1
339
[3485]340* Fri Apr 15 2011 IWAI, Masaharu <iwai@alib.jp> 1.1.690.102-1
341- new upstream release
342- add BuildRequires: zinnia-devel
343
[3136]344* Fri Mar 25 2011 IWAI, Masaharu <iwai@alib.jp> 1.1.626.102-1
345- new upstream release
346
[2641]347* Sun Jan 30 2011 IWAI, Masaharu <iwai@alib.jp> 1.0.558.102-2vl6
348- build with openssl 1.0.0c
349
[2428]350* Sat Dec 18 2010 IWAI, Masaharu <iwai@alib.jp> 1.0.558.102-1
351- new upstream release
352- add CONTRIBUTORS in main package %%doc
353
[2190]354* Sat Nov  6 2010 IWAI, Masaharu <iwai@alib.jp> 0.13.523.102-1
355- new upstream release
356- drop unnecessary fixed compile error for Vine5 patch (Patch1)
357
[2063]358* Mon Oct 11 2010 IWAI, Masaharu <iwai@alib.jp> 0.13.499.102-1
359- new upstream release
360- new elisp sub-package: mozc-el: upstream released
361
[1796]362* Fri Sep 10 2010 IWAI, Masaharu <iwai@alib.jp> 0.13.464.102-1
363- new upstream release
364
[1599]365* Sun Aug 15 2010 IWAI, Masaharu <iwai@alib.jp> 0.12.434.102-1
366- new upstream release
367- replace icons: using official icons
368  - drop AWASHIRO Ikuya's icons (Source3,4,5,6)
369
[1313]370* Mon Jul 12 2010 IWAI, Masaharu <iwai@alib.jp> 0.12.402.102-2
371- drop obsolete x86_64 libdir patch (Patch2)
372- replace source tarball: using upstream tarball
373- add mozc-copyright (Source1) from SVN debian/copyright
374
[1300]375* Fri Jul  2 2010 IWAI, Masaharu <iwai@alib.jp> 0.12.402.102-1
376- new upstream release
377- drop mozcdic-ut dictionary
378- update README.vine (Source10)
379- defined output_dir macro for %%install section
380
[1244]381* Thu Jun 24 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.383.102-3
382- add x86_64 libdir patch (Patch2): based openSUSE by kazukado
383
[1230]384* Mon Jun 21 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.383.102-2
385- create new package scim-mozc
386  - add icons (Source5, Source6)
387- update icons (Source3, Source4)
388
[1217]389* Fri Jun 18 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.383.102-1
390- update to 0.11.383.102 (svn rev.30)
391
[1177]392* Wed Jun  9 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-9.svn28
393- update execute files path: <BTS:VineLinux:998>
394
[1140]395* Fri Jun  4 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-8.svn28
396- disable all mozcdic-ut dictionary (disable jinmei and zipcode)
397- update README.vine
398- add BuildRequires: gyp
399- drop BuildRequires: subversion
400
[1135]401* Wed Jun  2 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-7.svn28
402- add mozc_tool's icon (Source4)
403- rename Source0: fixed created directory name "src"
404
[1130]405* Tue Jun  1 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-6.svn28
406- update mozcdic-ut 20100601 (Source10)
407- include documents for all dictionaries
408- add BuildRequires: qt4-devel
409
[1128]410* Tue Jun  1 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-5.svn28
411- rename base name: mozc
412- add new sub packages:
413   - mozc-server
414   - mozc-utils-gui
415- update source to revision 28
416- replace icon (Source3)
417- drop mozc-config: upstream implement same tool
418
[1074]419* Sun May 23 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.0-4
420- update source to revision 23
421- add BuildRequires protobuf-devel, gtest-devel
422- drop Patch0 (ibus-mozc-fix-for-x86_64.diff)
423- add mozc-config as Source10 and desktop entry as Source11
424
[1055]425* Sat May 15 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.0-3
426- rebuild with ibus-1.3.3
427
[1012]428* Fri May 14 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.0-2
429- add Patch1 to fix compile error on i386 (workaround patch)
430
431* Thu May 13 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.11.0-1
432- initial build for Vine Liux based on custom mandriva package made by UTUMI-san
433
434* Thu May 13 2010 UTUMI Hirosi <utuhiro78@yahoo.co.jp> 0.11.0-2.20110511.1mdv2010.1
435- add some dictionaries
436
437* Wed May 12 2010 UTUMI Hirosi <utuhiro78@yahoo.co.jp> 0.11.0-1.20110511.1mdv2010.1
438- first release
439
Note: See TracBrowser for help on using the repository browser.