]> git.pld-linux.org Git - packages/opensc.git/blame - opensc.spec
- obsolete
[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
0a2e1afa 4Version: 0.11.1
9acf3333 5Release: 2
e0fb86be 6Epoch: 0
1cefa9cb
JB
7License: LGPL
8Group: Applications
9c0288b5 9Source0: http://www.opensc-project.org/files/opensc/%{name}-%{version}.tar.gz
0a2e1afa 10# Source0-md5: 94ce00a6bda38fac10ab06f5d5d1a8c3
8d087e90
JB
11Patch0: %{name}-explorer-debug.patch
12Patch1: %{name}-libassuan.patch
9c0288b5 13URL: http://www.opensc-project.org/
74b89671 14BuildRequires: autoconf >= 2.52
1cefa9cb 15BuildRequires: automake
6200ae89 16BuildRequires: libassuan-devel >= 1:0.6.0
8d087e90 17BuildRequires: libltdl-devel
1cefa9cb 18BuildRequires: libtool >= 1:1.4.2-9
543fbe6c 19BuildRequires: openct-devel
d2ed8d48 20BuildRequires: openldap-devel
72eaba4f 21BuildRequires: openssl-devel >= 0.9.7d
1cefa9cb 22BuildRequires: pcsc-lite-devel
34f2d3c1 23BuildRequires: pkgconfig >= 1:0.9.0
1cefa9cb 24BuildRequires: readline-devel
543fbe6c 25BuildRequires: rpmbuild(macros) >= 1.236
896b833c 26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
1eb351c9 28# datadir is used for config files and (editable) profiles
ac174bda
JB
29%define _datadir /etc
30%define _sysconfdir /etc/opensc
543fbe6c
ER
31%define _plugindir %{_libdir}/browser-plugins
32
33# TODO: galeon and skipstone.
34# use macro, otherwise extra LF inserted along with the ifarch
35%define browsers mozilla, mozilla-firefox, konqueror, opera, seamonkey
d6f32863 36
896b833c 37%description
1cefa9cb
JB
38libopensc is a library for accessing SmartCard devices using PC/SC
39Lite middleware package. It is also the core library of the OpenSC
40project. Basic functionality (e.g. SELECT FILE, READ BINARY) should
41work on any ISO 7816-4 compatible SmartCard. Encryption and decryption
42using private keys on the SmartCard is at the moment possible only
43with PKCS#15 compatible cards, such as the FINEID (Finnish Electronic
44IDentity) card manufactured by Setec.
896b833c 45
8623b75b 46%description -l pl.UTF-8
1cefa9cb 47libopensc to biblioteka do korzystania z kart procesorowych przy
8623b75b
JR
48użyciu pakietu warstwy pośredniej PC/SC Lite. Jest to także podstawowa
49biblioteka projektu OpenSC. Podstawowa funkcjonalność (np. SELECT
50FILE, READ BINARY) powinna działać także z dowolną kartą procesorową
51zgodną z ISO-7816-4. Szyfrowanie i odszyfrowywanie przy użyciu
52prywatnych kluczy na karcie na razie jest możliwe tylko przy użyciu
1cefa9cb
JB
53kart kompatybilnych z PKCS#16, takich jak FINEID (Finnish Electronic
54IDentity) produkowanych przez Setec.
896b833c 55
56%package devel
1cefa9cb 57Summary: OpenSC development files
ae88f326 58Summary(pl.UTF-8): Pliki dla programistów używających OpenSC
896b833c 59Group: Development/Tools
9f872d80 60Requires: %{name} = %{epoch}:%{version}-%{release}
24aae781 61Requires: libltdl-devel
9f872d80
JB
62Requires: openct-devel
63Requires: openssl-devel
64Requires: pcsc-lite-devel
896b833c 65
66%description devel
1cefa9cb 67OpenSC development files.
896b833c 68
8623b75b
JR
69%description devel -l pl.UTF-8
70Pliki dla programistów używających OpenSC.
896b833c 71
72%package static
1cefa9cb 73Summary: Static OpenSC libraries
ae88f326 74Summary(pl.UTF-8): Bibloteki statyczne OpenSC
896b833c 75Group: Development/Tools
9f872d80 76Requires: %{name}-devel = %{epoch}:%{version}-%{release}
896b833c 77
78%description static
1cefa9cb 79Static OpenSC libraries.
896b833c 80
8623b75b 81%description static -l pl.UTF-8
1cefa9cb
JB
82Statyczne biblioteki OpenSC.
83
543fbe6c 84%package -n browser-plugin-opensc
d6f32863 85Summary: OpenSC Signer plugin for Mozilla
ae88f326 86Summary(pl.UTF-8): Wtyczka OpenSC Signer dla Mozilli
d6f32863 87Group: X11/Applications
9f872d80 88Requires: %{name} = %{epoch}:%{version}-%{release}
543fbe6c 89Requires: browser-plugins(%{_target_base_arch})
d6f32863 90Requires: pinentry-gtk
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
896b833c 104%prep
1cefa9cb 105%setup -q
bf585562 106%patch0 -p1
24268181 107%patch1 -p1
896b833c 108
109%build
b9c1b601 110touch config.rpath
1cefa9cb 111%{__libtoolize}
8d087e90 112%{__aclocal} -I aclocal
1cefa9cb 113%{__autoconf}
ac174bda 114%{__autoheader}
1cefa9cb 115%{__automake}
d6f32863
JB
116%configure \
117 --with-pin-entry=/usr/bin/pinentry-gtk \
543fbe6c 118 --with-plugin-dir="%{_plugindir}"
896b833c 119
1cefa9cb 120%{__make}
896b833c 121
122%install
123rm -rf $RPM_BUILD_ROOT
543fbe6c 124install -d $RPM_BUILD_ROOT%{_plugindir}
1cefa9cb 125
61f848e8
JB
126%{__make} install \
127 DESTDIR=$RPM_BUILD_ROOT
896b833c 128
61f848e8 129# just install instead of symlinking
543fbe6c
ER
130rm -f $RPM_BUILD_ROOT%{_plugindir}/opensc-signer.so
131mv -f $RPM_BUILD_ROOT%{_libdir}/opensc-signer.so $RPM_BUILD_ROOT%{_plugindir}
afd37b22 132
61f848e8 133# default config
4bdbfbe7 134install etc/opensc.conf $RPM_BUILD_ROOT%{_sysconfdir}
1eb351c9 135
61f848e8 136# useless (dlopened by *.so)
8d087e90
JB
137rm -f $RPM_BUILD_ROOT%{_libdir}/{opensc,pkcs11}-*.{a,la} \
138 $RPM_BUILD_ROOT%{_libdir}/opensc/*.{a,la}
61f848e8 139
896b833c 140%clean
141rm -rf $RPM_BUILD_ROOT
142
1cefa9cb
JB
143%post -p /sbin/ldconfig
144%postun -p /sbin/ldconfig
896b833c 145
543fbe6c
ER
146%triggerin -n browser-plugin-opensc -- mozilla-firefox
147%nsplugin_install -d %{_libdir}/mozilla-firefox/plugins opensc-signer.so
148
149%triggerun -n browser-plugin-opensc -- mozilla-firefox
150%nsplugin_uninstall -d %{_libdir}/mozilla-firefox/plugins opensc-signer.so
151
152%triggerin -n browser-plugin-opensc -- mozilla
153%nsplugin_install -d %{_libdir}/mozilla/plugins opensc-signer.so
154
155%triggerun -n browser-plugin-opensc -- mozilla
156%nsplugin_uninstall -d %{_libdir}/mozilla/plugins opensc-signer.so
157
158%triggerin -n browser-plugin-opensc -- opera
159%nsplugin_install -d %{_libdir}/opera/plugins opensc-signer.so
160
161%triggerun -n browser-plugin-opensc -- opera
162%nsplugin_uninstall -d %{_libdir}/opera/plugins opensc-signer.so
163
164%triggerin -n browser-plugin-opensc -- konqueror
165%nsplugin_install -d %{_libdir}/kde3/plugins/konqueror opensc-signer.so
166
167%triggerun -n browser-plugin-opensc -- konqueror
168%nsplugin_uninstall -d %{_libdir}/kde3/plugins/konqueror opensc-signer.so
169
170%triggerin -n browser-plugin-opensc -- seamonkey
171%nsplugin_install -d %{_libdir}/seamonkey/plugins opensc-signer.so
172
173%triggerun -n browser-plugin-opensc -- seamonkey
174%nsplugin_uninstall -d %{_libdir}/seamonkey/plugins opensc-signer.so
175
176# as rpm removes the old obsoleted package files after the triggers
177# are ran, add another trigger to make the links there.
178%triggerpostun -n browser-plugin-opensc -- mozilla-plugin-opensc
179%nsplugin_install -f -d %{_libdir}/mozilla/plugins opensc-signer.so
180
896b833c 181%files
182%defattr(644,root,root,755)
88647e66 183%doc NEWS README doc/ChangeLog doc/{*.{html,css},html/tools.html}
61f848e8 184%attr(755,root,root) %{_bindir}/cardos-info
1cefa9cb 185%attr(755,root,root) %{_bindir}/cryptoflex-tool
8d087e90
JB
186%attr(755,root,root) %{_bindir}/eidenv
187%attr(755,root,root) %{_bindir}/netkey-tool
1cefa9cb
JB
188%attr(755,root,root) %{_bindir}/opensc-explorer
189%attr(755,root,root) %{_bindir}/opensc-tool
88647e66 190%attr(755,root,root) %{_bindir}/piv-tool
61f848e8 191%attr(755,root,root) %{_bindir}/pkcs11-tool
1cefa9cb
JB
192%attr(755,root,root) %{_bindir}/pkcs15-*
193%attr(755,root,root) %{_libdir}/lib*.so.*.*
2f74c13c 194%attr(755,root,root) %{_libdir}/opensc-pkcs11.so
8d087e90 195%attr(755,root,root) %{_libdir}/pkcs11-spy.so
1cefa9cb 196%dir %{_datadir}/opensc
4bdbfbe7
JB
197%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf
198%config(noreplace) %verify(not md5 mtime size) %{_datadir}/opensc/*.profile
92519f5f 199%{_mandir}/man1/cardos-info.1*
61f848e8 200%{_mandir}/man1/cryptoflex-tool.1*
8d087e90 201%{_mandir}/man1/netkey-tool.1*
61f848e8
JB
202%{_mandir}/man1/opensc-explorer.1*
203%{_mandir}/man1/opensc-tool.1*
92519f5f
JB
204%{_mandir}/man1/pkcs11-tool.1*
205%{_mandir}/man1/pkcs15-*.1*
61f848e8 206%{_mandir}/man[57]/*
896b833c 207
208%files devel
209%defattr(644,root,root,755)
8d087e90 210%doc doc/html/api.html
1cefa9cb
JB
211%attr(755,root,root) %{_bindir}/opensc-config
212%attr(755,root,root) %{_libdir}/libopensc.so
213%attr(755,root,root) %{_libdir}/libpkcs15init.so
214%attr(755,root,root) %{_libdir}/libscconf.so
8d087e90
JB
215%{_libdir}/libopensc.la
216%{_libdir}/libpkcs15init.la
217%{_libdir}/libscconf.la
1cefa9cb 218%{_includedir}/opensc
61f848e8
JB
219%{_pkgconfigdir}/*.pc
220%{_mandir}/man1/opensc-config.1*
221%{_mandir}/man3/*
896b833c 222
223%files static
224%defattr(644,root,root,755)
8d087e90
JB
225%{_libdir}/libopensc.a
226%{_libdir}/libpkcs15init.a
227%{_libdir}/libscconf.a
d6f32863 228
543fbe6c 229%files -n browser-plugin-opensc
d6f32863 230%defattr(644,root,root,755)
543fbe6c 231%attr(755,root,root) %{_plugindir}/opensc-signer.so
This page took 0.057471 seconds and 4 git commands to generate.