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