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