|
|
b048f1 |
Summary: A library for password generation and password quality checking
|
|
|
b048f1 |
Name: libpwquality
|
|
|
b048f1 |
Version: 1.2.3
|
|
|
d8a112 |
Release: 4%{?dist}
|
|
|
b048f1 |
# The package is BSD licensed with option to relicense as GPLv2+
|
|
|
b048f1 |
# - this option is redundant as the BSD license allows that anyway.
|
|
|
b048f1 |
License: BSD or GPLv2+
|
|
|
b048f1 |
Group: System Environment/Base
|
|
|
b048f1 |
Source0: http://fedorahosted.org/releases/l/i/libpwquality/libpwquality-%{version}.tar.bz2
|
|
|
d8a112 |
Patch1: libpwquality-1.2.3-translation-updates.patch
|
|
|
b048f1 |
|
|
|
b048f1 |
%global _pwqlibdir %{_libdir}
|
|
|
b048f1 |
%global _moduledir %{_libdir}/security
|
|
|
b048f1 |
%global _secconfdir %{_sysconfdir}/security
|
|
|
b048f1 |
|
|
|
b048f1 |
Requires: cracklib-dicts >= 2.8
|
|
|
b048f1 |
Requires: pam%{?_isa}
|
|
|
b048f1 |
BuildRequires: cracklib-devel
|
|
|
b048f1 |
BuildRequires: gettext
|
|
|
b048f1 |
BuildRequires: pam-devel
|
|
|
b048f1 |
BuildRequires: python2-devel
|
|
|
b048f1 |
|
|
|
b048f1 |
URL: http://libpwquality.fedorahosted.org/
|
|
|
b048f1 |
|
|
|
b048f1 |
# we don't want to provide private python extension libs
|
|
|
b048f1 |
%define __provides_exclude_from ^%{python_sitearch}/.*\.so$.
|
|
|
b048f1 |
|
|
|
b048f1 |
%description
|
|
|
b048f1 |
This is a library for password quality checks and generation
|
|
|
b048f1 |
of random passwords that pass the checks.
|
|
|
b048f1 |
This library uses the cracklib and cracklib dictionaries
|
|
|
b048f1 |
to perform some of the checks.
|
|
|
b048f1 |
|
|
|
b048f1 |
%package devel
|
|
|
b048f1 |
Group: Development/Libraries
|
|
|
b048f1 |
Summary: Support for development of applications using the libpwquality library
|
|
|
b048f1 |
Requires: libpwquality%{?_isa} = %{version}-%{release}
|
|
|
b048f1 |
Requires: pkgconfig
|
|
|
b048f1 |
|
|
|
b048f1 |
%description devel
|
|
|
b048f1 |
Files needed for development of applications using the libpwquality
|
|
|
b048f1 |
library.
|
|
|
b048f1 |
See the pwquality.h header file for the API.
|
|
|
b048f1 |
|
|
|
b048f1 |
%package -n python-pwquality
|
|
|
b048f1 |
Group: Development/Libraries
|
|
|
b048f1 |
Summary: Python bindings for the libpwquality library
|
|
|
b048f1 |
Requires: libpwquality%{?_isa} = %{version}-%{release}
|
|
|
b048f1 |
|
|
|
b048f1 |
%description -n python-pwquality
|
|
|
b048f1 |
This is pwquality Python module that provides Python bindings
|
|
|
b048f1 |
for the libpwquality library. These bindings can be used
|
|
|
b048f1 |
for easy password quality checking and generation of random
|
|
|
b048f1 |
pronounceable passwords from Python applications.
|
|
|
b048f1 |
|
|
|
b048f1 |
%prep
|
|
|
b048f1 |
%setup -q
|
|
|
d8a112 |
%patch1 -p2 -b .translations
|
|
|
b048f1 |
|
|
|
b048f1 |
%build
|
|
|
b048f1 |
%configure \
|
|
|
b048f1 |
--with-securedir=%{_moduledir} \
|
|
|
b048f1 |
--with-pythonsitedir=%{python_sitearch} \
|
|
|
b048f1 |
--disable-static
|
|
|
b048f1 |
|
|
|
d8a112 |
make -C po update-gmo
|
|
|
b048f1 |
make %{?_smp_mflags}
|
|
|
b048f1 |
|
|
|
b048f1 |
%install
|
|
|
b048f1 |
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
|
|
|
b048f1 |
|
|
|
b048f1 |
%if "%{_pwqlibdir}" != "%{_libdir}"
|
|
|
b048f1 |
pushd $RPM_BUILD_ROOT%{_libdir}
|
|
|
b048f1 |
mv libpwquality.so.* $RPM_BUILD_ROOT%{_pwqlibdir}
|
|
|
b048f1 |
ln -sf %{_pwqlibdir}/libpwquality.so.*.* libpwquality.so
|
|
|
b048f1 |
popd
|
|
|
b048f1 |
%endif
|
|
|
b048f1 |
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
b048f1 |
rm -f $RPM_BUILD_ROOT%{_moduledir}/*.la
|
|
|
b048f1 |
|
|
|
b048f1 |
%find_lang libpwquality
|
|
|
b048f1 |
|
|
|
b048f1 |
%check
|
|
|
b048f1 |
# Nothing yet
|
|
|
b048f1 |
|
|
|
b048f1 |
%post -p /sbin/ldconfig
|
|
|
b048f1 |
|
|
|
b048f1 |
%postun -p /sbin/ldconfig
|
|
|
b048f1 |
|
|
|
b048f1 |
%files -f libpwquality.lang
|
|
|
b048f1 |
%defattr(-,root,root,-)
|
|
|
b048f1 |
%doc COPYING README NEWS AUTHORS
|
|
|
b048f1 |
%{_bindir}/pwmake
|
|
|
b048f1 |
%{_bindir}/pwscore
|
|
|
b048f1 |
%{_moduledir}/pam_pwquality.so
|
|
|
b048f1 |
%{_pwqlibdir}/libpwquality.so.*
|
|
|
b048f1 |
%config(noreplace) %{_secconfdir}/pwquality.conf
|
|
|
b048f1 |
%{_mandir}/man1/*
|
|
|
b048f1 |
%{_mandir}/man5/*
|
|
|
b048f1 |
%{_mandir}/man8/*
|
|
|
b048f1 |
|
|
|
b048f1 |
%files devel
|
|
|
b048f1 |
%defattr(-,root,root,-)
|
|
|
b048f1 |
%{_includedir}/pwquality.h
|
|
|
b048f1 |
%{_libdir}/libpwquality.so
|
|
|
b048f1 |
%{_libdir}/pkgconfig/*.pc
|
|
|
b048f1 |
|
|
|
b048f1 |
%files -n python-pwquality
|
|
|
b048f1 |
%defattr(-,root,root,-)
|
|
|
b048f1 |
%{python_sitearch}/pwquality.so
|
|
|
b048f1 |
|
|
|
b048f1 |
%changelog
|
|
|
d8a112 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.2.3-4
|
|
|
d8a112 |
- Mass rebuild 2014-01-24
|
|
|
d8a112 |
|
|
|
d8a112 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.2.3-3
|
|
|
d8a112 |
- Mass rebuild 2013-12-27
|
|
|
d8a112 |
|
|
|
d8a112 |
* Fri Nov 29 2013 Tomáš Mráz <tmraz@redhat.com> 1.2.3-2
|
|
|
d8a112 |
- translation updates
|
|
|
d8a112 |
|
|
|
b048f1 |
* Thu Sep 12 2013 Tomáš Mráz <tmraz@redhat.com> 1.2.3-1
|
|
|
b048f1 |
- fix problem with parsing the pam_pwquality options
|
|
|
b048f1 |
patch by Vladimir Sorokin.
|
|
|
b048f1 |
- updated translations from Transifex
|
|
|
b048f1 |
- treat empty user or password as NULL
|
|
|
b048f1 |
- move the library to /usr
|
|
|
b048f1 |
|
|
|
b048f1 |
* Wed Jun 19 2013 Tomas Mraz <tmraz@redhat.com> 1.2.2-1
|
|
|
b048f1 |
- manual page fixes
|
|
|
b048f1 |
- make it possible to set the maxsequence configuration value
|
|
|
b048f1 |
- updated translations from Transifex
|
|
|
b048f1 |
|
|
|
b048f1 |
* Thu Dec 20 2012 Tomas Mraz <tmraz@redhat.com> 1.2.1-1
|
|
|
b048f1 |
- properly free pwquality settings
|
|
|
b048f1 |
- add extern "C" to public header
|
|
|
b048f1 |
- updated translations from Transifex
|
|
|
b048f1 |
|
|
|
b048f1 |
* Thu Aug 16 2012 Tomas Mraz <tmraz@redhat.com> 1.2.0-1
|
|
|
b048f1 |
- add maxsequence check for too long monotonic character sequence.
|
|
|
b048f1 |
- clarified alternative licensing to GPLv2+.
|
|
|
b048f1 |
- add local_users_only option to skip the pwquality checks for
|
|
|
b048f1 |
non-locals. (thanks to Stef Walter)
|
|
|
b048f1 |
|
|
|
b048f1 |
* Wed Jun 13 2012 Tomas Mraz <tmraz@redhat.com> 1.1.1-1
|
|
|
b048f1 |
- use rpm built-in filtering of provides (rhbz#830153)
|
|
|
b048f1 |
- remove strain debug fprintf() (rhbz#831567)
|
|
|
b048f1 |
|
|
|
b048f1 |
* Thu May 24 2012 Tomas Mraz <tmraz@redhat.com> 1.1.0-1
|
|
|
b048f1 |
- fix leak when throwing PWQError exception
|
|
|
b048f1 |
- added pkgconfig file
|
|
|
b048f1 |
- call the simplicity checks before the cracklib check
|
|
|
b048f1 |
- add enforce_for_root option to the PAM module
|
|
|
b048f1 |
- updated translations from Transifex
|
|
|
b048f1 |
|
|
|
b048f1 |
* Thu Dec 8 2011 Tomas Mraz <tmraz@redhat.com> 1.0.0-1
|
|
|
b048f1 |
- added a few additional password quality checks
|
|
|
b048f1 |
- bugfix in configuration file parsing
|
|
|
b048f1 |
|
|
|
b048f1 |
* Fri Nov 11 2011 Tomas Mraz <tmraz@redhat.com> 0.9.9-1
|
|
|
b048f1 |
- added python bindings and documentation
|
|
|
b048f1 |
|
|
|
b048f1 |
* Mon Oct 10 2011 Tomas Mraz <tmraz@redhat.com> 0.9-2
|
|
|
b048f1 |
- fixes for problems found in review (missing BR on pam-devel,
|
|
|
b048f1 |
License field, Source URL, Require pam, other cleanups)
|
|
|
b048f1 |
|
|
|
b048f1 |
* Mon Oct 3 2011 Tomas Mraz <tmraz@redhat.com> 0.9-1
|
|
|
b048f1 |
- first spec file for libpwquality
|