|
@@ -1,7 +1,8 @@
|
|
|
-%define ver 0.13.464.102
|
|
|
+%define ver 0.13.499.102
|
|
|
%define rel 1
|
|
|
|
|
|
%define scim_dir %(pkg-config --variable=moduledir scim)
|
|
|
+%define mozc_el mozc-el
|
|
|
|
|
|
Name: mozc
|
|
|
Summary: Japanese Input Method Editor designed for multi-platform
|
|
@@ -14,7 +15,13 @@ URL: http://code.google.com/p/mozc/
|
|
|
|
|
|
Source0: http://mozc.googlecode.com/files/%{name}-%{version}.tar.bz2
|
|
|
## svn debian/copyright
|
|
|
-Source1: mozc-copyright
|
|
|
+Source1: mozc-copyright
|
|
|
+# for mozc-el
|
|
|
+Source2: %{name}-install.sh
|
|
|
+Source3: %{name}-remove.sh
|
|
|
+Source4: vine-default-%{name}.el
|
|
|
+Source5: %{name}-init.el
|
|
|
+
|
|
|
|
|
|
# Vine Lunux
|
|
|
Source10: README.vine
|
|
@@ -102,6 +109,20 @@ tool and about dialog.
|
|
|
%description utils-gui -l ja
|
|
|
Mozc GUI ユーティリティー。設定ツールやユーザ辞書ツールなどが含まれます。
|
|
|
|
|
|
+%package -n %{mozc_el}
|
|
|
+Summary: Emacs Lisp frontend for Mozc
|
|
|
+Summary(ja): Mozc 用 Emacs Lisp フロントエンド
|
|
|
+Group: Applications/Editors/Emacs
|
|
|
+BuildRequires: emacs
|
|
|
+Requires(post,preun): emacsen, emacsen-common >= 0.1
|
|
|
+Requires: mozc-server = %{version}-%{release}
|
|
|
+
|
|
|
+%description -n %{mozc_el}
|
|
|
+Emacs Lisp frontend for Mozc
|
|
|
+
|
|
|
+%description -n %{mozc_el} -l ja
|
|
|
+Mozc のための Emacs-lisp フロントエンド
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q
|
|
|
%{__cp} -p %{SOURCE1} COPYING
|
|
@@ -116,7 +137,8 @@ Mozc GUI ユーティリティー。設定ツールやユーザ辞書ツール
|
|
|
%{__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
|
|
|
+ unix/emacs/emacs.gyp:mozc_emacs_helper server/server.gyp:mozc_server \
|
|
|
+ gui/gui.gyp:mozc_tool
|
|
|
|
|
|
%install
|
|
|
%{__rm} -rf %{buildroot}
|
|
@@ -169,6 +191,18 @@ Mozc GUI ユーティリティー。設定ツールやユーザ辞書ツール
|
|
|
# mozc_tool
|
|
|
%{__cp} -p %{output_dir}/mozc_tool %{buildroot}%{_libexecdir}
|
|
|
|
|
|
+# mozc-el
|
|
|
+%{__cp} -p %{output_dir}/mozc_emacs_helper %{buildroot}%{_libexecdir}
|
|
|
+mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp/%{name}/packages
|
|
|
+mkdir -p %{buildroot}%{emacsen_pkgdir}/install
|
|
|
+mkdir -p %{buildroot}%{emacsen_pkgdir}/remove
|
|
|
+cp -p unix/emacs/mozc.el %{SOURCE4} %{SOURCE5} %{buildroot}%{_datadir}/emacs/site-lisp/%{name}
|
|
|
+#
|
|
|
+# install script (bytecompile el and install elc , remove)
|
|
|
+#
|
|
|
+%_installemacsenscript %{name} %{SOURCE2}
|
|
|
+
|
|
|
+%_removeemacsenscript %{name} %{SOURCE3}
|
|
|
|
|
|
# install document
|
|
|
%{__cp} %{SOURCE10} .
|
|
@@ -176,6 +210,31 @@ Mozc GUI ユーティリティー。設定ツールやユーザ辞書ツール
|
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
+
|
|
|
+%post -n %{mozc_el}
|
|
|
+#
|
|
|
+# bytecompile and install
|
|
|
+#
|
|
|
+if [ "$1" = 2 ]; then
|
|
|
+
|
|
|
+%_emacsenPackageRemove %{name}
|
|
|
+
|
|
|
+fi
|
|
|
+
|
|
|
+%_addemacsenlist %{name}
|
|
|
+
|
|
|
+%_emacsenPackageInstall %{name}
|
|
|
+
|
|
|
+
|
|
|
+%preun -n %{mozc_el}
|
|
|
+if [ "$1" = 0 ]; then
|
|
|
+
|
|
|
+%_emacsenPackageRemove %{name}
|
|
|
+
|
|
|
+%_removeemacsenlist %{name}
|
|
|
+
|
|
|
+fi
|
|
|
+
|
|
|
%files
|
|
|
%defattr(-,root,root)
|
|
|
%doc COPYING README.vine
|
|
@@ -206,7 +265,20 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%{scim_dir}/IMEngine/mozc.so
|
|
|
%{_datadir}/scim/icons/*.png
|
|
|
|
|
|
+%files -n %{mozc_el}
|
|
|
+%defattr(-,root,root)
|
|
|
+%doc COPYING
|
|
|
+%{_libexecdir}/mozc_emacs_helper
|
|
|
+%{_datadir}/emacs/site-lisp/%{name}
|
|
|
+%{emacsen_pkgdir}/install/%{name}
|
|
|
+%{emacsen_pkgdir}/remove/%{name}
|
|
|
+
|
|
|
+
|
|
|
%changelog
|
|
|
+* Mon Oct 11 2010 IWAI, Masaharu <iwai@alib.jp> 0.13.499.102-1
|
|
|
+- new upstream release
|
|
|
+- new elisp sub-package: mozc-el: upstream released
|
|
|
+
|
|
|
* Fri Sep 10 2010 IWAI, Masaharu <iwai@alib.jp> 0.13.464.102-1
|
|
|
- new upstream release
|
|
|
|