]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without audit # libaudit support in PAM (disable for use with PAM without audit support) | |
4 | ||
5 | Summary: A password/passphrase strength checking and policy enforcement toolset | |
6 | Summary(pl.UTF-8): Narzędzia do sprawdzania i wymuszania polityki jakości haseł | |
7 | Name: passwdqc | |
8 | Version: 1.4.0 | |
9 | Release: 2 | |
10 | License: BSD | |
11 | Group: Base | |
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} | |
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 | ||
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 | %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 | ||
44 | %package devel | |
45 | Summary: Header files for building passwdqc-aware applications | |
46 | Group: Development/Libraries | |
47 | Requires: %{name} = %{version}-%{release} | |
48 | ||
49 | %description devel | |
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. | |
56 | ||
57 | %package -n pam-pam_passwdqc | |
58 | Summary: Password quality-control PAM module | |
59 | Summary(pl.UTF-8): Moduł PAM do sprawdzania jakości haseł | |
60 | Group: Base | |
61 | Requires: %{name} = %{version}-%{release} | |
62 | ||
63 | %description -n pam-pam_passwdqc | |
64 | The pam_passwdqc module is a simple password strength checking module | |
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. | |
76 | ||
77 | %prep | |
78 | %setup -q | |
79 | ||
80 | %build | |
81 | %{__make} \ | |
82 | CC="%{__cc}" \ | |
83 | CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall -W -DLINUX_PAM %{?with_audit:-DHAVE_LIBAUDIT}" \ | |
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 | ||
96 | %clean | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %post -p /sbin/ldconfig | |
100 | %postun -p /sbin/ldconfig | |
101 | ||
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) | |
115 | %attr(755,root,root) %{_libdir}/libpasswdqc.so | |
116 | %{_includedir}/passwdqc.h | |
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* |