[libpwquality/f17] use rpm built-in filtering of provides (#830153)

Tomáš Mráz tmraz at fedoraproject.org
Fri Jun 8 12:22:58 UTC 2012


commit 3d5ef644e5c7a241681578e69c4c34e8f293f0aa
Author: Tomas Mraz <tmraz at fedoraproject.org>
Date:   Fri Jun 8 14:22:53 2012 +0200

    use rpm built-in filtering of provides (#830153)

 libpwquality.spec |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libpwquality.spec b/libpwquality.spec
index e9d145f..aab2830 100644
--- a/libpwquality.spec
+++ b/libpwquality.spec
@@ -1,7 +1,7 @@
 Summary: A library for password generation and password quality checking
 Name: libpwquality
 Version: 1.1.0
-Release: 1%{?dist}
+Release: 2%{?dist}
 # The package is BSD licensed with option to relicense as GPL+
 # - this option is redundant as the BSD license allows that anyway.
 License: BSD or GPL+
@@ -21,10 +21,7 @@ BuildRequires: python2-devel
 URL: http://libpwquality.fedorahosted.org/
 
 # we don't want to provide private python extension libs
-%{?filter_setup:
-%filter_provides_in %{python_sitearch}/.*\.so$.
-%filter_setup
-}
+%define __provides_exclude_from ^%{python_sitearch}/.*\.so$.
 
 %description
 This is a library for password quality checks and generation
@@ -107,6 +104,9 @@ rm -f $RPM_BUILD_ROOT%{_moduledir}/*.la
 %{python_sitearch}/pwquality.so
 
 %changelog
+* Fri Jun  8 2012 Tomas Mraz <tmraz at redhat.com> 1.1.0-2
+- use rpm built-in filtering of provides (#830153)
+
 * Thu May 24 2012 Tomas Mraz <tmraz at redhat.com> 1.1.0-1
 - fix leak when throwing PWQError exception
 - added pkgconfig file


More information about the scm-commits mailing list