]> git.pld-linux.org Git - packages/pam-pam_pkcs11.git/blob - pam-pam_pkcs11.spec
- updated to 0.6.4
[packages/pam-pam_pkcs11.git] / pam-pam_pkcs11.spec
1 Summary:        PAM login module that allows a X.509 certificate based user login
2 Summary(pl.UTF-8):      Moduł PAM umożliwiający logowanie się w oparciu o certyfikat X.509
3 Name:           pam-pam_pkcs11
4 Version:        0.6.4
5 Release:        1
6 License:        LGPL v2.1+
7 Group:          Libraries
8 Source0:        http://www.opensc-project.org/files/pam_pkcs11/pam_pkcs11-%{version}.tar.gz
9 # Source0-md5:  680be5349314d39f34cab1e04682e915
10 #Source1:       pam_pkcs11.pl.po
11 Patch0:         %{name}-pcsc-update.patch
12 Patch1:         %{name}-pl.po-update.patch
13 URL:            http://www.opensc-project.org/pam_pkcs11/
14 BuildRequires:  autoconf >= 2.52
15 BuildRequires:  automake
16 BuildRequires:  curl-devel
17 BuildRequires:  gettext-devel >= 0.17
18 BuildRequires:  libxslt-progs
19 BuildRequires:  libtool
20 BuildRequires:  openldap-devel >= 2.4.6
21 BuildRequires:  openssl-devel
22 BuildRequires:  pam-devel
23 BuildRequires:  pcsc-lite-devel >= 1.6.0
24 BuildRequires:  pkgconfig
25 BuildRequires:  sed >= 4.0
26 Requires:       pcsc-lite-libs >= 1.6.0
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
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
43 zdalnie CRL.
44
45 %prep
46 %setup -q -n pam_pkcs11-%{version}
47 %patch0 -p1
48 %patch1 -p1
49
50 rm -f po/stamp-po
51
52 %build
53 %{__gettextize}
54 %{__libtoolize}
55 %{__aclocal} -I aclocal
56 %{__autoconf}
57 %{__autoheader}
58 %{__automake}
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
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}
73
74 %find_lang pam_pkcs11
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %files -f pam_pkcs11.lang
80 %defattr(644,root,root,755)
81 %doc AUTHORS ChangeLog NEWS README TODO doc/{README.*,*.html,*.css} etc/*.example
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
86 %attr(755,root,root) /%{_lib}/security/pam_pkcs11.so
87 %dir %{_libdir}/pam_pkcs11
88 %attr(755,root,root) %{_libdir}/pam_pkcs11/*.so
89 %{_mandir}/man1/card_eventmgr.1*
90 %{_mandir}/man1/pkcs11_*.1*
91 %{_mandir}/man1/pklogin_finder.1*
92 %{_mandir}/man8/pam_pkcs11.8*
This page took 0.064419 seconds and 3 git commands to generate.