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