]> git.pld-linux.org Git - packages/opensc.git/blame - opensc.spec
- updated to 0.16.0 (note: new sonames)
[packages/opensc.git] / opensc.spec
CommitLineData
455ac4e7
JB
1#
2# Conditional build:
53aad453
JB
3%bcond_with openct # use OpenCT instead of PC/SC for reader access
4#
1cefa9cb 5Summary: OpenSC library - for accessing SmartCard devices using PC/SC Lite
ae88f326 6Summary(pl.UTF-8): Biblioteka OpenSC - do korzystania z kart procesorowych przy użyciu PC/SC Lite
896b833c 7Name: opensc
112cff34 8Version: 0.16.0
4f1bc56e 9Release: 1
e0fb86be 10Epoch: 0
18e38179 11License: LGPL v2.1+
1cefa9cb 12Group: Applications
4f1bc56e 13Source0: http://downloads.sourceforge.net/opensc/%{name}-%{version}.tar.gz
112cff34 14# Source0-md5: 724d128f23cd7a74b28d04300ce7bcbd
4f1bc56e
JB
15Patch0: %{name}-pc.patch
16URL: https://github.com/OpenSC/OpenSC/wiki
c28ca417
JB
17BuildRequires: autoconf >= 2.60
18BuildRequires: automake >= 1:1.10
455ac4e7 19BuildRequires: docbook-style-xsl
8d087e90 20BuildRequires: libltdl-devel
1cefa9cb 21BuildRequires: libtool >= 1:1.4.2-9
d740a4df 22BuildRequires: libxslt-progs
455ac4e7 23%{?with_openct:BuildRequires: openct-devel}
72eaba4f 24BuildRequires: openssl-devel >= 0.9.7d
455ac4e7 25%{!?with_openct:BuildRequires: pcsc-lite-devel >= 1.6.0}
34f2d3c1 26BuildRequires: pkgconfig >= 1:0.9.0
1cefa9cb 27BuildRequires: readline-devel
c28ca417
JB
28BuildRequires: rpmbuild(macros) >= 1.364
29BuildRequires: zlib-devel
4f1bc56e 30Requires: filesystem >= 4.0-28
455ac4e7
JB
31%{!?with_openct:Requires: pcsc-lite-libs >= 1.6.0}
32Obsoletes: browser-plugin-opensc
33Obsoletes: mozilla-plugin-opensc
896b833c 34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
1eb351c9 36# datadir is used for config files and (editable) profiles
ac174bda
JB
37%define _datadir /etc
38%define _sysconfdir /etc/opensc
d6f32863 39
896b833c 40%description
1cefa9cb
JB
41libopensc is a library for accessing SmartCard devices using PC/SC
42Lite middleware package. It is also the core library of the OpenSC
43project. Basic functionality (e.g. SELECT FILE, READ BINARY) should
44work on any ISO 7816-4 compatible SmartCard. Encryption and decryption
45using private keys on the SmartCard is at the moment possible only
46with PKCS#15 compatible cards, such as the FINEID (Finnish Electronic
47IDentity) card manufactured by Setec.
896b833c 48
8623b75b 49%description -l pl.UTF-8
1cefa9cb 50libopensc to biblioteka do korzystania z kart procesorowych przy
8623b75b
JR
51użyciu pakietu warstwy pośredniej PC/SC Lite. Jest to także podstawowa
52biblioteka projektu OpenSC. Podstawowa funkcjonalność (np. SELECT
53FILE, READ BINARY) powinna działać także z dowolną kartą procesorową
54zgodną z ISO-7816-4. Szyfrowanie i odszyfrowywanie przy użyciu
55prywatnych kluczy na karcie na razie jest możliwe tylko przy użyciu
1cefa9cb
JB
56kart kompatybilnych z PKCS#16, takich jak FINEID (Finnish Electronic
57IDentity) produkowanych przez Setec.
896b833c 58
59%package devel
1cefa9cb 60Summary: OpenSC development files
ae88f326 61Summary(pl.UTF-8): Pliki dla programistów używających OpenSC
896b833c 62Group: Development/Tools
9f872d80 63Requires: %{name} = %{epoch}:%{version}-%{release}
24aae781 64Requires: libltdl-devel
455ac4e7 65%{?with_openct:Requires: openct-devel}
ef886f95 66Requires: openssl-devel >= 0.9.7d
455ac4e7 67%{!?with_openct:Requires: pcsc-lite-devel >= 1.6.0}
ef886f95 68Requires: zlib-devel
896b833c 69
70%description devel
1cefa9cb 71OpenSC development files.
896b833c 72
8623b75b
JR
73%description devel -l pl.UTF-8
74Pliki dla programistów używających OpenSC.
896b833c 75
76%package static
455ac4e7
JB
77Summary: Static OpenSC library
78Summary(pl.UTF-8): Bibloteka statyczna OpenSC
896b833c 79Group: Development/Tools
9f872d80 80Requires: %{name}-devel = %{epoch}:%{version}-%{release}
896b833c 81
82%description static
455ac4e7 83Static OpenSC library.
896b833c 84
8623b75b 85%description static -l pl.UTF-8
455ac4e7 86Biblioteka statyczna OpenSC.
d6f32863 87
47359102
JB
88%package -n bash-completion-opensc
89Summary: Bash completion for OpenSC commands
90Summary(pl.UTF-8): Bashowe uzupełnianie parametrów poleceń OpenSC
91Group: Applications/Shells
92Requires: %{name} = %{version}-%{release}
93
94%description -n bash-completion-opensc
95Bash completion for OpenSC commands.
96
97%description -n bash-completion-opensc -l pl.UTF-8
98Bashowe uzupełnianie parametrów poleceń OpenSC.
99
896b833c 100%prep
1cefa9cb 101%setup -q
4f1bc56e 102%patch0 -p1
2504dc81 103
896b833c 104%build
1cefa9cb 105%{__libtoolize}
c28ca417 106%{__aclocal} -I m4
1cefa9cb 107%{__autoconf}
ac174bda 108%{__autoheader}
1cefa9cb 109%{__automake}
d6f32863 110%configure \
455ac4e7
JB
111 %{?with_openct:--enable-openct --disable-pcsc} \
112 %{!?with_openct:--enable-pcsc --disable-openct} \
80bde4f7 113 --disable-silent-rules \
455ac4e7
JB
114 --enable-doc \
115 --with-pcsc-provider=%{_libdir}/libpcsclite.so.1
896b833c 116
1cefa9cb 117%{__make}
896b833c 118
119%install
120rm -rf $RPM_BUILD_ROOT
3d10579f 121install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_libdir}/pkcs11}
70be04b7 122
3d10579f 123%{__make} install \
47359102
JB
124 DESTDIR=$RPM_BUILD_ROOT \
125 completiondir=/etc/bash_completion.d
896b833c 126
455ac4e7 127# not needed (dlopened by soname)
ef886f95 128%{__rm} $RPM_BUILD_ROOT%{_libdir}/{onepin-opensc-pkcs11,opensc-pkcs11,pkcs11-spy}.la
4f1bc56e 129# obsoleted by pkg-config
ef886f95 130%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib{opensc,smm-local}.la
61f848e8 131
53aad453 132%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
0a3c046b 133
896b833c 134%clean
135rm -rf $RPM_BUILD_ROOT
136
1cefa9cb
JB
137%post -p /sbin/ldconfig
138%postun -p /sbin/ldconfig
896b833c 139
140%files
141%defattr(644,root,root,755)
112cff34 142%doc NEWS README doc/tools/tools.html
d9747ba8 143%attr(755,root,root) %{_bindir}/cardos-tool
1cefa9cb 144%attr(755,root,root) %{_bindir}/cryptoflex-tool
ef886f95 145%attr(755,root,root) %{_bindir}/dnie-tool
8d087e90 146%attr(755,root,root) %{_bindir}/eidenv
112cff34 147%attr(755,root,root) %{_bindir}/gids-tool
4f1bc56e 148%attr(755,root,root) %{_bindir}/iasecc-tool
8d087e90 149%attr(755,root,root) %{_bindir}/netkey-tool
4f1bc56e 150%attr(755,root,root) %{_bindir}/openpgp-tool
1cefa9cb
JB
151%attr(755,root,root) %{_bindir}/opensc-explorer
152%attr(755,root,root) %{_bindir}/opensc-tool
88647e66 153%attr(755,root,root) %{_bindir}/piv-tool
61f848e8 154%attr(755,root,root) %{_bindir}/pkcs11-tool
455ac4e7
JB
155%attr(755,root,root) %{_bindir}/pkcs15-crypt
156%attr(755,root,root) %{_bindir}/pkcs15-init
157%attr(755,root,root) %{_bindir}/pkcs15-tool
4f1bc56e 158%attr(755,root,root) %{_bindir}/sc-hsm-tool
c9f4880d 159%attr(755,root,root) %{_bindir}/westcos-tool
c39ac2c0 160%attr(755,root,root) %{_libdir}/libopensc.so.*.*.*
112cff34 161%attr(755,root,root) %ghost %{_libdir}/libopensc.so.4
ef886f95 162%attr(755,root,root) %{_libdir}/libsmm-local.so.*.*.*
112cff34 163%attr(755,root,root) %ghost %{_libdir}/libsmm-local.so.4
c28ca417 164# PKCS11 modules
ef886f95 165%attr(755,root,root) %{_libdir}/onepin-opensc-pkcs11.so
2f74c13c 166%attr(755,root,root) %{_libdir}/opensc-pkcs11.so
8d087e90 167%attr(755,root,root) %{_libdir}/pkcs11-spy.so
ef886f95 168%attr(755,root,root) %{_libdir}/pkcs11/onepin-opensc-pkcs11.so
c28ca417
JB
169%attr(755,root,root) %{_libdir}/pkcs11/opensc-pkcs11.so
170%attr(755,root,root) %{_libdir}/pkcs11/pkcs11-spy.so
1cefa9cb 171%dir %{_datadir}/opensc
c9f4880d 172%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensc.conf
4bdbfbe7 173%config(noreplace) %verify(not md5 mtime size) %{_datadir}/opensc/*.profile
d9747ba8 174%{_mandir}/man1/cardos-tool.1*
61f848e8 175%{_mandir}/man1/cryptoflex-tool.1*
47359102 176%{_mandir}/man1/dnie-tool.1*
53aad453 177%{_mandir}/man1/eidenv.1*
112cff34 178%{_mandir}/man1/gids-tool.1*
4f1bc56e 179%{_mandir}/man1/iasecc-tool.1*
8d087e90 180%{_mandir}/man1/netkey-tool.1*
4f1bc56e 181%{_mandir}/man1/openpgp-tool.1*
61f848e8
JB
182%{_mandir}/man1/opensc-explorer.1*
183%{_mandir}/man1/opensc-tool.1*
53aad453 184%{_mandir}/man1/piv-tool.1*
92519f5f 185%{_mandir}/man1/pkcs11-tool.1*
455ac4e7
JB
186%{_mandir}/man1/pkcs15-crypt.1*
187%{_mandir}/man1/pkcs15-init.1*
188%{_mandir}/man1/pkcs15-tool.1*
4f1bc56e 189%{_mandir}/man1/sc-hsm-tool.1*
c9f4880d 190%{_mandir}/man1/westcos-tool.1*
c39ac2c0 191%{_mandir}/man5/pkcs15-profile.5*
896b833c 192
193%files devel
194%defattr(644,root,root,755)
1cefa9cb 195%attr(755,root,root) %{_libdir}/libopensc.so
ef886f95 196%attr(755,root,root) %{_libdir}/libsmm-local.so
4f1bc56e 197%{_pkgconfigdir}/libopensc.pc
896b833c 198
199%files static
200%defattr(644,root,root,755)
8d087e90 201%{_libdir}/libopensc.a
ef886f95 202%{_libdir}/libsmm-local.a
47359102
JB
203
204%files -n bash-completion-opensc
205%defattr(644,root,root,755)
206/etc/bash_completion.d/cardos-tool
207/etc/bash_completion.d/cryptoflex-tool
208/etc/bash_completion.d/dnie-tool
209/etc/bash_completion.d/eidenv
112cff34 210/etc/bash_completion.d/gids-tool
47359102
JB
211/etc/bash_completion.d/iasecc-tool
212/etc/bash_completion.d/netkey-tool
213/etc/bash_completion.d/openpgp-tool
214/etc/bash_completion.d/opensc-explorer
215/etc/bash_completion.d/opensc-tool
216/etc/bash_completion.d/piv-tool
217/etc/bash_completion.d/pkcs11-tool
218/etc/bash_completion.d/pkcs15-crypt
219/etc/bash_completion.d/pkcs15-init
220/etc/bash_completion.d/pkcs15-tool
221/etc/bash_completion.d/sc-hsm-tool
222/etc/bash_completion.d/westcos-tool
This page took 0.074083 seconds and 4 git commands to generate.