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
8 Source0: http://www.opensc.org/files/%{name}-%{version}.tar.gz
9 Patch0: %{name}-nolibs.patch
10 Patch1: %{name}-segv.patch
11 Patch2: %{name}-lt.patch
12 URL: http://www.opensc.org/
13 BuildRequires: autoconf >= 2.52
14 BuildRequires: automake
15 BuildRequires: libtool >= 1:1.4.2-9
16 BUildRequires: openldap-devel
17 BuildRequires: openssl-devel
18 BuildRequires: pam-devel
19 BuildRequires: pcsc-lite-devel
20 BuildRequires: readline-devel
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 libopensc is a library for accessing SmartCard devices using PC/SC
25 Lite middleware package. It is also the core library of the OpenSC
26 project. Basic functionality (e.g. SELECT FILE, READ BINARY) should
27 work on any ISO 7816-4 compatible SmartCard. Encryption and decryption
28 using private keys on the SmartCard is at the moment possible only
29 with PKCS#15 compatible cards, such as the FINEID (Finnish Electronic
30 IDentity) card manufactured by Setec.
33 libopensc to biblioteka do korzystania z kart procesorowych przy
34 u¿yciu pakietu warstwy po¶redniej PC/SC Lite. Jest to tak¿e podstawowa
35 biblioteka projektu OpenSC. Podstawowa funkcjonalno¶æ (np. SELECT
36 FILE, READ BINARY) powinna dzia³aæ tak¿e z dowoln± kart± procesorow±
37 zgodn± z ISO-7816-4. Szyfrowanie i odszyfrowywanie przy u¿yciu
38 prywatnych kluczy na karcie na razie jest mo¿liwe tylko przy u¿yciu
39 kart kompatybilnych z PKCS#16, takich jak FINEID (Finnish Electronic
40 IDentity) produkowanych przez Setec.
43 Summary: OpenSC development files
44 Summary(pl): Pliki dla programistów u¿ywaj±cych OpenSC
45 Group: Development/Tools
46 Requires: %{name}-libs = %{version}
49 OpenSC development files.
51 %description devel -l pl
52 Pliki dla programistów u¿ywaj±cych OpenSC.
55 Summary: Static OpenSC libraries
56 Summary(pl): Bibloteki statyczne OpenSC
57 Group: Development/Tools
58 Requires: %{name}-devel = %{version}
61 Static OpenSC libraries.
63 %description static -l pl
64 Statyczne biblioteki OpenSC.
66 %package -n pam_opensc
67 Summary: OpenSC module for PAM
68 Summary(pl): Modu³ PAM OpenSC
71 Requires: %{name} = %{version}
73 %description -n pam_opensc
74 OpenSC module for PAM.
76 %description -n pam_opensc -l pl
95 rm -rf $RPM_BUILD_ROOT
97 %{__make} install DESTDIR=$RPM_BUILD_ROOT
99 install -d $RPM_BUILD_ROOT/lib
100 mv -f $RPM_BUILD_ROOT%{_libdir}/security $RPM_BUILD_ROOT/lib
103 rm -rf $RPM_BUILD_ROOT
105 %post -p /sbin/ldconfig
106 %postun -p /sbin/ldconfig
109 %defattr(644,root,root,755)
110 %doc AUTHORS ChangeLog NEWS README README.signer THANKS TODO docs/pkcs-15v1_1.asn
111 %attr(755,root,root) %{_bindir}/cryptoflex-tool
112 %attr(755,root,root) %{_bindir}/opensc-explorer
113 %attr(755,root,root) %{_bindir}/opensc-tool
114 %attr(755,root,root) %{_bindir}/pkcs15-*
115 %attr(755,root,root) %{_libdir}/lib*.so.*.*
116 %attr(755,root,root) %{_libdir}/libscam.so
117 %dir %{_libdir}/pkcs11
118 %attr(755,root,root) %{_libdir}/pkcs11/opensc-pkcs11.so
119 %dir %{_datadir}/opensc
120 %{_datadir}/opensc/*.profile
121 %{_mandir}/man[157]/pkcs15*
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_bindir}/opensc-config
126 %attr(755,root,root) %{_libdir}/libopensc.so
127 %attr(755,root,root) %{_libdir}/libpkcs15init.so
128 %attr(755,root,root) %{_libdir}/libscconf.so
129 %attr(755,root,root) %{_libdir}/libscldap.so
130 %{_libdir}/libopensc.la
131 %{_libdir}/libpkcs15init.la
132 %{_libdir}/libscconf.la
133 %{_libdir}/libscldap.la
134 %{_libdir}/libscrandom.a
135 %{_includedir}/opensc
138 %defattr(644,root,root,755)
139 %{_libdir}/libopensc.a
140 %{_libdir}/libpkcs15init.a
141 %{_libdir}/libscconf.a
142 %{_libdir}/libscldap.a
145 %defattr(644,root,root,755)
146 %attr(755,root,root) /lib/security/pam_opensc.so