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