]>
Commit | Line | Data |
---|---|---|
ae527f24 AM |
1 | Summary: A password/passphrase strength checking and policy enforcement toolset |
2 | Name: passwdqc | |
3 | Version: 1.3.0 | |
4 | Release: 1 | |
5 | License: BSD | |
6 | Group: Base | |
7 | URL: http://www.openwall.com/passwdqc/ | |
8 | Source0: http://www.openwall.com/passwdqc/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 3225280caba817c7009dffc157efc1b9 | |
10 | BuildRequires: pam-devel | |
11 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
12 | ||
13 | %description | |
14 | passwdqc is a password/passphrase strength checking and policy | |
15 | enforcement toolset, including a PAM module (pam_passwdqc), | |
16 | command-line programs (pwqcheck and pwqgen), and a library | |
17 | (libpasswdqc). | |
18 | ||
19 | pam_passwdqc is normally invoked on password changes by programs such | |
20 | as passwd(1). It is capable of checking password or passphrase | |
21 | strength, enforcing a policy, and offering randomly-generated | |
22 | passphrases, with all of these features being optional and easily | |
23 | (re-)configurable. | |
24 | ||
25 | pwqcheck and pwqgen are standalone password/passphrase strength | |
26 | checking and random passphrase generator programs, respectively, which | |
27 | are usable from scripts. | |
28 | ||
29 | libpasswdqc is the underlying library, which may also be used from | |
30 | third-party programs. | |
31 | ||
32 | %package devel | |
33 | Summary: Libraries and header files for building passwdqc-aware applications | |
34 | Group: Development/Libraries | |
35 | Requires: %name = %version-%release | |
36 | ||
37 | %description devel | |
38 | This package contains development libraries and header files needed | |
39 | for building passwdqc-aware applications. | |
40 | ||
41 | %package -n pam-pam_passwdqc | |
42 | Summary: Password quality-control PAM module | |
43 | Group: Base | |
44 | ||
45 | %description -n pam-pam_passwdqc | |
46 | The pam_passwdqc module is a simple password strength checking module | |
47 | for PAM. In addition to checking regular passwords, it offers support | |
48 | for passphrases and can provide randomly generated ones. | |
49 | ||
50 | %prep | |
51 | %setup -q | |
52 | ||
53 | %build | |
54 | sed -i -e 's#^CC =.*#CC = %{__cc}#g' Makefile | |
55 | ||
56 | %{__make} | |
57 | CC="%{_cc}" \ | |
58 | CFLAGS_lib="-Wall -W -fPIC -DLINUX_PAM %{rpmcflags}_lib %{rpmcppflags}" \ | |
59 | CFLAGS_bin="-Wall -W %{rpmcflags} %{rpmcppflags}" \ | |
60 | LDFLAGS="%{rpmldflags}" | |
61 | ||
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %{__make} install \ | |
66 | DESTDIR=$RPM_BUILD_ROOT \ | |
67 | MANDIR=%{_mandir} \ | |
68 | SHARED_LIBDIR=/%{_lib} \ | |
69 | DEVEL_LIBDIR=%{_libdir} \ | |
70 | SECUREDIR=/%{_lib}/security | |
71 | ||
72 | %post -p /sbin/ldconfig | |
73 | %postun -p /sbin/ldconfig | |
74 | ||
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %files | |
79 | %defattr(644,root,root,755) | |
80 | %doc LICENSE README pwqcheck.php | |
81 | %attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/passwdqc.conf | |
82 | %attr(755,root,root) /%{_lib}/libpasswdqc.so.0 | |
83 | %attr(755,root,root) %{_bindir}/pwqcheck | |
84 | %attr(755,root,root) %{_bindir}/pwqgen | |
85 | %{_mandir}/man1/pwqcheck.1* | |
86 | %{_mandir}/man1/pwqgen.1* | |
87 | %{_mandir}/man5/passwdqc.conf.5* | |
88 | ||
89 | %files devel | |
90 | %defattr(644,root,root,755) | |
91 | %{_includedir}/passwdqc.h | |
92 | %attr(755,root,root) %{_libdir}/libpasswdqc.so | |
93 | ||
94 | %files -n pam-pam_passwdqc | |
95 | %defattr(644,root,root,755) | |
96 | %attr(755,root,root) /%{_lib}/security/pam_passwdqc.so | |
97 | %{_mandir}/man8/pam_passwdqc.8* |