c9e359b
%define		pkg	mozc
c9e359b
071a9d1
Name:		mozc
814553c
Version:	1.10.1390.102
c115506
Release:	1%{?dist}
c115506
Summary:	A Japanese Input Method Editor (IME) designed for multi-platform
071a9d1
071a9d1
Group:		System Environment/Libraries
c931064
License:	BSD and ASL 2.0 and UCD and Public Domain and mecab-ipadic
071a9d1
URL:		http://code.google.com/p/mozc
071a9d1
# data/unicode/: UCD
071a9d1
#  Copyright (c) 1991-2008 Unicode, Inc.
071a9d1
# data/test/stress_test/sentences.txt: Public Domain
071a9d1
# data/dictionary/: mecab-ipadic and BSD
071a9d1
#   See http://code.google.com/p/mozc/issues/detail?id=20
071a9d1
#   also data/installer/credits_en.html
9378873
Source0:	http://mozc.googlecode.com/files/mozc-%{version}.tar.bz2
4c6834c
Source1:	mozc-init.el
53d46a3
# Public Domain
53d46a3
Source2:	http://www.post.japanpost.jp/zipcode/dl/kogaki/zip/ken_all.zip
53d46a3
Source3:	http://www.post.japanpost.jp/zipcode/dl/jigyosyo/zip/jigyosyo.zip
c931064
Source4:	ibus-setup-mozc-jp.desktop
071a9d1
Patch0:		mozc-build-verbosely.patch
5de1a47
Patch1:		mozc-fix-model-path-for-zinnia.patch
470315d
Patch2:		mozc-no-Werror.patch
4bf10f8
# http://code.google.com/p/mozc/issues/detail?id=189
4bf10f8
Patch3:		%{name}-fix-use-libprotobuf.patch
071a9d1
071a9d1
BuildRequires:	python gettext
c931064
BuildRequires:	openssl-devel libstdc++-devel zlib-devel libxcb-devel protobuf-devel glib2-devel qt-devel zinnia-devel gtk2-devel
071a9d1
BuildRequires:	gyp >= 0.1-0.4.840svn
c931064
BuildRequires:	ibus-devel >= 1.4.1
4c6834c
BuildRequires:	emacs
7439554
BuildRequires:	xemacs xemacs-packages-extra
071a9d1
5de1a47
Requires:	zinnia-tomoe
5de1a47
071a9d1
%description
071a9d1
Mozc is a Japanese Input Method Editor (IME) designed for
071a9d1
multi-platform such as Chromium OS, Windows, Mac and Linux.
071a9d1
071a9d1
%package	-n ibus-mozc
c115506
Summary:	The mozc engine for IBus input platform
071a9d1
Group:		System Environment/Libraries
c115506
Requires:	%{name}%{?_isa} = %{version}-%{release}
c115506
Requires:	ibus%{?_isa}
071a9d1
071a9d1
%description	-n ibus-mozc
071a9d1
Mozc is a Japanese Input Method Editor (IME) designed for
071a9d1
multi-platform such as Chromium OS, Windows, Mac and Linux.
071a9d1
071a9d1
This package contains the Input Method Engine for IBus.
071a9d1
7439554
%package	-n emacs-common-mozc
c115506
Summary:	Common files to run mozc under Emacsen
7439554
Group:		System Environment/Libraries
c115506
Requires:	%{name}%{?_isa} = %{version}-%{release}
7439554
7439554
%description	-n emacs-common-mozc
7439554
Mozc is a Japanese Input Method Editor (IME) designed for
7439554
multi-platform such as Chromium OS, Windows, Mac and Linux.
7439554
7439554
This package contains the files common to both the GNU Emacs
7439554
and XEmacs mozc packages.
7439554
4c6834c
%package	-n emacs-mozc
7439554
Summary:	Compiled elisp files to run mozc under GNU Emacs
4c6834c
Group:		System Environment/Libraries
4c6834c
Requires:	emacs(bin) >= %{_emacs_version}
7439554
Requires:	emacs-common-mozc = %{version}-%{release}
7439554
BuildArch:	noarch
4c6834c
4c6834c
%description	-n emacs-mozc
4c6834c
Mozc is a Japanese Input Method Editor (IME) designed for
4c6834c
multi-platform such as Chromium OS, Windows, Mac and Linux.
4c6834c
7439554
This package contains the byte compiled elisp files to run mozc with GNU Emacs.
7439554
7439554
%package	-n emacs-mozc-el
7439554
Summary:	Elisp source files for mozc under GNU Emacs
7439554
Group:		System Environment/Libraries
7439554
Requires:	emacs-mozc = %{version}-%{release}
7439554
BuildArch:	noarch
7439554
7439554
%description	-n emacs-mozc-el
7439554
Mozc is a Japanese Input Method Editor (IME) designed for
7439554
multi-platform such as Chromium OS, Windows, Mac and Linux.
7439554
7439554
This package contains the elisp source files for mozc under GNU Emacs. You
7439554
do not need to install this package to run mozc. Install the emacs-mozc package
7439554
to use mozc with GNU Emacs.
7439554
7439554
%package	-n xemacs-mozc
7439554
Summary:	Compiled elisp files to run mozc under XEmacs
7439554
Group:		System Environment/Libraries
7439554
Requires:	xemacs(bin) >= %{_xemacs_version}
7439554
Requires:	xemacs-packages-extra
7439554
Requires:	emacs-common-mozc = %{version}-%{release}
7439554
BuildArch:	noarch
7439554
7439554
%description	-n xemacs-mozc
7439554
Mozc is a Japanese Input Method Editor (IME) designed for
7439554
multi-platform such as Chromium OS, Windows, Mac and Linux.
7439554
7439554
This package contains the byte compiled elisp files to run mozc with XEmacs.
7439554
7439554
%package	-n xemacs-mozc-el
7439554
Summary:	Elisp source files for mozc under XEmacs
7439554
Group:		System Environment/Libraries
7439554
Requires:	xemacs-mozc = %{version}-%{release}
7439554
BuildArch:	noarch
7439554
7439554
%description	-n xemacs-mozc-el
7439554
Mozc is a Japanese Input Method Editor (IME) designed for
7439554
multi-platform such as Chromium OS, Windows, Mac and Linux.
7439554
7439554
This package contains the elisp source files for mozc under XEmacs. You
7439554
do not need to install this package to run mozc. Install the xemacs-mozc package
7439554
to use mozc with XEmacs.
4c6834c
071a9d1
%prep
53d46a3
%setup -q -a 2 -a 3
46002ba
%patch0 -p1 -b .0-build-verbosely
5de1a47
%patch1 -p1 -b .1-fix-zinnia
470315d
%patch2 -p1 -b .2-no-Werror
4bf10f8
%patch3 -p0 -b .3-use-libprotobuf
d1e4dfb
(cd data/dictionary_oss;
53d46a3
python ../../dictionary/gen_zip_code_seed.py --zip_code=../../KEN_ALL.CSV --jigyosyo=../../JIGYOSYO.CSV >> dictionary09.txt;
53d46a3
)
071a9d1
071a9d1
071a9d1
%build
d510803
GYP_DEFINES="use_libprotobuf=1" python build_mozc.py gyp --gypdir=%{_bindir} --server_dir=%{_libexecdir}/mozc
071a9d1
python build_mozc.py build_tools -c Release
c90a187
python build_mozc.py build -c Release unix/ibus/ibus.gyp:ibus_mozc unix/emacs/emacs.gyp:mozc_emacs_helper server/server.gyp:mozc_server gui/gui.gyp:mozc_tool renderer/renderer.gyp:mozc_renderer
071a9d1
071a9d1
071a9d1
%install
d510803
install -d $RPM_BUILD_ROOT%{_libexecdir}/mozc
d510803
install -d $RPM_BUILD_ROOT%{_libexecdir}/mozc/documents
d510803
install -p -m0755 out_linux/Release/mozc_server $RPM_BUILD_ROOT%{_libexecdir}/mozc
d510803
install -p -m0755 out_linux/Release/mozc_tool $RPM_BUILD_ROOT%{_libexecdir}/mozc
d510803
install -p -m0755 out_linux/Release/mozc_renderer $RPM_BUILD_ROOT%{_libexecdir}/mozc
d510803
install -p -m0644 data/installer/credits_{en,ja}.html $RPM_BUILD_ROOT%{_libexecdir}/mozc/documents
7439554
7439554
# ibus-mozc
7439554
install -d $RPM_BUILD_ROOT%{_datadir}/ibus/component
7439554
install -d $RPM_BUILD_ROOT%{_datadir}/ibus-mozc
071a9d1
install -p -m0755 out_linux/Release/ibus_mozc $RPM_BUILD_ROOT%{_libexecdir}/ibus-engine-mozc
071a9d1
install -p -m0644 out_linux/Release/obj/gen/unix/ibus/mozc.xml $RPM_BUILD_ROOT%{_datadir}/ibus/component/
071a9d1
(cd data/images/unix;
071a9d1
install -p -m0644 ime_product_icon_opensource-32.png $RPM_BUILD_ROOT%{_datadir}/ibus-mozc/product_icon.png
071a9d1
for i in ui-*.png; do
071a9d1
	install -p -m0644 $i $RPM_BUILD_ROOT%{_datadir}/ibus-mozc/${i//ui-/}
071a9d1
done)
c931064
desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications  %{SOURCE4}
7439554
7439554
# emacs-common-mozc
4c6834c
install -d $RPM_BUILD_ROOT%{_bindir}
7439554
install -p -m0755 out_linux/Release/mozc_emacs_helper $RPM_BUILD_ROOT%{_bindir}
7439554
7439554
# emacs-mozc*
4c6834c
install -d $RPM_BUILD_ROOT%{_emacs_sitelispdir}/%{pkg}
4c6834c
install -d $RPM_BUILD_ROOT%{_emacs_sitestartdir}
4c6834c
install -p -m0644 unix/emacs/mozc.el $RPM_BUILD_ROOT%{_emacs_sitelispdir}/%{pkg}
4c6834c
install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_emacs_sitestartdir}
071a9d1
7439554
emacs -batch -f batch-byte-compile $RPM_BUILD_ROOT%{_emacs_sitelispdir}/%{pkg}/mozc.el
7439554
7439554
# xemacs-mozc*
7439554
install -d $RPM_BUILD_ROOT%{_xemacs_sitelispdir}/%{pkg}
7439554
install -d $RPM_BUILD_ROOT%{_xemacs_sitestartdir}
7439554
install -p -m0644 unix/emacs/mozc.el $RPM_BUILD_ROOT%{_xemacs_sitelispdir}/%{pkg}
7439554
install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_xemacs_sitestartdir}
7439554
7439554
xemacs -batch -f batch-byte-compile $RPM_BUILD_ROOT%{_xemacs_sitelispdir}/%{pkg}/mozc.el
071a9d1
071a9d1
071a9d1
%files
d510803
%dir %{_libexecdir}/mozc
d510803
%{_libexecdir}/mozc/mozc_server
d510803
%{_libexecdir}/mozc/mozc_tool
86e5d34
%{_libexecdir}/mozc/documents
071a9d1
7439554
%files	-n ibus-mozc
071a9d1
%dir %{_datadir}/ibus-mozc
071a9d1
%{_libexecdir}/ibus-engine-mozc
d510803
%{_libexecdir}/mozc/mozc_renderer
c931064
%{_datadir}/applications/ibus-setup-mozc-jp.desktop
071a9d1
%{_datadir}/ibus/component/mozc.xml
071a9d1
%{_datadir}/ibus-mozc/*.png
071a9d1
7439554
%files	-n emacs-common-mozc
4c6834c
%{_bindir}/mozc_emacs_helper
7439554
7439554
%files	-n emacs-mozc
7439554
%dir %{_emacs_sitelispdir}/%{pkg}
7439554
%{_emacs_sitelispdir}/%{pkg}/*.elc
7439554
%{_emacs_sitestartdir}/*.el
7439554
7439554
%files	-n emacs-mozc-el
4c6834c
%{_emacs_sitelispdir}/%{pkg}/*.el
4c6834c
7439554
%files	-n xemacs-mozc
7439554
%dir %{_xemacs_sitelispdir}/%{pkg}
7439554
%{_xemacs_sitelispdir}/%{pkg}/*.elc
7439554
%{_xemacs_sitestartdir}/*.el
7439554
7439554
%files	-n xemacs-mozc-el
7439554
%{_xemacs_sitelispdir}/%{pkg}/*.el
7439554
071a9d1
%changelog
d510803
* Mon Apr 15 2013 Akira TAGOH <tagoh@redhat.com> - 1.10.1390.102-1
814553c
- New upstream release. (#328711)
d510803
- Move credit text since it was referenced by the program at runtime.
814553c
c115506
* Thu Mar 28 2013 Akira TAGOH <tagoh@redhat.com> - 1.10.1389.102-1
c115506
- New upstream release. (#928711)
c115506
- Improve the spec file (#891078)
c115506
2f8ff20
* Wed Mar 13 2013 Akira TAGOH <tagoh@redhat.com> - 1.6.1187.102-4
2f8ff20
- Apply an upstream patch to fix a text property for menus (#920122)
2f8ff20
- Update zipcode dictionaries.
2f8ff20
8378acd
* Tue Mar 12 2013 Akira TAGOH <tagoh@redhat.com> - 1.6.1187.102-3
8378acd
- Rebuild against latest protobuf.
8378acd
c931064
* Mon Jan 28 2013 Akira TAGOH <tagoh@redhat.com> - 1.6.1187.102-2
c931064
- Add ibus-setup-mozc-jp.desktop to make the configuration tool accessible
c931064
  from the input source configuration on control-center. (#904625)
c931064
- Updated License, BR, and Summary. partially fixes of #891078
c931064
0590deb
* Fri Aug 31 2012 Akira TAGOH <tagoh@redhat.com> - 1.6.1187.102-1
0590deb
- New upstream release. (#853362)
c90a187
  - no SCIM support anymore.
0590deb
- Update zipcode dictionaries.
0590deb
019b2b3
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1090.102-3
019b2b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
019b2b3
3a880e8
* Thu Jun  7 2012 Akira TAGOH <tagoh@redhat.com> - 1.5.1090.102-2
3a880e8
- Enable mozc_renderer.
3a880e8
be14eef
* Tue Jun  5 2012 Akira TAGOH <tagoh@redhat.com> - 1.5.1090.102-1
be14eef
- New upstream release. (#828202)
be14eef
- Update zipcode dictionaries.
be14eef
- set "default" to the layout in mozc.xml to avoid adding jp keyboard layout
be14eef
  unexpectedly.
be14eef
64bfc95
* Thu Apr 26 2012 Akira TAGOH <tagoh@redhat.com> - 1.5.1053.102-1
64bfc95
- New upstream release. (#816526)
64bfc95
- Update zipcode dictionaries.
64bfc95
aef3a90
* Mon Mar 26 2012 Akira TAGOH <tagoh@redhat.com> - 1.4.1033.102-1
aef3a90
- New upstream release.
aef3a90
f999c8a
* Thu Mar 22 2012 Akira TAGOH <tagoh@redhat.com> - 1.4.1003.102-2
f999c8a
- Rebuild against new ibus.
f999c8a
62e97b0
* Thu Mar  8 2012 Akira TAGOH <tagoh@redhat.com> - 1.4.1003.102-1
3bf292a
- New upstream release.
3bf292a
- Update zipcode dictionaries.
3bf292a
4fac3a1
* Wed Mar  7 2012 Takao Fujiwara <tfujiwar@redhat.com> - 1.3.975.102-3
4fac3a1
- Rebuild for ibus 1.4.99.20120304
4fac3a1
b694052
* Mon Feb 27 2012 Akira TAGOH <tagoh@redhat.com> - 1.3.975.102-2
b694052
- Fix docdir.
b694052
21f1b70
* Mon Feb 13 2012 Akira TAGOH <tagoh@redhat.com> - 1.3.975.102-1
21f1b70
- New upstream release.
21f1b70
- Update zipcode dictionaries.
21f1b70
61c662c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.930.102-2
61c662c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
61c662c
713786b
* Wed Dec 21 2011 Akira TAGOH <tagoh@redhat.com> - 1.3.930.102-1
713786b
- New upstream release.
713786b
2037838
* Thu Dec  1 2011 Akira TAGOH <tagoh@redhat.com> - 1.3.911.102-1
2037838
- New upstream release.
2037838
53d46a3
* Tue Nov 29 2011 Akira TAGOH <tagoh@redhat.com> - 1.2.855.102-2
53d46a3
- Add zipcode dictionary.
53d46a3
ff9f3d3
* Tue Nov 15 2011 Akira TAGOH <tagoh@redhat.com> - 1.2.855.102-1
ff9f3d3
- New upstream release.
ff9f3d3
73d7f14
* Fri Sep 30 2011 Akira TAGOH <tagoh@redhat.com> - 1.2.831.102-1
73d7f14
- New upstream release.
73d7f14
ea1ea19
* Wed Aug 17 2011 Akira TAGOH <tagoh@redhat.com> - 1.2.809.102-1
ea1ea19
- New upstream release.
ea1ea19
2ab9a66
* Thu Aug 11 2011 Akira TAGOH <tagoh@redhat.com> - 1.1.773.102-3
f8cf90b
- Re-enable hotkeys support and add a symbol. (#727022)
f8cf90b
470315d
* Thu Jul 21 2011 Akira TAGOH <tagoh@redhat.com> - 1.1.773.102-1
470315d
- New upstream release.
470315d
470315d
* Mon Jul 11 2011 Akira TAGOH <tagoh@redhat.com> - 1.1.758.102-2
285d0cb
- Revert hotkeys patch.
285d0cb
f139a01
* Mon Jul  4 2011 Akira TAGOH <tagoh@redhat.com> - 1.1.758.102-1
f139a01
- New upstream release.
f139a01
a39b898
* Mon Jun 13 2011 Akira TAGOH <tagoh@redhat.com> - 1.1.717.102-3
a39b898
- Rebuild against new protobuf.
a39b898
c9e359b
* Wed Jun  1 2011 Akira TAGOH <tagoh@redhat.com> - 1.1.717.102-2
c9e359b
- Fix broken emacs-mozc package.
c9e359b
9378873
* Mon May 23 2011 Akira TAGOH <tagoh@redhat.com> - 1.1.717.102-1
9378873
- New upstream release.
9378873
5de1a47
* Wed Apr 20 2011 Akira TAGOH <tagoh@redhat.com> - 1.1.690.102-0.2.20110419svn
5de1a47
- Fix a wrong path to the model file for handwriting.
5de1a47
- add dep to zinnia-tomoe.
5de1a47
f219069
* Tue Apr 19 2011 Akira TAGOH <tagoh@redhat.com> - 1.1.690.102-0.1.20110419svn
f219069
- Update to 1.1.690.102.
f219069
62e97b0
* Tue Mar  8 2011 Akira TAGOH <tagoh@redhat.com> - 1.1.626.102-0.2.20110301svn
1213a6d
- Fix mozc.el not working when byte-compiled.
1213a6d
a22a9cf
* Wed Mar  2 2011 Akira TAGOH <tagoh@redhat.com> - 1.1.626.102-0.1.20110301svn
a22a9cf
- Update to 1.1.626.102.
a22a9cf
f04fcd1
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.558.102-0.2.20101216svn
f04fcd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f04fcd1
bb5e83a
* Thu Dec 16 2010 Akira TAGOH <tagoh@redhat.com> - 1.0.558.102-0.1.20101216svn
bb5e83a
- Update to 1.0.558.102.
bb5e83a
bb5e83a
* Mon Nov  8 2010 Akira TAGOH <tagoh@redhat.com> - 0.13.523.102-0.2.20101104svn
c96996a
- Rebuilt against ibus-1.3.99.
e0a873d
8cff6be
* Thu Nov  4 2010 Akira TAGOH <tagoh@redhat.com> - 0.13.523.102-0.1.20101104svn
8cff6be
- Update to 0.13.523.102.
8cff6be
20c086b
* Fri Oct  8 2010 Akira TAGOH <tagoh@redhat.com> - 0.13.499.102-0.1.20101008svn
20c086b
- Update to 0.13.499.102.
20c086b
4c6834c
* Mon Sep 27 2010 Akira TAGOH <tagoh@redhat.com> - 0.13.481.102-0.1.20100927svn
4c6834c
- Update to 0.13.481.102.
7439554
- Add emacs-common-mozc, emacs-mozc, emacs-mozc-el, xemacs-mozc and xemacs-mozc-el subpackage.
4c6834c
97ca2f4
* Fri Sep 10 2010 Akira TAGOH <tagoh@redhat.com> - 0.13.464.102-0.1.20100910svn
97ca2f4
- Update to 0.13.464.102.
11deec8
071a9d1
* Mon Aug 23 2010 Akira TAGOH <tagoh@redhat.com> - 0.12.434.102-0.2.20100823svn
071a9d1
- Drop the unnecessary Obsoletes tag.
071a9d1
- Output more build messages. (Mamoru Tasaka)
071a9d1
- Own %%{_datadir}/ibus-mozc
071a9d1
- add credits_*.html
071a9d1
- rebase to drop more exec bits.
071a9d1
071a9d1
* Fri Aug 20 2010 Akira TAGOH <tagoh@redhat.com> - 0.12.434.102-0.1.20100820svn
071a9d1
- drop exec bits for source code.
071a9d1
- clean up spec file.
071a9d1
- add mecab-ipadic to License tag.
071a9d1
071a9d1
* Tue Aug 17 2010 Akira TAGOH <tagoh@redhat.com> - 0.12.434.102-0.1.20100817svn
071a9d1
- Update to 0.12.434.102.
071a9d1
071a9d1
* Thu Jul 29 2010 Akira TAGOH <tagoh@redhat.com> - 0.12.422.102-0.1.20100729svn
071a9d1
- Update to 0.12.422.102.
071a9d1
071a9d1
* Mon Jul 12 2010 Akira TAGOH <tagoh@redhat.com> - 0.12.410.102-0.1.20100712svn
071a9d1
- Update to 0.12.410.102.
071a9d1
071a9d1
* Tue Jun 22 2010 Akira TAGOH <tagoh@redhat.com> - 0.11.383.102-0.1.20100621svn
071a9d1
- Update to 0.11.383.102.
071a9d1
- Add a subpackage for scim.
071a9d1
071a9d1
* Thu May 27 2010 Akira TAGOH <tagoh@redhat.com> - 0.11.365.102-0.1.20100527svn
071a9d1
- Update to 0.11.365.102.
071a9d1
- Update mozc-config.
071a9d1
- correct the server directory.
071a9d1
071a9d1
* Thu May 20 2010 Akira TAGOH <tagoh@redhat.com> - 0.11.354.100-0.1.20100520svn
071a9d1
- Updates from svn.
071a9d1
- Add mozc-config from git.
071a9d1
071a9d1
* Tue May 11 2010 Akira TAGOH <tagoh@redhat.com> - 0.10.288.102-0.1.20100511svn
071a9d1
- Initial build.
071a9d1