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 # Source0-md5: 46bb22935040816a0d741b5f76ed4b81
10 Patch0: %{name}-nolibs.patch
11 Patch1: %{name}-libdir.patch
12 URL: http://www.opensc.org/
13 BuildRequires: autoconf >= 2.52
14 BuildRequires: automake
15 BuildRequires: libassuan-devel
16 BuildRequires: libtool >= 1:1.4.2-9
17 BuildRequires: openldap-devel
18 BuildRequires: openssl-devel
19 BuildRequires: pam-devel
20 BuildRequires: pcsc-lite-devel
21 BuildRequires: readline-devel
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 # datadir is used for config files and (editable) profiles
25 %define _datadir %{_sysconfdir}
26 %define mozplugindir /usr/lib/mozilla/plugins
29 libopensc is a library for accessing SmartCard devices using PC/SC
30 Lite middleware package. It is also the core library of the OpenSC
31 project. Basic functionality (e.g. SELECT FILE, READ BINARY) should
32 work on any ISO 7816-4 compatible SmartCard. Encryption and decryption
33 using private keys on the SmartCard is at the moment possible only
34 with PKCS#15 compatible cards, such as the FINEID (Finnish Electronic
35 IDentity) card manufactured by Setec.
38 libopensc to biblioteka do korzystania z kart procesorowych przy
39 u¿yciu pakietu warstwy po¶redniej PC/SC Lite. Jest to tak¿e podstawowa
40 biblioteka projektu OpenSC. Podstawowa funkcjonalno¶æ (np. SELECT
41 FILE, READ BINARY) powinna dzia³aæ tak¿e z dowoln± kart± procesorow±
42 zgodn± z ISO-7816-4. Szyfrowanie i odszyfrowywanie przy u¿yciu
43 prywatnych kluczy na karcie na razie jest mo¿liwe tylko przy u¿yciu
44 kart kompatybilnych z PKCS#16, takich jak FINEID (Finnish Electronic
45 IDentity) produkowanych przez Setec.
48 Summary: OpenSC development files
49 Summary(pl): Pliki dla programistów u¿ywaj±cych OpenSC
50 Group: Development/Tools
51 Requires: %{name} = %{version}
54 OpenSC development files.
56 %description devel -l pl
57 Pliki dla programistów u¿ywaj±cych OpenSC.
60 Summary: Static OpenSC libraries
61 Summary(pl): Bibloteki statyczne OpenSC
62 Group: Development/Tools
63 Requires: %{name}-devel = %{version}
66 Static OpenSC libraries.
68 %description static -l pl
69 Statyczne biblioteki OpenSC.
71 %package -n pam_opensc
72 Summary: OpenSC module for PAM
73 Summary(pl): Modu³ PAM OpenSC
76 Requires: %{name} = %{version}
78 %description -n pam_opensc
79 OpenSC module for PAM.
81 %description -n pam_opensc -l pl
84 %package -n mozilla-plugin-opensc
85 Summary: OpenSC Signer plugin for Mozilla
86 Summary(pl): Wtyczka OpenSC Signer dla Mozilli
89 Group: X11/Applications
90 Requires: %{name} = %{version}
91 Requires: pinentry-gtk
93 %description -n mozilla-plugin-opensc
94 OpenSC Signer plugin for Mozilla.
96 %description -n mozilla-plugin-opensc -l pl
97 Wtyczka OpenSC Signer dla Mozilli.
110 --with-pin-entry=/usr/bin/pinentry-gtk \
111 --with-plugin-dir="%{mozplugindir}"
116 rm -rf $RPM_BUILD_ROOT
117 install -d $RPM_BUILD_ROOT%{mozplugindir}
120 DESTDIR=$RPM_BUILD_ROOT
122 install -d $RPM_BUILD_ROOT/lib
123 mv -f $RPM_BUILD_ROOT%{_libdir}/security $RPM_BUILD_ROOT/lib
125 # just install instead of symlinking
126 rm -f $RPM_BUILD_ROOT%{mozplugindir}/opensc-signer.so
127 mv -f $RPM_BUILD_ROOT%{_libdir}/opensc/opensc-signer.so $RPM_BUILD_ROOT%{mozplugindir}/plugins
130 mv -f $RPM_BUILD_ROOT%{_datadir}/opensc/opensc.conf{.example,}
131 mv -f $RPM_BUILD_ROOT%{_datadir}/opensc/scldap.conf{.example,}
133 # useless (dlopened by *.so)
134 rm -f $RPM_BUILD_ROOT%{_libdir}/libscam.{a,la} \
135 $RPM_BUILD_ROOT%{_libdir}/opensc/opensc-signer.{a,la} \
136 $RPM_BUILD_ROOT%{_libdir}/pkcs11/opensc-pkcs11.{a,la} \
137 $RPM_BUILD_ROOT/lib/security/pam_opensc.{a,la}
140 rm -rf $RPM_BUILD_ROOT
142 %post -p /sbin/ldconfig
143 %postun -p /sbin/ldconfig
146 %defattr(644,root,root,755)
147 %doc ANNOUNCE ChangeLog NEWS docs/{pkcs-15v1_1.asn,opensc.{html,css}}
148 %attr(755,root,root) %{_bindir}/cardos-info
149 %attr(755,root,root) %{_bindir}/cryptoflex-tool
150 %attr(755,root,root) %{_bindir}/opensc-explorer
151 %attr(755,root,root) %{_bindir}/opensc-tool
152 %attr(755,root,root) %{_bindir}/pkcs11-tool
153 %attr(755,root,root) %{_bindir}/pkcs15-*
154 %attr(755,root,root) %{_libdir}/lib*.so.*.*
155 %attr(755,root,root) %{_libdir}/libscam.so
156 %dir %{_libdir}/pkcs11
157 %attr(755,root,root) %{_libdir}/pkcs11/opensc-pkcs11.so
158 %dir %{_datadir}/opensc
159 %config(noreplace) %verify(not size mtime md5) %{_datadir}/opensc/*.conf
160 %config(noreplace) %verify(not size mtime md5) %{_datadir}/opensc/*.profile
161 %{_mandir}/man1/cryptoflex-tool.1*
162 %{_mandir}/man1/opensc-explorer.1*
163 %{_mandir}/man1/opensc-tool.1*
164 %{_mandir}/man1/pkcs15*
168 %defattr(644,root,root,755)
169 %attr(755,root,root) %{_bindir}/opensc-config
170 %attr(755,root,root) %{_libdir}/libopensc.so
171 %attr(755,root,root) %{_libdir}/libpkcs15init.so
172 %attr(755,root,root) %{_libdir}/libscconf.so
173 %attr(755,root,root) %{_libdir}/libscldap.so
175 %{_includedir}/opensc
176 %{_pkgconfigdir}/*.pc
177 %{_mandir}/man1/opensc-config.1*
181 %defattr(644,root,root,755)
185 %defattr(644,root,root,755)
186 %attr(755,root,root) /lib/security/pam_opensc.so
188 %files -n mozilla-plugin-opensc
189 %defattr(644,root,root,755)
190 %attr(755,root,root) %{mozplugindir}/opensc-signer.so