[mozc] Add ibus-setup-mozc-jp.desktop to make the configuration tool accessible

Akira TAGOH tagoh at fedoraproject.org
Mon Jan 28 04:43:38 UTC 2013


commit c931064f8999938339eabd23772e329fb8055ff4
Author: Akira TAGOH <tagoh at redhat.com>
Date:   Mon Jan 28 13:43:13 2013 +0900

    Add ibus-setup-mozc-jp.desktop to make the configuration tool accessible
    
      from the input source configuration on control-center. (#904625)
    - Updated License, BR, and Summary. partially fixes of #891078

 ibus-setup-mozc-jp.desktop |    8 ++++++++
 mozc.spec                  |   19 +++++++++++++------
 2 files changed, 21 insertions(+), 6 deletions(-)
---
diff --git a/ibus-setup-mozc-jp.desktop b/ibus-setup-mozc-jp.desktop
new file mode 100644
index 0000000..97444ae
--- /dev/null
+++ b/ibus-setup-mozc-jp.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=IBus Mozc Setup
+Comment=Set up IBus Mozc engine
+Exec=/usr/libexec/mozc_tool --mode=config_dialog
+Icon=production
+NoDisplay=true
+Type=Application
+StartupNotify=true
diff --git a/mozc.spec b/mozc.spec
index 7005259..a696995 100644
--- a/mozc.spec
+++ b/mozc.spec
@@ -2,18 +2,17 @@
 
 Name:		mozc
 Version:	1.6.1187.102
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	Open-sourced Google Japanese Input
 
 Group:		System Environment/Libraries
-License:	BSD and ASL 2.0 and UCD and Public Domain and Boost and mecab-ipadic
+License:	BSD and ASL 2.0 and UCD and Public Domain and mecab-ipadic
 URL:		http://code.google.com/p/mozc
 # 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
@@ -22,6 +21,7 @@ Source1:	mozc-init.el
 # Public Domain
 Source2:	http://www.post.japanpost.jp/zipcode/dl/kogaki/zip/ken_all.zip
 Source3:	http://www.post.japanpost.jp/zipcode/dl/jigyosyo/zip/jigyosyo.zip
+Source4:	ibus-setup-mozc-jp.desktop
 Patch0:		mozc-build-verbosely.patch
 Patch1:		mozc-fix-model-path-for-zinnia.patch
 Patch2:		mozc-no-Werror.patch
@@ -29,9 +29,9 @@ Patch3:		mozc-support-new-ibus.patch
 Patch4:		mozc-fix-dirs.patch
 
 BuildRequires:	python gettext
-BuildRequires:	openssl-devel libstdc++-devel zlib-devel libcurl-devel libxcb-devel protobuf-devel glib2-devel qt-devel zinnia-devel gtk2-devel
+BuildRequires:	openssl-devel libstdc++-devel zlib-devel libxcb-devel protobuf-devel glib2-devel qt-devel zinnia-devel gtk2-devel
 BuildRequires:	gyp >= 0.1-0.4.840svn
-BuildRequires:	ibus-devel >= 1.3.99
+BuildRequires:	ibus-devel >= 1.4.1
 BuildRequires:	emacs
 BuildRequires:	xemacs xemacs-packages-extra
 
@@ -42,7 +42,7 @@ 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:	Open-sourced Google Japanese Input engine for IBus input platform
+Summary:	A Japanese Input Method Editor (IME) designed for multi-platform
 Group:		System Environment/Libraries
 Requires:	%{name} = %{version}-%{release}
 Requires:	ibus
@@ -155,6 +155,7 @@ install -p -m0644 ime_product_icon_opensource-32.png $RPM_BUILD_ROOT%{_datadir}/
 for i in ui-*.png; do
 	install -p -m0644 $i $RPM_BUILD_ROOT%{_datadir}/ibus-mozc/${i//ui-/}
 done)
+desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications  %{SOURCE4}
 
 # emacs-common-mozc
 install -d $RPM_BUILD_ROOT%{_bindir}
@@ -193,6 +194,7 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_datadir}/ibus-mozc
 %{_libexecdir}/ibus-engine-mozc
 %{_libexecdir}/mozc_renderer
+%{_datadir}/applications/ibus-setup-mozc-jp.desktop
 %{_datadir}/ibus/component/mozc.xml
 %{_datadir}/ibus-mozc/*.png
 
@@ -223,6 +225,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_xemacs_sitelispdir}/%{pkg}/*.el
 
 %changelog
+* Mon Jan 28 2013 Akira TAGOH <tagoh at redhat.com> - 1.6.1187.102-2
+- Add ibus-setup-mozc-jp.desktop to make the configuration tool accessible
+  from the input source configuration on control-center. (#904625)
+- Updated License, BR, and Summary. partially fixes of #891078
+
 * Fri Aug 31 2012 Akira TAGOH <tagoh at redhat.com> - 1.6.1187.102-1
 - New upstream release. (#853362)
   - no SCIM support anymore.


More information about the scm-commits mailing list