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