Summary: A library for password generation and password quality checking Name: libpwquality Version: 1.4.4 Release: 1%{?_dist_release} Group: system Vendor: Project Vine Distribution: Vine Linux # The package is BSD licensed with option to relicense as GPLv2+ # - this option is redundant as the BSD license allows that anyway. License: BSD or GPLv2+ URL: https://github.com/libpwquality/libpwquality Source0: https://github.com/libpwquality/libpwquality/releases/download/libpwquality-%{version}/libpwquality-%{version}.tar.bz2 %global _moduledir /%{_lib}/security %global _secconfdir %{_sysconfdir}/security Requires: cracklib-dicts >= 2.8 Requires: pam BuildRequires: cracklib BuildRequires: gettext BuildRequires: pam-devel BuildRequires: python-rpm-macros BuildRequires: python-devel BuildRequires: python2-rpm-macros BuildRequires: python3-devel BuildRequires: python3-rpm-macros # we don't want to provide private python extension libs %define __provides_exclude_from ^(%{python_sitearch}|%{python3_sitearch})/.*\.so$. %description This is a library for password quality checks and generation of random passwords that pass the checks. This library uses the cracklib and cracklib dictionaries to perform some of the checks. %package devel Summary: Files needed for developing PAM-aware applications and modules for PAM Group: programming Requires: libpwquality = %{version}-%{release} Requires: pkgconfig %description devel Files needed for development of applications using the libpwquality library. See the pwquality.h header file for the API. %package -n python-pwquality Summary: Python bindings for the libpwquality library Group: programming Requires: libpwquality = %{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. %package -n python3-pwquality Summary: Python bindings for the libpwquality library Group: programming Requires: libpwquality = %{version}-%{release} %description -n python3-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. %debug_package %prep %setup -q rm -rf %{py3dir} cp -a . %{py3dir} %build %configure \ --with-securedir=%{_moduledir} \ --with-pythonsitedir=%{python2_sitearch} \ --with-python-binary=%{__python2} \ --disable-static make %{?_smp_mflags} pushd %{py3dir} %configure \ --with-securedir=%{_moduledir} \ --with-pythonsitedir=%{python3_sitearch} \ --with-python-binary=%{__python3} \ --disable-static make %{?_smp_mflags} popd %install make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' pushd %{py3dir} make -C python install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' popd pushd $RPM_BUILD_ROOT%{_libdir} mv libpwquality.so.* $RPM_BUILD_ROOT/%{_lib}/ ln -sf ../../%{_lib}/libpwquality.so.*.* libpwquality.so popd rm -f $RPM_BUILD_ROOT%{_libdir}/*.la rm -f $RPM_BUILD_ROOT%{_moduledir}/*.la mkdir $RPM_BUILD_ROOT%{_secconfdir}/pwquality.conf.d %find_lang libpwquality %check # Nothing yet %files -f libpwquality.lang %defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} %license COPYING %doc README NEWS AUTHORS %{_bindir}/pwmake %{_bindir}/pwscore %{_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 %{_libdir}/pkgconfig/*.pc %{_mandir}/man3/* %files -n python-pwquality %defattr(-,root,root,-) %{python2_sitearch}/pwquality.so %{python2_sitearch}/*.egg-info %files -n python3-pwquality %defattr(-,root,root,-) %{python3_sitearch}/*.so %{python3_sitearch}/*.egg-info %changelog * Fri Apr 02 2021 Tomohiro "Tomo-p" KATO 1.4.4-1 - new upstream release. - dropped ldconfig scriptlets. * Mon Aug 17 2020 Tomohiro "Tomo-p" KATO 1.4.2-2 - rebuilt with python-3.8. * Sun Apr 12 2020 Tomohiro "Tomo-p" KATO 1.4.2-1 - new upstream release. - dropped Patch1: fixed in upstream. * Wed Nov 28 2018 Tomohiro "Tomo-p" KATO 1.4.0-1 - new upstream release. - added python3 support. * Sun Nov 01 2015 Yoji TOYODA 1.3.0-1 - new upstream release * Sun Oct 26 2014 Yoji TOYODA 1.2.4-1 - new upstream release * Sat Jan 04 2014 Yoji TOYODA 1.2.3-2 - rebuild with VineSeed environment * Sat Oct 26 2013 Yoji TOYODA 1.2.3-1 - new upstream release * Sun Sep 30 2012 Yoji TOYODA 1.2.0-1 - initial build for Vine Linux * Thu Aug 16 2012 Tomas Mraz 1.2.0-1 - add maxsequence check for too long monotonic character sequence. - clarified alternative licensing to GPLv2+. - add local_users_only option to skip the pwquality checks for non-locals. (thanks to Stef Walter) * Wed Jun 13 2012 Tomas Mraz 1.1.1-1 - use rpm built-in filtering of provides (rhbz#830153) - remove strain debug fprintf() (rhbz#831567) * Thu May 24 2012 Tomas Mraz 1.1.0-1 - fix leak when throwing PWQError exception - added pkgconfig file - call the simplicity checks before the cracklib check - add enforce_for_root option to the PAM module - updated translations from Transifex * Thu Dec 8 2011 Tomas Mraz 1.0.0-1 - added a few additional password quality checks - bugfix in configuration file parsing * 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) * Mon Oct 3 2011 Tomas Mraz 0.9-1 - first spec file for libpwquality