c9e359b
%define		pkg	mozc
c9e359b
071a9d1
Name:		mozc
713786b
Version:	1.3.930.102
61c662c
Release:	2%{?dist}
7439554
Summary:	Open-sourced Google Japanese Input
071a9d1
071a9d1
Group:		System Environment/Libraries
071a9d1
License:	BSD and ASL 2.0 and UCD and Public Domain and Boost and mecab-ipadic
071a9d1
URL:		http://code.google.com/p/mozc
071a9d1
# third_party/rx/rx.c: ASL 2.0
071a9d1
#  Copyright Yusuke Tabata 2008
071a9d1
# data/unicode/: UCD
071a9d1
#  Copyright (c) 1991-2008 Unicode, Inc.
071a9d1
# data/test/stress_test/sentences.txt: Public Domain
071a9d1
# base/scoped_ptr.h: Boost Software License 1.0
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
071a9d1
Patch0:		mozc-build-verbosely.patch
5de1a47
Patch1:		mozc-fix-model-path-for-zinnia.patch
470315d
Patch2:		mozc-no-Werror.patch
f8cf90b
Patch3:		mozc-support-new-ibus.patch
071a9d1
071a9d1
BuildRequires:	python gettext
f219069
BuildRequires:	openssl-devel libstdc++-devel zlib-devel libcurl-devel gtest-devel protobuf-devel glib2-devel qt-devel zinnia-devel
071a9d1
BuildRequires:	gyp >= 0.1-0.4.840svn
c96996a
BuildRequires:	ibus-devel >= 1.3.99
071a9d1
BuildRequires:	scim-devel
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
7439554
Summary:	Open-sourced Google Japanese Input engine for IBus input platform
071a9d1
Group:		System Environment/Libraries
071a9d1
Requires:	%{name} = %{version}-%{release}
071a9d1
Requires:	ibus
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
071a9d1
%package	-n scim-mozc
7439554
Summary:	Open-sourced Google Japanese Input engine for SCIM input platform
071a9d1
Group:		System Environment/Libraries
071a9d1
Requires:	%{name} = %{version}-%{release}
071a9d1
Requires:	scim
071a9d1
071a9d1
%description	-n scim-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 SCIM.
071a9d1
7439554
%package	-n emacs-common-mozc
7439554
Summary:	Open-sourced Google Japanese Input for Emacsen
7439554
Group:		System Environment/Libraries
7439554
Requires:	%{name} = %{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
f8cf90b
%patch3 -p1 -b .3-new-ibus
53d46a3
(cd data/dictionary;
53d46a3
python ../../dictionary/gen_zip_code_seed.py --zip_code=../../KEN_ALL.CSV --jigyosyo=../../JIGYOSYO.CSV >> dictionary09.txt;
53d46a3
)
071a9d1
071a9d1
071a9d1
%build
071a9d1
sed -i	-e "s|\(.*\)/usr/lib/\(glib-2.0/.*\)|\1%{_libdir}/\2|g" \
071a9d1
	-e "s|\(.*\)/usr/lib/\(gtk-2.0/.*\)|\1%{_libdir}/\2|g" unix/scim/scim.gyp
071a9d1
sed -i -e "s|/usr/lib/mozc|%{_libexecdir}|g" base/util.cc
071a9d1
python build_mozc.py gyp --gypdir=%{_bindir}
071a9d1
python build_mozc.py build_tools -c Release
4c6834c
python build_mozc.py build -c Release unix/ibus/ibus.gyp:ibus_mozc unix/scim/scim.gyp:scim_mozc unix/scim/scim.gyp:scim_mozc_setup unix/emacs/emacs.gyp:mozc_emacs_helper server/server.gyp:mozc_server gui/gui.gyp:mozc_tool
071a9d1
071a9d1
071a9d1
%install
071a9d1
install -d $RPM_BUILD_ROOT%{_libexecdir}
071a9d1
install -p -m0755 out_linux/Release/mozc_server $RPM_BUILD_ROOT%{_libexecdir}
071a9d1
install -p -m0755 out_linux/Release/mozc_tool $RPM_BUILD_ROOT%{_libexecdir}
7439554
cp -a third_party/rx/v1_0rc2/README third_party/rx/v1_0rc2/README.rx
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)
7439554
071a9d1
# scim-mozc
071a9d1
scim_moddir=$(pkg-config --variable=moduledir scim)
071a9d1
scim_icondir=$(pkg-config --variable=icondir scim)
071a9d1
install -d $RPM_BUILD_ROOT$scim_moddir/IMEngine
071a9d1
install -d $RPM_BUILD_ROOT$scim_moddir/SetupUI
071a9d1
install -d $RPM_BUILD_ROOT$scim_icondir
071a9d1
install -p -m0755 out_linux/Release/lib.target/libscim_mozc.so $RPM_BUILD_ROOT$scim_moddir/IMEngine/mozc.so
071a9d1
install -p -m0755 out_linux/Release/lib.target/libscim_mozc_setup.so $RPM_BUILD_ROOT$scim_moddir/SetupUI/mozc-setup.so
071a9d1
(cd data/images/unix;
071a9d1
install -p -m0644 ime_product_icon_opensource-32.png $RPM_BUILD_ROOT$scim_icondir/scim-mozc.png
071a9d1
for i in ui-*.png; do
071a9d1
	install -p -m0644 $i $RPM_BUILD_ROOT$scim_icondir/${i//ui-/scim-mozc-}
071a9d1
done)
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
%clean
071a9d1
rm -rf $RPM_BUILD_ROOT
071a9d1
071a9d1
%files
071a9d1
%defattr(-,root,root,-)
071a9d1
%doc third_party/rx/v1_0rc2/README.rx data/installer/credits_en.html
071a9d1
%lang(ja) %doc data/installer/credits_ja.html
071a9d1
%{_libexecdir}/mozc_server
071a9d1
%{_libexecdir}/mozc_tool
071a9d1
7439554
%files	-n ibus-mozc
071a9d1
%defattr(-,root,root,-)
071a9d1
%doc data/installer/credits_en.html
071a9d1
%lang(ja) %doc data/installer/credits_ja.html
071a9d1
%dir %{_datadir}/ibus-mozc
071a9d1
%{_libexecdir}/ibus-engine-mozc
071a9d1
%{_datadir}/ibus/component/mozc.xml
071a9d1
%{_datadir}/ibus-mozc/*.png
071a9d1
7439554
%files	-n scim-mozc
071a9d1
%defattr(-,root,root,-)
071a9d1
%doc data/installer/credits_en.html
071a9d1
%lang(ja) %doc data/installer/credits_ja.html
071a9d1
%{_libdir}/scim-1.0/*/IMEngine/mozc.so
071a9d1
%{_libdir}/scim-1.0/*/SetupUI/mozc-setup.so
071a9d1
%{_datadir}/scim/icons/*.png
071a9d1
7439554
%files	-n emacs-common-mozc
4c6834c
%defattr(-,root,root,-)
4c6834c
%doc data/installer/credits_en.html
4c6834c
%lang(ja) %doc data/installer/credits_ja.html
4c6834c
%{_bindir}/mozc_emacs_helper
7439554
7439554
%files	-n emacs-mozc
7439554
%defattr(-,root,root,-)
7439554
%dir %{_emacs_sitelispdir}/%{pkg}
7439554
%{_emacs_sitelispdir}/%{pkg}/*.elc
7439554
%{_emacs_sitestartdir}/*.el
7439554
7439554
%files	-n emacs-mozc-el
7439554
%defattr(-,root,root,-)
4c6834c
%{_emacs_sitelispdir}/%{pkg}/*.el
4c6834c
7439554
%files	-n xemacs-mozc
7439554
%defattr(-,root,root,-)
7439554
%dir %{_xemacs_sitelispdir}/%{pkg}
7439554
%{_xemacs_sitelispdir}/%{pkg}/*.elc
7439554
%{_xemacs_sitestartdir}/*.el
7439554
7439554
%files	-n xemacs-mozc-el
7439554
%defattr(-,root,root,-)
7439554
%{_xemacs_sitelispdir}/%{pkg}/*.el
7439554
071a9d1
%changelog
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
1213a6d
* Thu 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