summaryrefslogtreecommitdiff
path: root/libpwquality.spec.in
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@redhat.com>2011-11-11 12:27:37 +0100
committerTomas Mraz <tmraz@redhat.com>2011-11-11 12:27:37 +0100
commitb095651ef79468801d2096d253604c5e8b2cf295 (patch)
tree9acdc2aa6dfbf35748c8c50c855ddaf4e41ffd4f /libpwquality.spec.in
parentf5e95154ea6894b9275ffc60a57cda51358c93ca (diff)
downloadlibpwquality-b095651ef79468801d2096d253604c5e8b2cf295.tar.gz
Add documentation. Prerelease 0.9.9 - RC candidate.libpwquality-0.9.9
Diffstat (limited to 'libpwquality.spec.in')
-rw-r--r--libpwquality.spec.in29
1 files changed, 29 insertions, 0 deletions
diff --git a/libpwquality.spec.in b/libpwquality.spec.in
index 54d283d..f1ba016 100644
--- a/libpwquality.spec.in
+++ b/libpwquality.spec.in
@@ -16,9 +16,16 @@ Requires: pam%{?_isa}
BuildRequires: cracklib-devel
BuildRequires: gettext
BuildRequires: pam-devel
+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
+}
+
%description
This is a library for password quality checks and generation
of random passwords that pass the checks.
@@ -35,12 +42,24 @@ Files needed for development of applications using the libpwquality
library.
See the pwquality.h header file for the API.
+%package -n python-pwquality
+Group: Development/Libraries
+Summary: Python bindings for the libpwquality library
+Requires: libpwquality%{?_isa} = %{version}-%{release}
+
+%description -n python-pwquality
+This is pwquality Python module that provides Python bindings
+for the libpwquality library. These bindings can be used
+for easy password quality checking and generation of random
+pronounceable passwords from Python applications.
+
%prep
%setup -q
%build
%configure \
--libdir=/%{_lib} \
+ --with-pythonsitedir=%{python_sitearch} \
--disable-static
make %{?_smp_mflags}
@@ -73,13 +92,23 @@ rm -f $RPM_BUILD_ROOT%{_moduledir}/*.la
%{_moduledir}/pam_pwquality.so
/%{_lib}/libpwquality.so.*
%config(noreplace) %{_secconfdir}/pwquality.conf
+%{_mandir}/man1/*
+%{_mandir}/man5/*
+%{_mandir}/man8/*
%files devel
%defattr(-,root,root,-)
%{_includedir}/pwquality.h
%{_libdir}/libpwquality.so
+%files -n python-pwquality
+%defattr(-,root,root,-)
+%{python_sitearch}/pwquality.so
+
%changelog
+* Fri Nov 11 2011 Tomas Mraz <tmraz@redhat.com> 0.9.9-1
+- added python bindings and documentation
+
* Mon Oct 10 2011 Tomas Mraz <tmraz@redhat.com> 0.9-2
- fixes for problems found in review (missing BR on pam-devel,
License field, Source URL, Require pam, other cleanups)