]> git.pld-linux.org Git - packages/opensc.git/blob - opensc.spec
- ac >= 2.52
[packages/opensc.git] / opensc.spec
1 Summary:        OpenSC library - for accessing SmartCard devices using PC/SC Lite
2 Summary(pl):    Biblioteka OpenSC - do korzystania z kart procesorowych przy u¿yciu PC/SC Lite
3 Name:           opensc
4 Version:        0.7.0
5 Release:        1
6 License:        LGPL
7 Group:          Applications
8 Source0:        http://www.opensc.org/files/%{name}-%{version}.tar.gz
9 URL:            http://www.opensc.org/
10 BuildRequires:  autoconf >= 2.52
11 BuildRequires:  automake
12 BuildRequires:  libtool >= 1:1.4.2-9
13 BUildRequires:  openldap-devel
14 BuildRequires:  openssl-devel
15 BuildRequires:  pam-devel
16 BuildRequires:  pcsc-lite-devel
17 BuildRequires:  readline-devel
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 libopensc is a library for accessing SmartCard devices using PC/SC
22 Lite middleware package. It is also the core library of the OpenSC
23 project. Basic functionality (e.g. SELECT FILE, READ BINARY) should
24 work on any ISO 7816-4 compatible SmartCard. Encryption and decryption
25 using private keys on the SmartCard is at the moment possible only
26 with PKCS#15 compatible cards, such as the FINEID (Finnish Electronic
27 IDentity) card manufactured by Setec.
28
29 %description -l pl
30 libopensc to biblioteka do korzystania z kart procesorowych przy
31 u¿yciu pakietu warstwy po¶redniej PC/SC Lite. Jest to tak¿e podstawowa
32 biblioteka projektu OpenSC. Podstawowa funkcjonalno¶æ (np. SELECT
33 FILE, READ BINARY) powinna dzia³aæ tak¿e z dowoln± kart± procesorow±
34 zgodn± z ISO-7816-4. Szyfrowanie i odszyfrowywanie przy u¿yciu
35 prywatnych kluczy na karcie na razie jest mo¿liwe tylko przy u¿yciu
36 kart kompatybilnych z PKCS#16, takich jak FINEID (Finnish Electronic
37 IDentity) produkowanych przez Setec.
38
39 %package devel
40 Summary:        OpenSC development files
41 Summary(pl):    Pliki dla programistów u¿ywaj±cych OpenSC
42 Group:          Development/Tools
43 Requires:       %{name}-libs = %{version}
44
45 %description devel
46 OpenSC development files.
47
48 %description devel -l pl
49 Pliki dla programistów u¿ywaj±cych OpenSC.
50
51 %package static
52 Summary:        Static OpenSC libraries
53 Summary(pl):    Bibloteki statyczne OpenSC
54 Group:          Development/Tools
55 Requires:       %{name}-devel = %{version}
56
57 %description static
58 Static OpenSC libraries.
59
60 %description static -l pl
61 Statyczne biblioteki OpenSC.
62
63 %package -n pam_opensc
64 Summary:        OpenSC module for PAM
65 Summary(pl):    Modu³ PAM OpenSC
66 License:        GPL
67 Group:          Base
68 Requires:       %{name} = %{version}
69
70 %description -n pam_opensc
71 OpenSC module for PAM.
72
73 %description -n pam_opensc -l pl
74 Modu³ PAM OpenSC.
75
76 %prep
77 %setup -q
78
79 %build
80 %{__libtoolize}
81 %{__aclocal}
82 %{__autoconf}
83 %{__automake}
84 %configure
85
86 %{__make}
87
88 %install
89 rm -rf $RPM_BUILD_ROOT
90
91 %{__make} install DESTDIR=$RPM_BUILD_ROOT
92
93 install -d $RPM_BUILD_ROOT/lib
94 mv -f $RPM_BUILD_ROOT%{_libdir}/security $RPM_BUILD_ROOT/lib
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 AUTHORS ChangeLog NEWS README README.signer THANKS TODO docs/pkcs-15v1_1.asn
105 %attr(755,root,root) %{_bindir}/cryptoflex-tool
106 %attr(755,root,root) %{_bindir}/opensc-explorer
107 %attr(755,root,root) %{_bindir}/opensc-tool
108 %attr(755,root,root) %{_bindir}/pkcs15-*
109 %attr(755,root,root) %{_libdir}/lib*.so.*.*
110 %attr(755,root,root) %{_libdir}/libscam.so
111 %dir %{_libdir}/pkcs11
112 %attr(755,root,root) %{_libdir}/pkcs11/opensc-pkcs11.so
113 %dir %{_datadir}/opensc
114 %{_datadir}/opensc/*.profile
115 %{_mandir}/man[157]/pkcs15*
116
117 %files devel
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_bindir}/opensc-config
120 %attr(755,root,root) %{_libdir}/libopensc.so
121 %attr(755,root,root) %{_libdir}/libpkcs15init.so
122 %attr(755,root,root) %{_libdir}/libscconf.so
123 %attr(755,root,root) %{_libdir}/libscldap.so
124 %{_libdir}/libopensc.la
125 %{_libdir}/libpkcs15init.la
126 %{_libdir}/libscconf.la
127 %{_libdir}/libscldap.la
128 %{_libdir}/libscrandom.a
129 %{_includedir}/opensc
130
131 %files static
132 %defattr(644,root,root,755)
133 %{_libdir}/libopensc.a
134 %{_libdir}/libpkcs15init.a
135 %{_libdir}/libscconf.a
136 %{_libdir}/libscldap.a
137
138 %files -n pam_opensc
139 %defattr(644,root,root,755)
140 %attr(755,root,root) /lib/security/pam_opensc.so
This page took 0.062469 seconds and 4 git commands to generate.