]>
Commit | Line | Data |
---|---|---|
e4330787 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without audit # libaudit support in PAM (disable for use with PAM without audit support) | |
4 | ||
ae527f24 | 5 | Summary: A password/passphrase strength checking and policy enforcement toolset |
3e4255b7 | 6 | Summary(pl.UTF-8): Narzędzia do sprawdzania i wymuszania polityki jakości haseł |
ae527f24 | 7 | Name: passwdqc |
e4330787 | 8 | Version: 1.4.0 |
8c44b10d | 9 | Release: 1 |
ae527f24 AM |
10 | License: BSD |
11 | Group: Base | |
e4330787 JB |
12 | Source0: https://www.openwall.com/passwdqc/%{name}-%{version}.tar.gz |
13 | # Source0-md5: 204de4ff2e95095272bba1b0cbab1579 | |
14 | URL: https://www.openwall.com/passwdqc/ | |
15 | %{?with_audit:BuildRequires: audit-libs-devel} | |
ae527f24 AM |
16 | BuildRequires: pam-devel |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | passwdqc is a password/passphrase strength checking and policy | |
21 | enforcement toolset, including a PAM module (pam_passwdqc), | |
22 | command-line programs (pwqcheck and pwqgen), and a library | |
23 | (libpasswdqc). | |
24 | ||
ae527f24 AM |
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 | ||
3e4255b7 JB |
32 | %description -l pl.UTF-8 |
33 | passwdqc to zbiór narzędzi do sprawdzania jakości haseł i wymuszania | |
34 | jej polityki. Zawiera moduł PAM (pam_passwdqc), programy uruchamiane z | |
35 | linii poleceń (pwqcheck i pwqgen) oraz bibliotekę (libpasswdqc). | |
36 | ||
37 | pwqcheck oraz pwqgen to samodzielne programy do - odpowiednio - | |
38 | sprawdzania jakości hasła oraz generowania losowych haseł, nadające | |
39 | się do wykorzystania w skryptach. | |
40 | ||
41 | libpasswdqc to będąca ich podstawą biblioteka, którą można | |
42 | wykorzystywać także w innych programach. | |
43 | ||
ae527f24 | 44 | %package devel |
3e4255b7 | 45 | Summary: Header files for building passwdqc-aware applications |
ae527f24 | 46 | Group: Development/Libraries |
338e778a | 47 | Requires: %{name} = %{version}-%{release} |
ae527f24 AM |
48 | |
49 | %description devel | |
3e4255b7 JB |
50 | This package contains the header files needed for building |
51 | passwdqc-aware applications. | |
52 | ||
53 | %description devel -l pl.UTF-8 | |
54 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia aplikacji | |
55 | wykorzystujących passwdqc. | |
ae527f24 AM |
56 | |
57 | %package -n pam-pam_passwdqc | |
58 | Summary: Password quality-control PAM module | |
3e4255b7 | 59 | Summary(pl.UTF-8): Moduł PAM do sprawdzania jakości haseł |
ae527f24 | 60 | Group: Base |
338e778a | 61 | Requires: %{name} = %{version}-%{release} |
ae527f24 AM |
62 | |
63 | %description -n pam-pam_passwdqc | |
64 | The pam_passwdqc module is a simple password strength checking module | |
3e4255b7 JB |
65 | for PAM, normally invoked on password changes by programs such as |
66 | passwd(1). In addition to checking regular passwords, it's capable of | |
67 | enforcing a policy, and offering ramdomly-generated passphrases, with | |
68 | all of these features being optional and easily (re)configurable. | |
69 | ||
70 | %description -n pam-pam_passwdqc -l pl.UTF-8 | |
71 | Moduł pam_passwdc to prosty moduł PAM do sprawdzania jakości haseł, | |
72 | zwykle wywoływany przy zmianie hasła przez programy takie jak | |
73 | passwd(1). Poza sprawdzaniem zwykłych haseł, potrafi wymuszać ich | |
74 | politykę i oferuje hasła losowo generowane. Wszystkie te elementy są | |
75 | opcjonalne i łatwo (re)konfigurowalne. | |
ae527f24 AM |
76 | |
77 | %prep | |
78 | %setup -q | |
79 | ||
80 | %build | |
3e4255b7 JB |
81 | %{__make} \ |
82 | CC="%{__cc}" \ | |
e4330787 | 83 | CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall -W -DLINUX_PAM %{?with_audit:-DHAVE_LIBAUDIT}" \ |
ae527f24 AM |
84 | LDFLAGS="%{rpmldflags}" |
85 | ||
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %{__make} install \ | |
90 | DESTDIR=$RPM_BUILD_ROOT \ | |
91 | MANDIR=%{_mandir} \ | |
92 | SHARED_LIBDIR=/%{_lib} \ | |
93 | DEVEL_LIBDIR=%{_libdir} \ | |
94 | SECUREDIR=/%{_lib}/security | |
95 | ||
ae527f24 AM |
96 | %clean |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
3e4255b7 JB |
99 | %post -p /sbin/ldconfig |
100 | %postun -p /sbin/ldconfig | |
101 | ||
ae527f24 AM |
102 | %files |
103 | %defattr(644,root,root,755) | |
104 | %doc LICENSE README pwqcheck.php | |
105 | %attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/passwdqc.conf | |
106 | %attr(755,root,root) /%{_lib}/libpasswdqc.so.0 | |
107 | %attr(755,root,root) %{_bindir}/pwqcheck | |
108 | %attr(755,root,root) %{_bindir}/pwqgen | |
109 | %{_mandir}/man1/pwqcheck.1* | |
110 | %{_mandir}/man1/pwqgen.1* | |
111 | %{_mandir}/man5/passwdqc.conf.5* | |
112 | ||
113 | %files devel | |
114 | %defattr(644,root,root,755) | |
ae527f24 | 115 | %attr(755,root,root) %{_libdir}/libpasswdqc.so |
3e4255b7 | 116 | %{_includedir}/passwdqc.h |
ae527f24 AM |
117 | |
118 | %files -n pam-pam_passwdqc | |
119 | %defattr(644,root,root,755) | |
120 | %attr(755,root,root) /%{_lib}/security/pam_passwdqc.so | |
121 | %{_mandir}/man8/pam_passwdqc.8* |