]>
Commit | Line | Data |
---|---|---|
ff27d486 ŁK |
1 | # |
2 | # Conditional build | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
5 | Summary: Library for password quality checking and generating random passwords | |
36fca662 | 6 | Summary(pl.UTF-8): Biblioteka do sprawdzania jakości oraz generowania losowych haseł |
ff27d486 | 7 | Name: libpwquality |
3d4cdfcb | 8 | Version: 1.2.2 |
77c45925 | 9 | Release: 1 |
36fca662 | 10 | License: BSD or GPL v2+ |
ff27d486 ŁK |
11 | Group: Libraries |
12 | Source0: https://fedorahosted.org/releases/l/i/libpwquality/%{name}-%{version}.tar.bz2 | |
3d4cdfcb | 13 | # Source0-md5: 2105bb893791fe27efc20441e617f385 |
ff27d486 ŁK |
14 | URL: https://fedorahosted.org/libpwquality/ |
15 | BuildRequires: cracklib-devel >= 2.8 | |
36fca662 | 16 | BuildRequires: gettext-devel >= 0.15 |
ff27d486 ŁK |
17 | BuildRequires: pam-devel |
18 | BuildRequires: pkgconfig | |
19 | BuildRequires: python-devel | |
20 | Requires: cracklib-dicts >= 2.8 | |
21 | Requires: pam | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | libpwquality is a library for password quality checks and generation | |
26 | of random passwords that pass the checks. This library uses the | |
27 | cracklib and cracklib dictionaries to perform some of the checks. | |
28 | ||
36fca662 JB |
29 | %description -l pl.UTF-8 |
30 | libpwquality to biblioteka do sprawdzania jakości haseł oraz | |
31 | generowania haseł losowych przechodzących te testy. Biblioteka | |
32 | wykorzystuje bibliotekę cracklib oraz słowniki crackliba do | |
33 | wykonywania testów. | |
34 | ||
ff27d486 ŁK |
35 | %package devel |
36 | Summary: Header files for libpwquality library | |
37 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libpwquality | |
38 | Group: Development/Libraries | |
36fca662 | 39 | Requires: %{name} = %{version}-%{release} |
ff27d486 ŁK |
40 | |
41 | %description devel | |
42 | Header files for libpwquality library. | |
43 | ||
44 | %description devel -l pl.UTF-8 | |
45 | Pliki nagłówkowe biblioteki libpwquality. | |
46 | ||
47 | %package static | |
48 | Summary: Static libpwquality library | |
49 | Summary(pl.UTF-8): Statyczna biblioteka libpwquality | |
50 | Group: Development/Libraries | |
36fca662 | 51 | Requires: %{name}-devel = %{version}-%{release} |
ff27d486 ŁK |
52 | |
53 | %description static | |
54 | Static libpwquality library. | |
55 | ||
56 | %description static -l pl.UTF-8 | |
57 | Statyczna biblioteka libpwquality. | |
58 | ||
59 | %package -n python-pwquality | |
60 | Summary: Python bindings for the libpwquality library | |
36fca662 JB |
61 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki libpwquality |
62 | Group: Libraries/Python | |
63 | Requires: %{name}-devel = %{version}-%{release} | |
ff27d486 ŁK |
64 | |
65 | %description -n python-pwquality | |
66 | Python bindings for the libpwquality library. | |
67 | ||
36fca662 JB |
68 | %description -n python-pwquality -l pl.UTF-8 |
69 | Wiązania Pythona do biblioteki libpwquality. | |
70 | ||
ff27d486 ŁK |
71 | %prep |
72 | %setup -q | |
73 | ||
74 | %build | |
75 | %configure \ | |
76 | --with-securedir=/%{_lib}/security \ | |
77 | %{__enable_disable static_libs static} | |
78 | ||
79 | %{__make} | |
80 | ||
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %{__make} install \ | |
85 | DESTDIR=$RPM_BUILD_ROOT | |
86 | ||
87 | %{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_pwquality.{a,la} | |
88 | ||
89 | %find_lang %{name} | |
90 | ||
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
36fca662 JB |
94 | %post -p /sbin/ldconfig |
95 | %postun -p /sbin/ldconfig | |
ff27d486 ŁK |
96 | |
97 | %files -f %{name}.lang | |
98 | %defattr(644,root,root,755) | |
36fca662 | 99 | %doc AUTHORS COPYING NEWS README |
ff27d486 ŁK |
100 | %attr(755,root,root) %{_bindir}/pwmake |
101 | %attr(755,root,root) %{_bindir}/pwscore | |
102 | %attr(755,root,root) %{_libdir}/libpwquality.so.*.*.* | |
103 | %attr(755,root,root) %ghost %{_libdir}/libpwquality.so.1 | |
104 | %attr(755,root,root) /%{_lib}/security/pam_pwquality.so | |
105 | %config(noreplace) %verify(not md5 mtime size) /etc/security/pwquality.conf | |
106 | %{_mandir}/man1/pwmake.1* | |
107 | %{_mandir}/man1/pwscore.1* | |
108 | %{_mandir}/man5/pwquality.conf.5* | |
109 | %{_mandir}/man8/pam_pwquality.8* | |
110 | ||
111 | %files devel | |
112 | %defattr(644,root,root,755) | |
36fca662 | 113 | %attr(755,root,root) %{_libdir}/libpwquality.so |
ff27d486 | 114 | %{_libdir}/libpwquality.la |
36fca662 | 115 | %{_includedir}/pwquality.h |
ff27d486 ŁK |
116 | %{_pkgconfigdir}/pwquality.pc |
117 | ||
118 | %if %{with static_libs} | |
119 | %files static | |
120 | %defattr(644,root,root,755) | |
121 | %{_libdir}/libpwquality.a | |
122 | %endif | |
123 | ||
124 | %files -n python-pwquality | |
125 | %defattr(644,root,root,755) | |
36fca662 | 126 | %attr(755,root,root) %{py_sitedir}/pwquality.so |