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