[mozc] Initial import

Akira TAGOH tagoh at fedoraproject.org
Tue Aug 24 02:05:12 UTC 2010


commit 071a9d169eec9fe6419b120f6710d7f3f82baf11
Author: Akira TAGOH <tagoh at redhat.com>
Date:   Tue Aug 24 11:05:06 2010 +0900

    Initial import

 .gitignore                 |    1 +
 mozc-build-verbosely.patch |   11 +++
 mozc.spec                  |  179 ++++++++++++++++++++++++++++++++++++++++++++
 sources                    |    1 +
 4 files changed, 192 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6922a98 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mozc-0.12.434.102-20100823.tar.bz2
diff --git a/mozc-build-verbosely.patch b/mozc-build-verbosely.patch
new file mode 100644
index 0000000..c3c6cfa
--- /dev/null
+++ b/mozc-build-verbosely.patch
@@ -0,0 +1,11 @@
+--- build_mozc.py.verbose	2010-07-12 20:11:48.000000000 +0900
++++ build_mozc.py	2010-08-21 02:07:01.000000000 +0900
+@@ -580,6 +580,8 @@ 
+   if options.build_base:
+     build_args.append('builddir_name=%s' % options.build_base)
+ 
++  build_args.append('V=1')
++
+   RunOrDie([make_command] + build_args + target_names)
+ 
+ 
diff --git a/mozc.spec b/mozc.spec
new file mode 100644
index 0000000..67aaa33
--- /dev/null
+++ b/mozc.spec
@@ -0,0 +1,179 @@
+%define		archivedate		20100823
+
+Name:		mozc
+Version:	0.12.434.102
+Release:	0.2.%{archivedate}svn%{?dist}
+Summary:	Opensourced Google Japanese Input
+
+Group:		System Environment/Libraries
+License:	BSD and ASL 2.0 and UCD and Public Domain and Boost and mecab-ipadic
+URL:		http://code.google.com/p/mozc
+# How to checkout the tree from the repository:
+#   http://code.google.com/p/mozc/wiki/LinuxBuildInstructions
+#
+# How to make a tarball after updating:
+#   major=$(grep MAJOR src/mozc_version_template.txt|sed -e 's/MAJOR=//g')
+#   minor=$(grep MINOR src/mozc_version_template.txt|sed -e 's/MINOR=//g')
+#   build=$(grep BUILD src/mozc_version_template.txt|sed -e 's/BUILD=//g')
+#   rev=$(grep REVISION src/mozc_version_template.txt|sed -e 's/REVISION=//g')
+#   version="$major.$minor.$build.$rev"
+#   date=$(date +%%Y%%m%%d)
+#   (cd src;
+#    for f in $(find -type f -regex '.*.[ch]' -o -regex '.*.html' -o -regex '.*README*'); do chmod a-x $f; done
+#    tar -a --exclude-vcs --exclude third_party/gyp* -cf ../mozc-$version-$date.tar.bz2 *
+#   )
+#
+# third_party/rx/rx.c: ASL 2.0
+#  Copyright Yusuke Tabata 2008
+# data/unicode/: UCD
+#  Copyright (c) 1991-2008 Unicode, Inc.
+# data/test/stress_test/sentences.txt: Public Domain
+# base/scoped_ptr.h: Boost Software License 1.0
+# data/dictionary/: mecab-ipadic and BSD
+#   See http://code.google.com/p/mozc/issues/detail?id=20
+#   also data/installer/credits_en.html
+Source0:	mozc-%{version}-%{archivedate}.tar.bz2
+Patch0:		mozc-build-verbosely.patch
+
+BuildRequires:	python gettext
+BuildRequires:	openssl-devel libstdc++-devel zlib-devel libcurl-devel gtest-devel protobuf-devel qt-devel
+BuildRequires:	gyp >= 0.1-0.4.840svn
+BuildRequires:	ibus-devel
+BuildRequires:	scim-devel
+
+%description
+Mozc is a Japanese Input Method Editor (IME) designed for
+multi-platform such as Chromium OS, Windows, Mac and Linux.
+
+%package	-n ibus-mozc
+Summary:	Google Japanese Input engine for IBus input platform
+Group:		System Environment/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	ibus
+
+%description	-n ibus-mozc
+Mozc is a Japanese Input Method Editor (IME) designed for
+multi-platform such as Chromium OS, Windows, Mac and Linux.
+
+This package contains the Input Method Engine for IBus.
+
+%package	-n scim-mozc
+Summary:	Google Japanese Input engine for SCIM input platform
+Group:		System Environment/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	scim
+
+%description	-n scim-mozc
+Mozc is a Japanese Input Method Editor (IME) designed for
+multi-platform such as Chromium OS, Windows, Mac and Linux.
+
+This package contains the Input Method Engine for SCIM.
+
+%prep
+%setup -q -c -n %{name}-%{version}
+%patch0 -p0 -b .0-build-verbosely
+
+
+%build
+sed -i	-e "s|\(.*\)/usr/lib/\(glib-2.0/.*\)|\1%{_libdir}/\2|g" \
+	-e "s|\(.*\)/usr/lib/\(gtk-2.0/.*\)|\1%{_libdir}/\2|g" unix/scim/scim.gyp
+sed -i -e "s|/usr/lib/mozc|%{_libexecdir}|g" base/util.cc
+python build_mozc.py gyp --gypdir=%{_bindir}
+python build_mozc.py build_tools -c Release
+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 server/server.gyp:mozc_server gui/gui.gyp:mozc_tool
+
+
+%install
+install -d $RPM_BUILD_ROOT%{_libexecdir}
+install -d $RPM_BUILD_ROOT%{_datadir}/ibus/component
+install -d $RPM_BUILD_ROOT%{_datadir}/ibus-mozc
+install -p -m0755 out_linux/Release/mozc_server $RPM_BUILD_ROOT%{_libexecdir}
+install -p -m0755 out_linux/Release/mozc_tool $RPM_BUILD_ROOT%{_libexecdir}
+install -p -m0755 out_linux/Release/ibus_mozc $RPM_BUILD_ROOT%{_libexecdir}/ibus-engine-mozc
+install -p -m0644 out_linux/Release/obj/gen/unix/ibus/mozc.xml $RPM_BUILD_ROOT%{_datadir}/ibus/component/
+(cd data/images/unix;
+install -p -m0644 ime_product_icon_opensource-32.png $RPM_BUILD_ROOT%{_datadir}/ibus-mozc/product_icon.png
+for i in ui-*.png; do
+	install -p -m0644 $i $RPM_BUILD_ROOT%{_datadir}/ibus-mozc/${i//ui-/}
+done)
+# scim-mozc
+scim_moddir=$(pkg-config --variable=moduledir scim)
+scim_icondir=$(pkg-config --variable=icondir scim)
+install -d $RPM_BUILD_ROOT$scim_moddir/IMEngine
+install -d $RPM_BUILD_ROOT$scim_moddir/SetupUI
+install -d $RPM_BUILD_ROOT$scim_icondir
+install -p -m0755 out_linux/Release/lib.target/libscim_mozc.so $RPM_BUILD_ROOT$scim_moddir/IMEngine/mozc.so
+install -p -m0755 out_linux/Release/lib.target/libscim_mozc_setup.so $RPM_BUILD_ROOT$scim_moddir/SetupUI/mozc-setup.so
+(cd data/images/unix;
+install -p -m0644 ime_product_icon_opensource-32.png $RPM_BUILD_ROOT$scim_icondir/scim-mozc.png
+for i in ui-*.png; do
+	install -p -m0644 $i $RPM_BUILD_ROOT$scim_icondir/${i//ui-/scim-mozc-}
+done)
+
+cp -a third_party/rx/v1_0rc2/README third_party/rx/v1_0rc2/README.rx
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc third_party/rx/v1_0rc2/README.rx data/installer/credits_en.html
+%lang(ja) %doc data/installer/credits_ja.html
+%{_libexecdir}/mozc_server
+%{_libexecdir}/mozc_tool
+
+%files -n ibus-mozc
+%defattr(-,root,root,-)
+%doc data/installer/credits_en.html
+%lang(ja) %doc data/installer/credits_ja.html
+%dir %{_datadir}/ibus-mozc
+%{_libexecdir}/ibus-engine-mozc
+%{_datadir}/ibus/component/mozc.xml
+%{_datadir}/ibus-mozc/*.png
+
+%files -n scim-mozc
+%defattr(-,root,root,-)
+%doc data/installer/credits_en.html
+%lang(ja) %doc data/installer/credits_ja.html
+%{_libdir}/scim-1.0/*/IMEngine/mozc.so
+%{_libdir}/scim-1.0/*/SetupUI/mozc-setup.so
+%{_datadir}/scim/icons/*.png
+
+%changelog
+* Mon Aug 23 2010 Akira TAGOH <tagoh at redhat.com> - 0.12.434.102-0.2.20100823svn
+- Drop the unnecessary Obsoletes tag.
+- Output more build messages. (Mamoru Tasaka)
+- Own %%{_datadir}/ibus-mozc
+- add credits_*.html
+- rebase to drop more exec bits.
+
+* Fri Aug 20 2010 Akira TAGOH <tagoh at redhat.com> - 0.12.434.102-0.1.20100820svn
+- drop exec bits for source code.
+- clean up spec file.
+- add mecab-ipadic to License tag.
+
+* Tue Aug 17 2010 Akira TAGOH <tagoh at redhat.com> - 0.12.434.102-0.1.20100817svn
+- Update to 0.12.434.102.
+
+* Thu Jul 29 2010 Akira TAGOH <tagoh at redhat.com> - 0.12.422.102-0.1.20100729svn
+- Update to 0.12.422.102.
+
+* Mon Jul 12 2010 Akira TAGOH <tagoh at redhat.com> - 0.12.410.102-0.1.20100712svn
+- Update to 0.12.410.102.
+
+* Tue Jun 22 2010 Akira TAGOH <tagoh at redhat.com> - 0.11.383.102-0.1.20100621svn
+- Update to 0.11.383.102.
+- Add a subpackage for scim.
+
+* Thu May 27 2010 Akira TAGOH <tagoh at redhat.com> - 0.11.365.102-0.1.20100527svn
+- Update to 0.11.365.102.
+- Update mozc-config.
+- correct the server directory.
+
+* Thu May 20 2010 Akira TAGOH <tagoh at redhat.com> - 0.11.354.100-0.1.20100520svn
+- Updates from svn.
+- Add mozc-config from git.
+
+* Tue May 11 2010 Akira TAGOH <tagoh at redhat.com> - 0.10.288.102-0.1.20100511svn
+- Initial build.
+
diff --git a/sources b/sources
index e69de29..639f61a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+3b3cc20b733892a4f49262681859d21d  mozc-0.12.434.102-20100823.tar.bz2


More information about the scm-commits mailing list