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