[sphinxbase] Use RPM 4.9's new filter scheme to remove bogus provides. Minor spec file cleanups.

Jerry James jjames at fedoraproject.org
Fri Jul 15 16:20:50 UTC 2011


commit 35299647a68e247fd0f2335a04a180bd140b8b8c
Author: Jerry James <loganjerry at gmail.com>
Date:   Fri Jul 15 10:20:06 2011 -0600

    Use RPM 4.9's new filter scheme to remove bogus provides.
    Minor spec file cleanups.

 sphinxbase.spec |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/sphinxbase.spec b/sphinxbase.spec
index bc97b49..f106c26 100644
--- a/sphinxbase.spec
+++ b/sphinxbase.spec
@@ -1,6 +1,6 @@
 Name:           sphinxbase
 Version:        0.7
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Common library for CMU Sphinx voice recognition products
 
 Group:          Development/Libraries
@@ -28,6 +28,8 @@ BuildRequires:  python2-devel
 BuildRequires:  python-setuptools
 BuildRequires:  tex(latex)
 
+%global __provides_exclude_from ^%{_libdir}/python.*\.so$
+
 %description
 Sphinxbase is a common library for CMU Sphinx voice recognition products.
 This package does not provide voice recognition by itself.
@@ -35,7 +37,8 @@ This package does not provide voice recognition by itself.
 %package devel
 Summary:        Header and other development files for sphinxbase
 Group:          Development/Libraries
-Requires:       %{name}-libs = %{version}-%{release}, alsa-lib-devel, pkgconfig
+Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
+Requires:       alsa-lib-devel, pkgconfig
 
 %description devel
 Header files and other development files for sphinxbase.
@@ -50,7 +53,7 @@ The libraries for sphinxbase.
 %package python
 Summary:        Python interface to sphinxbase
 Group:          Development/Libraries
-Requires:       %{name}-libs = %{version}-%{release}
+Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
 
 %description python
 Python interface to sphinxbase.
@@ -121,12 +124,10 @@ gcc ${RPM_OPT_FLAGS} -std=gnu99 -shared cont_ad_base.o ad_alsa.o \
 %postun libs -p /sbin/ldconfig
 
 %files
-%defattr(-,root,root,-)
 %{_bindir}/*
 %{_mandir}/man1/*
 
 %files devel
-%defattr(-,root,root,-)
 %doc doc/html
 %{_includedir}/sphinxbase
 %{_libdir}/libsphinxad.so
@@ -134,16 +135,18 @@ gcc ${RPM_OPT_FLAGS} -std=gnu99 -shared cont_ad_base.o ad_alsa.o \
 %{_libdir}/pkgconfig/sphinxbase.pc
 
 %files libs
-%defattr(-,root,root,-)
 %doc AUTHORS ChangeLog COPYING NEWS README
 %{_libdir}/libsphinxad.so.*
 %{_libdir}/libsphinxbase.so.*
 
 %files python
-%defattr(-,root,root,-)
 %{python_sitearch}/*
 
 %changelog
+* Fri Jul 15 2011 Jerry James <loganjerry at gmail.com> - 0.7-2
+- Use RPM 4.9's new filter scheme to remove bogus provides
+- Minor spec file cleanups
+
 * Tue Apr 19 2011 Jerry James <loganjerry at gmail.com> - 0.7-1
 - New upstream release
 


More information about the scm-commits mailing list