]> git.pld-linux.org Git - packages/opensc.git/blob - opensc.spec
- added fix for SEGV
[packages/opensc.git] / opensc.spec
1 Summary:        OpenSC library - for accessing SmartCard devices using PC/SC Lite
2 Summary(pl):    Biblioteka OpenSC - do korzystania z kart procesorowych przy u¿yciu PC/SC Lite
3 Name:           opensc
4 Version:        0.7.0
5 Release:        1
6 License:        LGPL
7 Group:          Applications
8 Source0:        http://www.opensc.org/files/%{name}-%{version}.tar.gz
9 Patch0:         %{name}-nolibs.patch
10 Patch1:         %{name}-segv.patch
11 URL:            http://www.opensc.org/
12 BuildRequires:  autoconf >= 2.52
13 BuildRequires:  automake
14 BuildRequires:  libtool >= 1:1.4.2-9
15 BUildRequires:  openldap-devel
16 BuildRequires:  openssl-devel
17 BuildRequires:  pam-devel
18 BuildRequires:  pcsc-lite-devel
19 BuildRequires:  readline-devel
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 libopensc is a library for accessing SmartCard devices using PC/SC
24 Lite middleware package. It is also the core library of the OpenSC
25 project. Basic functionality (e.g. SELECT FILE, READ BINARY) should
26 work on any ISO 7816-4 compatible SmartCard. Encryption and decryption
27 using private keys on the SmartCard is at the moment possible only
28 with PKCS#15 compatible cards, such as the FINEID (Finnish Electronic
29 IDentity) card manufactured by Setec.
30
31 %description -l pl
32 libopensc to biblioteka do korzystania z kart procesorowych przy
33 u¿yciu pakietu warstwy po¶redniej PC/SC Lite. Jest to tak¿e podstawowa
34 biblioteka projektu OpenSC. Podstawowa funkcjonalno¶æ (np. SELECT
35 FILE, READ BINARY) powinna dzia³aæ tak¿e z dowoln± kart± procesorow±
36 zgodn± z ISO-7816-4. Szyfrowanie i odszyfrowywanie przy u¿yciu
37 prywatnych kluczy na karcie na razie jest mo¿liwe tylko przy u¿yciu
38 kart kompatybilnych z PKCS#16, takich jak FINEID (Finnish Electronic
39 IDentity) produkowanych przez Setec.
40
41 %package devel
42 Summary:        OpenSC development files
43 Summary(pl):    Pliki dla programistów u¿ywaj±cych OpenSC
44 Group:          Development/Tools
45 Requires:       %{name}-libs = %{version}
46
47 %description devel
48 OpenSC development files.
49
50 %description devel -l pl
51 Pliki dla programistów u¿ywaj±cych OpenSC.
52
53 %package static
54 Summary:        Static OpenSC libraries
55 Summary(pl):    Bibloteki statyczne OpenSC
56 Group:          Development/Tools
57 Requires:       %{name}-devel = %{version}
58
59 %description static
60 Static OpenSC libraries.
61
62 %description static -l pl
63 Statyczne biblioteki OpenSC.
64
65 %package -n pam_opensc
66 Summary:        OpenSC module for PAM
67 Summary(pl):    Modu³ PAM OpenSC
68 License:        GPL
69 Group:          Base
70 Requires:       %{name} = %{version}
71
72 %description -n pam_opensc
73 OpenSC module for PAM.
74
75 %description -n pam_opensc -l pl
76 Modu³ PAM OpenSC.
77
78 %prep
79 %setup -q
80 %patch0 -p1
81 %patch1 -p1
82
83 %build
84 %{__libtoolize}
85 %{__aclocal}
86 %{__autoconf}
87 %{__automake}
88 %configure
89
90 %{__make}
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94
95 %{__make} install DESTDIR=$RPM_BUILD_ROOT
96
97 install -d $RPM_BUILD_ROOT/lib
98 mv -f $RPM_BUILD_ROOT%{_libdir}/security $RPM_BUILD_ROOT/lib
99
100 %clean
101 rm -rf $RPM_BUILD_ROOT
102
103 %post   -p /sbin/ldconfig
104 %postun -p /sbin/ldconfig
105
106 %files
107 %defattr(644,root,root,755)
108 %doc AUTHORS ChangeLog NEWS README README.signer THANKS TODO docs/pkcs-15v1_1.asn
109 %attr(755,root,root) %{_bindir}/cryptoflex-tool
110 %attr(755,root,root) %{_bindir}/opensc-explorer
111 %attr(755,root,root) %{_bindir}/opensc-tool
112 %attr(755,root,root) %{_bindir}/pkcs15-*
113 %attr(755,root,root) %{_libdir}/lib*.so.*.*
114 %attr(755,root,root) %{_libdir}/libscam.so
115 %dir %{_libdir}/pkcs11
116 %attr(755,root,root) %{_libdir}/pkcs11/opensc-pkcs11.so
117 %dir %{_datadir}/opensc
118 %{_datadir}/opensc/*.profile
119 %{_mandir}/man[157]/pkcs15*
120
121 %files devel
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_bindir}/opensc-config
124 %attr(755,root,root) %{_libdir}/libopensc.so
125 %attr(755,root,root) %{_libdir}/libpkcs15init.so
126 %attr(755,root,root) %{_libdir}/libscconf.so
127 %attr(755,root,root) %{_libdir}/libscldap.so
128 %{_libdir}/libopensc.la
129 %{_libdir}/libpkcs15init.la
130 %{_libdir}/libscconf.la
131 %{_libdir}/libscldap.la
132 %{_libdir}/libscrandom.a
133 %{_includedir}/opensc
134
135 %files static
136 %defattr(644,root,root,755)
137 %{_libdir}/libopensc.a
138 %{_libdir}/libpkcs15init.a
139 %{_libdir}/libscconf.a
140 %{_libdir}/libscldap.a
141
142 %files -n pam_opensc
143 %defattr(644,root,root,755)
144 %attr(755,root,root) /lib/security/pam_opensc.so
This page took 0.05867 seconds and 4 git commands to generate.