]>
Commit | Line | Data |
---|---|---|
1 | Summary: OpenSC library - for accessing SmartCard devices using PC/SC Lite | |
2 | Summary(pl.UTF-8): Biblioteka OpenSC - do korzystania z kart procesorowych przy użyciu PC/SC Lite | |
3 | Name: opensc | |
4 | Version: 0.11.5 | |
5 | Release: 1 | |
6 | Epoch: 0 | |
7 | License: LGPL v2.1+ | |
8 | Group: Applications | |
9 | Source0: http://www.opensc-project.org/files/opensc/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: bcb65ead86dc477866e59f9a45bc69a4 | |
11 | URL: http://www.opensc-project.org/ | |
12 | BuildRequires: autoconf >= 2.60 | |
13 | BuildRequires: automake >= 1:1.10 | |
14 | BuildRequires: libassuan-devel >= 1:0.6.0 | |
15 | BuildRequires: libltdl-devel | |
16 | BuildRequires: libtool >= 1:1.4.2-9 | |
17 | BuildRequires: openct-devel | |
18 | BuildRequires: openldap-devel >= 2.4.6 | |
19 | BuildRequires: openssl-devel >= 0.9.7d | |
20 | BuildRequires: pkgconfig >= 1:0.9.0 | |
21 | BuildRequires: readline-devel | |
22 | BuildRequires: rpmbuild(macros) >= 1.364 | |
23 | BuildRequires: zlib-devel | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | # datadir is used for config files and (editable) profiles | |
27 | %define _datadir /etc | |
28 | %define _sysconfdir /etc/opensc | |
29 | ||
30 | %description | |
31 | libopensc is a library for accessing SmartCard devices using PC/SC | |
32 | Lite middleware package. It is also the core library of the OpenSC | |
33 | project. Basic functionality (e.g. SELECT FILE, READ BINARY) should | |
34 | work on any ISO 7816-4 compatible SmartCard. Encryption and decryption | |
35 | using private keys on the SmartCard is at the moment possible only | |
36 | with PKCS#15 compatible cards, such as the FINEID (Finnish Electronic | |
37 | IDentity) card manufactured by Setec. | |
38 | ||
39 | %description -l pl.UTF-8 | |
40 | libopensc to biblioteka do korzystania z kart procesorowych przy | |
41 | użyciu pakietu warstwy pośredniej PC/SC Lite. Jest to także podstawowa | |
42 | biblioteka projektu OpenSC. Podstawowa funkcjonalność (np. SELECT | |
43 | FILE, READ BINARY) powinna działać także z dowolną kartą procesorową | |
44 | zgodną z ISO-7816-4. Szyfrowanie i odszyfrowywanie przy użyciu | |
45 | prywatnych kluczy na karcie na razie jest możliwe tylko przy użyciu | |
46 | kart kompatybilnych z PKCS#16, takich jak FINEID (Finnish Electronic | |
47 | IDentity) produkowanych przez Setec. | |
48 | ||
49 | %package devel | |
50 | Summary: OpenSC development files | |
51 | Summary(pl.UTF-8): Pliki dla programistów używających OpenSC | |
52 | Group: Development/Tools | |
53 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
54 | Requires: libltdl-devel | |
55 | Requires: openct-devel | |
56 | Requires: openssl-devel | |
57 | Requires: pcsc-lite-devel | |
58 | ||
59 | %description devel | |
60 | OpenSC development files. | |
61 | ||
62 | %description devel -l pl.UTF-8 | |
63 | Pliki dla programistów używających OpenSC. | |
64 | ||
65 | %package static | |
66 | Summary: Static OpenSC libraries | |
67 | Summary(pl.UTF-8): Bibloteki statyczne OpenSC | |
68 | Group: Development/Tools | |
69 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
70 | ||
71 | %description static | |
72 | Static OpenSC libraries. | |
73 | ||
74 | %description static -l pl.UTF-8 | |
75 | Statyczne biblioteki OpenSC. | |
76 | ||
77 | %package -n browser-plugin-opensc | |
78 | Summary: OpenSC Signer plugin for Mozilla | |
79 | Summary(pl.UTF-8): Wtyczka OpenSC Signer dla Mozilli | |
80 | Group: X11/Applications | |
81 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
82 | Requires: browser-plugins >= 2.0 | |
83 | Requires: browser-plugins(%{_target_base_arch}) | |
84 | Requires: pinentry >= 0.7.5-2 | |
85 | Provides: mozilla-plugin-opensc | |
86 | Obsoletes: mozilla-plugin-opensc | |
87 | ||
88 | %description -n browser-plugin-opensc | |
89 | OpenSC Signer browser plugin. | |
90 | ||
91 | Supported browsers: %{browsers}. | |
92 | ||
93 | %description -n browser-plugin-opensc -l pl.UTF-8 | |
94 | Wtyczka OpenSC Signer dla przeglądarek. | |
95 | ||
96 | Obsługiwane przeglądarki: %{browsers}. | |
97 | ||
98 | %prep | |
99 | %setup -q | |
100 | ||
101 | %build | |
102 | %{__libtoolize} | |
103 | %{__aclocal} -I m4 | |
104 | %{__autoconf} | |
105 | %{__autoheader} | |
106 | %{__automake} | |
107 | %configure \ | |
108 | --enable-openct \ | |
109 | --enable-nsplugin \ | |
110 | --enable-pcsc \ | |
111 | --with-pcsc-provider=%{_libdir}/libpcsclite.so.1 \ | |
112 | --with-pin-entry=/usr/bin/pinentry \ | |
113 | --with-plugindir=%{_browserpluginsdir} | |
114 | ||
115 | %{__make} | |
116 | ||
117 | %install | |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | install -d $RPM_BUILD_ROOT%{_browserpluginsdir} | |
120 | ||
121 | %{__make} install \ | |
122 | DESTDIR=$RPM_BUILD_ROOT | |
123 | ||
124 | # just install instead of symlinking | |
125 | %{__rm} $RPM_BUILD_ROOT%{_browserpluginsdir}/opensc-signer.so | |
126 | mv -f $RPM_BUILD_ROOT%{_libdir}/opensc-signer.so $RPM_BUILD_ROOT%{_browserpluginsdir} | |
127 | ||
128 | # default config | |
129 | install etc/opensc.conf $RPM_BUILD_ROOT%{_sysconfdir} | |
130 | ||
131 | # useless (dlopened by *.so) | |
132 | rm -f $RPM_BUILD_ROOT%{_libdir}/{onepin-opensc,opensc,pkcs11}-*.{a,la} \ | |
133 | $RPM_BUILD_ROOT%{_libdir}/opensc/*.{a,la} | |
134 | ||
135 | %clean | |
136 | rm -rf $RPM_BUILD_ROOT | |
137 | ||
138 | %post -p /sbin/ldconfig | |
139 | %postun -p /sbin/ldconfig | |
140 | ||
141 | %post -n browser-plugin-opensc | |
142 | %update_browser_plugins | |
143 | ||
144 | %postun -n browser-plugin-opensc | |
145 | if [ "$1" = "0" ]; then | |
146 | %update_browser_plugins | |
147 | fi | |
148 | ||
149 | %files | |
150 | %defattr(644,root,root,755) | |
151 | %doc NEWS README doc/nonpersistent/{ChangeLog,wiki.out} doc/html.out/tools.html | |
152 | %attr(755,root,root) %{_bindir}/cardos-info | |
153 | %attr(755,root,root) %{_bindir}/cryptoflex-tool | |
154 | %attr(755,root,root) %{_bindir}/eidenv | |
155 | %attr(755,root,root) %{_bindir}/netkey-tool | |
156 | %attr(755,root,root) %{_bindir}/opensc-explorer | |
157 | %attr(755,root,root) %{_bindir}/opensc-tool | |
158 | %attr(755,root,root) %{_bindir}/piv-tool | |
159 | %attr(755,root,root) %{_bindir}/pkcs11-tool | |
160 | %attr(755,root,root) %{_bindir}/pkcs15-* | |
161 | %attr(755,root,root) %{_bindir}/rutoken-tool | |
162 | %attr(755,root,root) %{_libdir}/libopensc.so.*.*.* | |
163 | %attr(755,root,root) %ghost %{_libdir}/libopensc.so.2 | |
164 | %attr(755,root,root) %{_libdir}/libpkcs15init.so.*.*.* | |
165 | %attr(755,root,root) %ghost %{_libdir}/libpkcs15init.so.2 | |
166 | %attr(755,root,root) %{_libdir}/libscconf.so.*.*.* | |
167 | %attr(755,root,root) %ghost %{_libdir}/libscconf.so.2 | |
168 | # PKCS11 modules | |
169 | %attr(755,root,root) %{_libdir}/onepin-opensc-pkcs11.so | |
170 | %attr(755,root,root) %{_libdir}/opensc-pkcs11.so | |
171 | %attr(755,root,root) %{_libdir}/pkcs11-spy.so | |
172 | %dir %{_libdir}/pkcs11 | |
173 | %attr(755,root,root) %{_libdir}/pkcs11/onepin-opensc-pkcs11.so | |
174 | %attr(755,root,root) %{_libdir}/pkcs11/opensc-pkcs11.so | |
175 | %attr(755,root,root) %{_libdir}/pkcs11/pkcs11-spy.so | |
176 | %dir %{_datadir}/opensc | |
177 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf | |
178 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/opensc/*.profile | |
179 | %{_mandir}/man1/cardos-info.1* | |
180 | %{_mandir}/man1/cryptoflex-tool.1* | |
181 | %{_mandir}/man1/netkey-tool.1* | |
182 | %{_mandir}/man1/opensc-explorer.1* | |
183 | %{_mandir}/man1/opensc-tool.1* | |
184 | %{_mandir}/man1/pkcs11-tool.1* | |
185 | %{_mandir}/man1/pkcs15-*.1* | |
186 | %{_mandir}/man5/pkcs15-profile.5* | |
187 | ||
188 | %files devel | |
189 | %defattr(644,root,root,755) | |
190 | %doc doc/html.out/api.html | |
191 | %attr(755,root,root) %{_bindir}/opensc-config | |
192 | %attr(755,root,root) %{_libdir}/libopensc.so | |
193 | %attr(755,root,root) %{_libdir}/libpkcs15init.so | |
194 | %attr(755,root,root) %{_libdir}/libscconf.so | |
195 | %{_libdir}/libopensc.la | |
196 | %{_libdir}/libpkcs15init.la | |
197 | %{_libdir}/libscconf.la | |
198 | %{_includedir}/opensc | |
199 | %{_pkgconfigdir}/libopensc.pc | |
200 | %{_pkgconfigdir}/libpkcs15init.pc | |
201 | %{_pkgconfigdir}/libscconf.pc | |
202 | %{_mandir}/man1/opensc-config.1* | |
203 | %{_mandir}/man3/sc_*.3* | |
204 | ||
205 | %files static | |
206 | %defattr(644,root,root,755) | |
207 | %{_libdir}/libopensc.a | |
208 | %{_libdir}/libpkcs15init.a | |
209 | %{_libdir}/libscconf.a | |
210 | ||
211 | %files -n browser-plugin-opensc | |
212 | %defattr(644,root,root,755) | |
213 | %attr(755,root,root) %{_browserpluginsdir}/opensc-signer.so |