[6890] | 1 | Summary: A library for password generation and password quality checking |
---|
| 2 | Name: libpwquality |
---|
[12372] | 3 | Version: 1.4.2 |
---|
[9073] | 4 | Release: 1%{?_dist_release} |
---|
[12372] | 5 | Group: System Environment/Base |
---|
| 6 | Vendor: Project Vine |
---|
| 7 | Distribution: Vine Linux |
---|
[6890] | 8 | # The package is BSD licensed with option to relicense as GPLv2+ |
---|
| 9 | # - this option is redundant as the BSD license allows that anyway. |
---|
| 10 | License: BSD or GPLv2+ |
---|
[11942] | 11 | Source0: https://github.com/libpwquality/libpwquality/releases/download/libpwquality-%{version}/libpwquality-%{version}.tar.bz2 |
---|
[6890] | 12 | |
---|
| 13 | %global _moduledir /%{_lib}/security |
---|
| 14 | %global _secconfdir %{_sysconfdir}/security |
---|
| 15 | |
---|
| 16 | Requires: cracklib-dicts >= 2.8 |
---|
[7938] | 17 | Requires: pam |
---|
[6890] | 18 | BuildRequires: cracklib |
---|
| 19 | BuildRequires: gettext |
---|
| 20 | BuildRequires: pam-devel |
---|
| 21 | BuildRequires: python-devel |
---|
[11942] | 22 | BuildRequires: python-rpm-macros |
---|
| 23 | BuildRequires: python3-devel |
---|
| 24 | BuildRequires: python3-rpm-macros |
---|
[6890] | 25 | |
---|
[9791] | 26 | URL: https://fedorahosted.org/libpwquality/ |
---|
[6890] | 27 | |
---|
| 28 | # we don't want to provide private python extension libs |
---|
[11942] | 29 | %define __provides_exclude_from ^(%{python_sitearch}|%{python3_sitearch})/.*\.so$. |
---|
[6890] | 30 | |
---|
| 31 | %description |
---|
| 32 | This is a library for password quality checks and generation |
---|
| 33 | of random passwords that pass the checks. |
---|
| 34 | This library uses the cracklib and cracklib dictionaries |
---|
| 35 | to perform some of the checks. |
---|
| 36 | |
---|
| 37 | %package devel |
---|
| 38 | Group: Development/Libraries |
---|
| 39 | Summary: Files needed for developing PAM-aware applications and modules for PAM |
---|
[7938] | 40 | Requires: libpwquality = %{version}-%{release} |
---|
[6890] | 41 | Requires: pkgconfig |
---|
| 42 | |
---|
| 43 | %description devel |
---|
| 44 | Files needed for development of applications using the libpwquality |
---|
| 45 | library. |
---|
| 46 | See the pwquality.h header file for the API. |
---|
| 47 | |
---|
| 48 | %package -n python-pwquality |
---|
| 49 | Group: Development/Libraries |
---|
| 50 | Summary: Python bindings for the libpwquality library |
---|
[7938] | 51 | Requires: libpwquality = %{version}-%{release} |
---|
[6890] | 52 | |
---|
| 53 | %description -n python-pwquality |
---|
| 54 | This is pwquality Python module that provides Python bindings |
---|
| 55 | for the libpwquality library. These bindings can be used |
---|
| 56 | for easy password quality checking and generation of random |
---|
| 57 | pronounceable passwords from Python applications. |
---|
| 58 | |
---|
[11942] | 59 | %package -n python3-pwquality |
---|
| 60 | Group: Development/Libraries |
---|
| 61 | Summary: Python bindings for the libpwquality library |
---|
| 62 | Requires: libpwquality = %{version}-%{release} |
---|
| 63 | |
---|
| 64 | %description -n python3-pwquality |
---|
| 65 | This is pwquality Python module that provides Python bindings |
---|
| 66 | for the libpwquality library. These bindings can be used |
---|
| 67 | for easy password quality checking and generation of random |
---|
| 68 | pronounceable passwords from Python applications. |
---|
| 69 | |
---|
[6890] | 70 | %prep |
---|
| 71 | %setup -q |
---|
| 72 | |
---|
[11942] | 73 | rm -rf %{py3dir} |
---|
| 74 | cp -a . %{py3dir} |
---|
| 75 | |
---|
[6890] | 76 | %build |
---|
| 77 | %configure \ |
---|
[11942] | 78 | --with-securedir=%{_moduledir} \ |
---|
[6890] | 79 | --with-pythonsitedir=%{python_sitearch} \ |
---|
[11942] | 80 | --with-python-binary=%{__python} \ |
---|
[6890] | 81 | --disable-static |
---|
| 82 | |
---|
| 83 | make %{?_smp_mflags} |
---|
| 84 | |
---|
[11942] | 85 | pushd %{py3dir} |
---|
| 86 | %configure \ |
---|
| 87 | --with-securedir=%{_moduledir} \ |
---|
| 88 | --with-pythonsitedir=%{python3_sitearch} \ |
---|
| 89 | --with-python-binary=%{__python3} \ |
---|
| 90 | --disable-static |
---|
| 91 | |
---|
| 92 | make %{?_smp_mflags} |
---|
| 93 | popd |
---|
| 94 | |
---|
[6890] | 95 | %install |
---|
| 96 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' |
---|
| 97 | |
---|
[11942] | 98 | pushd %{py3dir} |
---|
| 99 | make -C python install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' |
---|
| 100 | popd |
---|
| 101 | |
---|
[6890] | 102 | pushd $RPM_BUILD_ROOT%{_libdir} |
---|
| 103 | mv libpwquality.so.* $RPM_BUILD_ROOT/%{_lib}/ |
---|
| 104 | ln -sf ../../%{_lib}/libpwquality.so.*.* libpwquality.so |
---|
| 105 | popd |
---|
| 106 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 107 | rm -f $RPM_BUILD_ROOT%{_moduledir}/*.la |
---|
| 108 | |
---|
[11942] | 109 | mkdir $RPM_BUILD_ROOT%{_secconfdir}/pwquality.conf.d |
---|
| 110 | |
---|
[6890] | 111 | %find_lang libpwquality |
---|
| 112 | |
---|
| 113 | %check |
---|
| 114 | # Nothing yet |
---|
| 115 | |
---|
| 116 | %post -p /sbin/ldconfig |
---|
| 117 | |
---|
| 118 | %postun -p /sbin/ldconfig |
---|
| 119 | |
---|
| 120 | %files -f libpwquality.lang |
---|
| 121 | %defattr(-,root,root,-) |
---|
[11942] | 122 | %{!?_licensedir:%global license %%doc} |
---|
| 123 | %license COPYING |
---|
| 124 | %doc README NEWS AUTHORS |
---|
[6890] | 125 | %{_bindir}/pwmake |
---|
| 126 | %{_bindir}/pwscore |
---|
| 127 | %{_moduledir}/pam_pwquality.so |
---|
| 128 | /%{_lib}/libpwquality.so.* |
---|
| 129 | %config(noreplace) %{_secconfdir}/pwquality.conf |
---|
| 130 | %{_mandir}/man1/* |
---|
| 131 | %{_mandir}/man5/* |
---|
| 132 | %{_mandir}/man8/* |
---|
| 133 | |
---|
| 134 | %files devel |
---|
| 135 | %defattr(-,root,root,-) |
---|
| 136 | %{_includedir}/pwquality.h |
---|
| 137 | %{_libdir}/libpwquality.so |
---|
| 138 | %{_libdir}/pkgconfig/*.pc |
---|
[11942] | 139 | %{_mandir}/man3/* |
---|
[6890] | 140 | |
---|
| 141 | %files -n python-pwquality |
---|
| 142 | %defattr(-,root,root,-) |
---|
| 143 | %{python_sitearch}/pwquality.so |
---|
[11942] | 144 | %{python_sitearch}/*.egg-info |
---|
[6890] | 145 | |
---|
[11942] | 146 | %files -n python3-pwquality |
---|
| 147 | %defattr(-,root,root,-) |
---|
| 148 | %{python3_sitearch}/*.so |
---|
| 149 | %{python3_sitearch}/*.egg-info |
---|
| 150 | |
---|
[6890] | 151 | %changelog |
---|
[12372] | 152 | * Sun Apr 12 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.2-1 |
---|
| 153 | - new upstream release. |
---|
| 154 | - dropped Patch1: fixed in upstream. |
---|
| 155 | |
---|
[11942] | 156 | * Wed Nov 28 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.0-1 |
---|
| 157 | - new upstream release. |
---|
| 158 | - added python3 support. |
---|
| 159 | |
---|
[9791] | 160 | * Sun Nov 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.3.0-1 |
---|
| 161 | - new upstream release |
---|
| 162 | |
---|
[9073] | 163 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.4-1 |
---|
| 164 | - new upstream release |
---|
| 165 | |
---|
[8119] | 166 | * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.3-2 |
---|
| 167 | - rebuild with VineSeed environment |
---|
| 168 | |
---|
[7938] | 169 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.3-1 |
---|
| 170 | - new upstream release |
---|
| 171 | |
---|
[6890] | 172 | * Sun Sep 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-1 |
---|
| 173 | - initial build for Vine Linux |
---|
| 174 | |
---|
| 175 | |
---|
| 176 | * Thu Aug 16 2012 Tomas Mraz <tmraz@redhat.com> 1.2.0-1 |
---|
| 177 | - add maxsequence check for too long monotonic character sequence. |
---|
| 178 | - clarified alternative licensing to GPLv2+. |
---|
| 179 | - add local_users_only option to skip the pwquality checks for |
---|
| 180 | non-locals. (thanks to Stef Walter) |
---|
| 181 | |
---|
| 182 | * Wed Jun 13 2012 Tomas Mraz <tmraz@redhat.com> 1.1.1-1 |
---|
| 183 | - use rpm built-in filtering of provides (rhbz#830153) |
---|
| 184 | - remove strain debug fprintf() (rhbz#831567) |
---|
| 185 | |
---|
| 186 | * Thu May 24 2012 Tomas Mraz <tmraz@redhat.com> 1.1.0-1 |
---|
| 187 | - fix leak when throwing PWQError exception |
---|
| 188 | - added pkgconfig file |
---|
| 189 | - call the simplicity checks before the cracklib check |
---|
| 190 | - add enforce_for_root option to the PAM module |
---|
| 191 | - updated translations from Transifex |
---|
| 192 | |
---|
| 193 | * Thu Dec 8 2011 Tomas Mraz <tmraz@redhat.com> 1.0.0-1 |
---|
| 194 | - added a few additional password quality checks |
---|
| 195 | - bugfix in configuration file parsing |
---|
| 196 | |
---|
| 197 | * Fri Nov 11 2011 Tomas Mraz <tmraz@redhat.com> 0.9.9-1 |
---|
| 198 | - added python bindings and documentation |
---|
| 199 | |
---|
| 200 | * Mon Oct 10 2011 Tomas Mraz <tmraz@redhat.com> 0.9-2 |
---|
| 201 | - fixes for problems found in review (missing BR on pam-devel, |
---|
| 202 | License field, Source URL, Require pam, other cleanups) |
---|
| 203 | |
---|
| 204 | * Mon Oct 3 2011 Tomas Mraz <tmraz@redhat.com> 0.9-1 |
---|
| 205 | - first spec file for libpwquality |
---|