[pocketsphinx] Split the voice and language models into a noarch subpackage due to size.

Jerry James jjames at fedoraproject.org
Fri Sep 6 14:42:14 UTC 2013


commit 62a68af8e94b2e47028219f4b5373851c8c22f3d
Author: Jerry James <jamesjer at betterlinux.com>
Date:   Fri Sep 6 08:41:49 2013 -0600

    Split the voice and language models into a noarch subpackage due to size.

 pocketsphinx.spec |   28 ++++++++++++++++++++++------
 1 files changed, 22 insertions(+), 6 deletions(-)
---
diff --git a/pocketsphinx.spec b/pocketsphinx.spec
index b104b3a..f30007c 100644
--- a/pocketsphinx.spec
+++ b/pocketsphinx.spec
@@ -1,6 +1,6 @@
 Name:           pocketsphinx
 Version:        0.8
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        Real-time speech recognition
 
 Group:          Applications/Multimedia
@@ -24,6 +24,9 @@ BuildRequires:  python2-devel
 BuildRequires:  python-setuptools
 BuildRequires:  sphinxbase-devel
 
+Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
+Requires:       %{name}-models
+
 %global __provides_exclude_from ^%{_libdir}/python.*\\.so$
 
 %description
@@ -48,6 +51,14 @@ Group:          Applications/Multimedia
 %description libs
 Shared libraries for pocketsphinx executables.
 
+%package models
+Summary:        Voice and language models for pocketsphinx
+Group:          Applications/Multimedia
+BuildArch:      noarch
+
+%description models
+Voice and language models for pocketsphinx.
+
 %package plugin
 Summary:        Pocketsphinx gstreamer plugin
 Group:          Applications/Multimedia
@@ -114,18 +125,20 @@ rm -f doc/html/installdox
 
 %files
 %{_bindir}/*
-%{_datadir}/pocketsphinx
 %{_mandir}/man1/*
 
 %files devel
 %doc doc/html
-%{_includedir}/pocketsphinx
-%{_libdir}/libpocketsphinx.so
-%{_libdir}/pkgconfig/pocketsphinx.pc
+%{_includedir}/%{name}/
+%{_libdir}/lib%{name}.so
+%{_libdir}/pkgconfig/%{name}.pc
 
 %files libs
 %doc AUTHORS ChangeLog COPYING NEWS README
-%{_libdir}/libpocketsphinx.so.*
+%{_libdir}/lib%{name}.so.*
+
+%files models
+%{_datadir}/%{name}/
 
 %files plugin
 %{_libdir}/gstreamer-0.10/*
@@ -134,6 +147,9 @@ rm -f doc/html/installdox
 %{python_sitearch}/*
 
 %changelog
+* Thu Sep  5 2013 Jerry James <loganjerry at gmail.com> - 0.8-6
+- Split the voice and language models into a noarch subpackage due to size
+
 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.8-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 


More information about the scm-commits mailing list