[ibus-cangjie] Split the engines into their own subpackages.

Mathieu Bridon bochecha at fedoraproject.org
Thu Jul 10 12:26:11 UTC 2014


commit 8e3445cd5619bd1c54dde35d4c577a160c27e28b
Author: Mathieu Bridon <bochecha at fedoraproject.org>
Date:   Thu Jul 10 14:18:55 2014 +0200

    Split the engines into their own subpackages.
    
    This makes much more sense for users of a graphical package manager
    (like GNOME Software): installing one installs just that, and more
    importantly removing an engine doesn't remove the other one.

 ibus-cangjie.spec |   56 +++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 50 insertions(+), 6 deletions(-)
---
diff --git a/ibus-cangjie.spec b/ibus-cangjie.spec
index 42f1f20..f1fd09f 100644
--- a/ibus-cangjie.spec
+++ b/ibus-cangjie.spec
@@ -3,7 +3,7 @@
 Name:             ibus-cangjie
 Summary:          IBus engine to input Cangjie and Quick
 Version:          2.2
-Release:          3%{?dist}
+Release:          4%{?dist}
 License:          GPLv3+
 URL:              http://cangjians.github.io/projects/%{name}
 Source0:          http://cangjians.github.io/downloads/%{name}/%{name}-%{version}.tar.xz
@@ -26,11 +26,42 @@ Requires:         python3-gobject
 # https://github.com/Cangjians/ibus-cangjie/issues/56
 Patch0:           ibus-cangjie-2.2-Skip-a-unit-test.patch
 
+# Splitting the packages for Fedora 21+
+Obsoletes: ibus-cangjie < 2.2-4
+
 %description
-IBus engine for users of the Cangjie and Quick input methods.
+Common files needed by the IBus engines for users of the Cangjie and Quick
+input methods.
+
+
+%package engine-cangjie
+Summary:          Cangjie input method for IBus
+Requires:         %{name} = %{version}-%{release}
+
+# Splitting the packages for Fedora 21+
+Obsoletes: ibus-cangjie < 2.2-4
+
+%description engine-cangjie
+IBus engine for users of the Cangjie input method.
+
+It is primarily intended to Hong Kong people who want to input Traditional
+Chinese, as they are (by far) the majority of Cangjie users.
+
+However, it should work for others as well (e.g to input Simplified Chinese).
+
+
+%package engine-quick
+Summary:          Quick (Simplified Cangjie) input method for IBus
+Requires:         %{name} = %{version}-%{release}
+
+# Splitting the packages for Fedora 21+
+Obsoletes: ibus-cangjie < 2.2-4
+
+%description engine-quick
+IBus engine for users of the Quick (Simplified Cangjie) input method.
 
 It is primarily intended to Hong Kong people who want to input Traditional
-Chinese, as they are (by far) the majority of Cangjie and Quick users.
+Chinese, as they are (by far) the majority of Quick users.
 
 However, it should work for others as well (e.g to input Simplified Chinese).
 
@@ -79,10 +110,7 @@ fi
 %doc AUTHORS COPYING README.md
 %{_bindir}/ibus-setup-cangjie
 %{python3_sitelib}/%{module_name}
-%{_datadir}/applications/ibus-setup-*.desktop
 %{_datadir}/%{name}
-%{_datadir}/ibus/component/*.xml
-%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/glib-2.0/schemas/org.cangjians.ibus.*.gschema.xml
 %{_datadir}/icons/hicolor/*/intl/*
 
@@ -91,8 +119,24 @@ fi
 #     https://fedoraproject.org/wiki/Packaging:Guidelines#Multilib_Exempt_Locations
 %{_prefix}/lib/%{name}
 
+%files engine-cangjie
+%{_datadir}/applications/ibus-setup-cangjie.desktop
+%{_datadir}/appdata/cangjie.appdata.xml
+%{_datadir}/ibus/component/cangjie.xml
+
+%files engine-quick
+%{_datadir}/applications/ibus-setup-quick.desktop
+%{_datadir}/appdata/quick.appdata.xml
+%{_datadir}/ibus/component/quick.xml
+
 
 %changelog
+* Thu Jul 10 2014 Mathieu Bridon <bochecha at fedoraproject.org> - 2.2-4
+- Split the engines into their own subpackages.
+  This makes much more sense for users of a graphical package manager (like
+  GNOME Software): installing one installs just that, and more importantly
+  removing an engine doesn't remove the other one.
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.2-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list