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