Blame SPECS/libpwquality.spec

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