[libcangjie: 3/5] Split out the databases to a noarch subpackage

Mathieu Bridon bochecha at fedoraproject.org
Mon Apr 29 14:12:46 UTC 2013


commit 9bbfff7b8d6e9b51fe43b50b38b369b9c491c9cd
Author: Mathieu Bridon <bochecha at fedoraproject.org>
Date:   Sat Apr 20 22:39:13 2013 +0800

    Split out the databases to a noarch subpackage
    
    This was submitted to the review process on Sat 20 2013:
        https://bugzilla.redhat.com/show_bug.cgi?id=954040#c2

 libcangjie.spec |   23 ++++++++++++++++++++---
 1 files changed, 20 insertions(+), 3 deletions(-)
---
diff --git a/libcangjie.spec b/libcangjie.spec
index 710a117..8d0bf3e 100644
--- a/libcangjie.spec
+++ b/libcangjie.spec
@@ -1,7 +1,7 @@
 Name:             libcangjie
 Summary:          CangJie Input Method Library
 Version:          0.0.1a
-Release:          1%{?dist}
+Release:          2%{?dist}
 License:          LGPLv3+
 URL:              https://github.com/wanleung/libcangjie
 Source0:          http://wanleung.com/%{name}/%{name}-%{version}.tar.xz
@@ -11,10 +11,21 @@ BuildRequires:    libdb-cxx-devel
 # For the unit tests
 BuildRequires:    perl(BerkeleyDB)
 
+# Split out so it can be noarch
+Requires:         %{name}-data = %{version}-%{release}
+
 %description
 CangJie Input Method Library
 
 
+%package data
+Summary:          Databases for %{name}
+BuildArch:        noarch
+
+%description data
+Databases for %{name}.
+
+
 %package devel
 Summary:          Development files for %{name}
 Requires:         %{name}%{_isa} = %{version}-%{release}
@@ -54,10 +65,12 @@ make check
 
 
 %files
-%doc README.md COPYING tables/COPYING.tables
-%{_datadir}/%{name}
+%doc README.md COPYING
 %{_libdir}/%{name}.so.1*
 
+%files data
+%doc tables/COPYING.tables
+%{_datadir}/%{name}
 
 %files devel
 %{_bindir}/libcangjie_*
@@ -67,5 +80,9 @@ make check
 
 
 %changelog
+* Sat Apr 20 2013 Mathieu Bridon <bochecha at fedoraproject.org> - 0.0.1a-2
+- Split out the databases to a noarch subpackage, as suggested by Michael
+  during the review.
+
 * Sat Apr 20 2013 Mathieu Bridon <bochecha at fedoraproject.org> - 0.0.1a-1
 - Initial package for Fedora.


More information about the scm-commits mailing list