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

This commit is contained in:
Tomas Mraz 2012-06-08 14:22:53 +02:00
parent 1daf1d97e8
commit 3d5ef644e5

View File

@ -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@redhat.com> 1.1.0-2
- use rpm built-in filtering of provides (#830153)
* Thu May 24 2012 Tomas Mraz <tmraz@redhat.com> 1.1.0-1
- fix leak when throwing PWQError exception
- added pkgconfig file