From acdbf251285452bded35f7f79db9d70d7b50e974 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Fri, 11 Nov 2011 12:31:05 +0100 Subject: [PATCH] added python bindings and documentation --- .gitignore | 1 + libpwquality.spec | 33 +++++++++++++++++++++++++++++++-- sources | 2 +- 3 files changed, 33 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 786d0ae..59504c7 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /libpwquality-0.9.tar.bz2 +/libpwquality-0.9.9.tar.bz2 diff --git a/libpwquality.spec b/libpwquality.spec index 79b7c8b..30aa671 100644 --- a/libpwquality.spec +++ b/libpwquality.spec @@ -1,7 +1,7 @@ Summary: A library for password generation and password quality checking Name: libpwquality -Version: 0.9 -Release: 2%{?dist} +Version: 0.9.9 +Release: 1%{?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+ @@ -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 0.9.9-1 +- added python bindings and documentation + * Mon Oct 10 2011 Tomas Mraz 0.9-2 - fixes for problems found in review (missing BR on pam-devel, License field, Source URL, Require pam, other cleanups) diff --git a/sources b/sources index cf4214c..f98a671 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -bcc2d2151abd1fa0157274df2adf13b0 libpwquality-0.9.tar.bz2 +483360ccf87c8f2721fe24ea5d8125b3 libpwquality-0.9.9.tar.bz2