]>
Commit | Line | Data |
---|---|---|
069b30c5 | 1 | Summary: PAM login module that allows a X.509 certificate based user login |
0e8e401c | 2 | Summary(pl.UTF-8): Moduł PAM umożliwiający logowanie się w oparciu o certyfikat X.509 |
069b30c5 | 3 | Name: pam-pam_pkcs11 |
2fe43c47 | 4 | Version: 0.6.5 |
069b30c5 JB |
5 | Release: 1 |
6 | License: LGPL v2.1+ | |
7 | Group: Libraries | |
91663e54 | 8 | Source0: http://www.opensc-project.org/files/pam_pkcs11/pam_pkcs11-%{version}.tar.gz |
2fe43c47 JB |
9 | # Source0-md5: 10fc830e8154ee5401cc1f11be222da4 |
10 | Patch0: %{name}-pl.po-update.patch | |
91663e54 | 11 | URL: http://www.opensc-project.org/pam_pkcs11/ |
161e1d39 JB |
12 | BuildRequires: autoconf >= 2.52 |
13 | BuildRequires: automake | |
069b30c5 | 14 | BuildRequires: curl-devel |
39a287df | 15 | BuildRequires: gettext-devel >= 0.17 |
069b30c5 | 16 | BuildRequires: libxslt-progs |
161e1d39 | 17 | BuildRequires: libtool |
38c58e04 | 18 | BuildRequires: openldap-devel >= 2.4.6 |
069b30c5 JB |
19 | BuildRequires: openssl-devel |
20 | BuildRequires: pam-devel | |
39a287df | 21 | BuildRequires: pcsc-lite-devel >= 1.6.0 |
069b30c5 | 22 | BuildRequires: pkgconfig |
39a287df | 23 | Requires: pcsc-lite-libs >= 1.6.0 |
069b30c5 JB |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %define _libdir /%{_lib} | |
27 | ||
28 | %description | |
29 | This PAM login module allows a X.509 certificate based user login. The | |
30 | certificate and its dedicated private key are thereby accessed by | |
31 | means of an appropriate PKCS#11 module. For the verification of the | |
32 | users' certificates, locally stored CA certificates as well as either | |
33 | online or locally accessible CRLs are used. | |
34 | ||
5642c86a JR |
35 | %description -l pl.UTF-8 |
36 | Ten moduł PAM umożliwia logowanie się w oparciu o certyfikaty X.509. | |
37 | Certyfikat i jego klucz prywatny są odczytywane poprzez odpowiedni | |
38 | moduł PKCS#11. Do weryfikacji certyfikatów użytkowników używane są | |
39 | lokalnie przechowywane certyfikaty CA albo dostępne lokalnie lub | |
069b30c5 JB |
40 | zdalnie CRL. |
41 | ||
42 | %prep | |
43 | %setup -q -n pam_pkcs11-%{version} | |
39a287df | 44 | %patch0 -p1 |
069b30c5 | 45 | |
161e1d39 JB |
46 | rm -f po/stamp-po |
47 | ||
069b30c5 | 48 | %build |
161e1d39 JB |
49 | %{__gettextize} |
50 | %{__libtoolize} | |
51 | %{__aclocal} -I aclocal | |
52 | %{__autoconf} | |
53 | %{__autoheader} | |
54 | %{__automake} | |
069b30c5 JB |
55 | %configure \ |
56 | --with-curl | |
57 | %{__make} | |
58 | ||
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %{__make} install \ | |
63 | DESTDIR=$RPM_BUILD_ROOT | |
64 | ||
39a287df JB |
65 | %{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_pkcs11.la |
66 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/pam_pkcs11/*.la | |
67 | ||
68 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{pt_br,pt_BR} | |
069b30c5 | 69 | |
161e1d39 JB |
70 | %find_lang pam_pkcs11 |
71 | ||
069b30c5 JB |
72 | %clean |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
161e1d39 | 75 | %files -f pam_pkcs11.lang |
069b30c5 JB |
76 | %defattr(644,root,root,755) |
77 | %doc AUTHORS ChangeLog NEWS README TODO doc/{README.*,*.html,*.css} etc/*.example | |
39a287df JB |
78 | %attr(755,root,root) %{_bindir}/card_eventmgr |
79 | %attr(755,root,root) %{_bindir}/make_hash_link.sh | |
80 | %attr(755,root,root) %{_bindir}/pkcs11_* | |
81 | %attr(755,root,root) %{_bindir}/pklogin_finder | |
069b30c5 JB |
82 | %attr(755,root,root) /%{_lib}/security/pam_pkcs11.so |
83 | %dir %{_libdir}/pam_pkcs11 | |
84 | %attr(755,root,root) %{_libdir}/pam_pkcs11/*.so | |
39a287df JB |
85 | %{_mandir}/man1/card_eventmgr.1* |
86 | %{_mandir}/man1/pkcs11_*.1* | |
87 | %{_mandir}/man1/pklogin_finder.1* | |
88 | %{_mandir}/man8/pam_pkcs11.8* |