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