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