1 Summary: A password/passphrase strength checking and policy enforcement toolset
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)
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
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
25 pwqcheck and pwqgen are standalone password/passphrase strength
26 checking and random passphrase generator programs, respectively, which
27 are usable from scripts.
29 libpasswdqc is the underlying library, which may also be used from
33 Summary: Libraries and header files for building passwdqc-aware applications
34 Group: Development/Libraries
35 Requires: %{name} = %{version}-%{release}
38 This package contains development libraries and header files needed
39 for building passwdqc-aware applications.
41 %package -n pam-pam_passwdqc
42 Summary: Password quality-control PAM module
44 Requires: %{name} = %{version}-%{release}
46 %description -n pam-pam_passwdqc
47 The pam_passwdqc module is a simple password strength checking module
48 for PAM. In addition to checking regular passwords, it offers support
49 for passphrases and can provide randomly generated ones.
55 sed -i -e 's#^CC =.*#CC = %{__cc}#g' Makefile
59 CFLAGS_lib="-Wall -W -fPIC -DLINUX_PAM %{rpmcflags}_lib %{rpmcppflags}" \
60 CFLAGS_bin="-Wall -W %{rpmcflags} %{rpmcppflags}" \
61 LDFLAGS="%{rpmldflags}"
64 rm -rf $RPM_BUILD_ROOT
67 DESTDIR=$RPM_BUILD_ROOT \
69 SHARED_LIBDIR=/%{_lib} \
70 DEVEL_LIBDIR=%{_libdir} \
71 SECUREDIR=/%{_lib}/security
73 %post -p /sbin/ldconfig
74 %postun -p /sbin/ldconfig
77 rm -rf $RPM_BUILD_ROOT
80 %defattr(644,root,root,755)
81 %doc LICENSE README pwqcheck.php
82 %attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/passwdqc.conf
83 %attr(755,root,root) /%{_lib}/libpasswdqc.so.0
84 %attr(755,root,root) %{_bindir}/pwqcheck
85 %attr(755,root,root) %{_bindir}/pwqgen
86 %{_mandir}/man1/pwqcheck.1*
87 %{_mandir}/man1/pwqgen.1*
88 %{_mandir}/man5/passwdqc.conf.5*
91 %defattr(644,root,root,755)
92 %{_includedir}/passwdqc.h
93 %attr(755,root,root) %{_libdir}/libpasswdqc.so
95 %files -n pam-pam_passwdqc
96 %defattr(644,root,root,755)
97 %attr(755,root,root) /%{_lib}/security/pam_passwdqc.so
98 %{_mandir}/man8/pam_passwdqc.8*