]>
Commit | Line | Data |
---|---|---|
3c7e1fe9 | 1 | Summary: Helper library for the use with smart cards and the PKCS#11 API |
e23dc132 | 2 | Summary(pl.UTF-8): Biblioteka pomocnicza do używania z kartami procesorowymi i API PKCS#11 |
3c7e1fe9 | 3 | Name: pkcs11-helper |
0fc1fed2 | 4 | Version: 1.29.0 |
7e913d81 | 5 | Release: 1 |
3c7e1fe9 JB |
6 | License: GPL v2 or BSD |
7 | Group: Libraries | |
874b674f | 8 | #Source0Download: https://github.com/OpenSC/pkcs11-helper/releases |
0fc1fed2 JB |
9 | Source0: https://github.com/OpenSC/pkcs11-helper/releases/download/pkcs11-helper-%{version}/%{name}-%{version}.tar.bz2 |
10 | # Source0-md5: 7a65cf41d4939bbac2f3432cccbf55aa | |
b6eec262 | 11 | Patch0: no-libs.patch |
49bc9dd9 | 12 | Patch1: %{name}-nss.patch |
87537fc5 | 13 | URL: https://github.com/OpenSC/pkcs11-helper |
d9ce4974 JB |
14 | BuildRequires: autoconf >= 2.60 |
15 | BuildRequires: automake >= 1:1.10 | |
3c7e1fe9 | 16 | BuildRequires: doxygen |
46b208e5 | 17 | BuildRequires: gnutls-devel >= 1.4 |
d9ce4974 | 18 | BuildRequires: libtool |
874b674f | 19 | BuildRequires: mbedtls-devel |
46b208e5 | 20 | BuildRequires: nss-devel >= 3.11 |
3c7e1fe9 | 21 | BuildRequires: openssl-devel >= 0.9.7a |
46b208e5 | 22 | BuildRequires: pkgconfig |
874b674f JB |
23 | Requires: gnutls-libs >= 1.4 |
24 | Requires: nss >= 3.11 | |
3c7e1fe9 JB |
25 | Requires: openssl >= 0.9.7a |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
2d798c25 | 28 | %undefine __cxx |
29 | ||
3c7e1fe9 JB |
30 | %description |
31 | pkcs11-helper provides a simple API to access PKCS#11 tokens. | |
32 | ||
3884b47b JR |
33 | %description -l pl.UTF-8 |
34 | pkcs11-helper udostępnia proste API do dostępu do tokenów PKCS#11. | |
3c7e1fe9 JB |
35 | |
36 | %package devel | |
37 | Summary: Header files for pkcs11-helper library | |
e23dc132 | 38 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki pkcs11-helper |
3c7e1fe9 JB |
39 | Group: Development/Libraries |
40 | Requires: %{name} = %{version}-%{release} | |
41 | ||
42 | %description devel | |
43 | Header files for pkcs11-helper library. | |
44 | ||
3884b47b JR |
45 | %description devel -l pl.UTF-8 |
46 | Pliki nagłówkowe biblioteki pkcs11-helper. | |
3c7e1fe9 JB |
47 | |
48 | %package static | |
49 | Summary: Static pkcs11-helper library | |
e23dc132 | 50 | Summary(pl.UTF-8): Statyczna biblioteka pkcs11-helper |
3c7e1fe9 JB |
51 | Group: Development/Libraries |
52 | Requires: %{name}-devel = %{version}-%{release} | |
53 | ||
54 | %description static | |
55 | Static pkcs11-helper library. | |
56 | ||
3884b47b | 57 | %description static -l pl.UTF-8 |
3c7e1fe9 JB |
58 | Statyczna biblioteka pkcs11-helper. |
59 | ||
874b674f JB |
60 | %package apidocs |
61 | Summary: API documentation for pkcs11-helper library | |
62 | Summary(pl.UTF-8): Dokumentacja API biblioteki pkcs11-helper | |
63 | Group: Documentation | |
64 | ||
65 | %description apidocs | |
66 | API documentation for pkcs11-helper library. | |
67 | ||
68 | %description apidocs -l pl.UTF-8 | |
69 | Dokumentacja API biblioteki pkcs11-helper. | |
70 | ||
3c7e1fe9 JB |
71 | %prep |
72 | %setup -q | |
b6eec262 | 73 | %patch0 -p1 |
49bc9dd9 | 74 | %patch1 -p1 |
3c7e1fe9 JB |
75 | |
76 | %build | |
d9ce4974 JB |
77 | %{__libtoolize} |
78 | %{__aclocal} -I m4 | |
79 | %{__autoconf} | |
80 | %{__autoheader} | |
81 | %{__automake} | |
3c7e1fe9 JB |
82 | %configure \ |
83 | --enable-doc | |
84 | ||
85 | %{__make} | |
86 | ||
87 | %install | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %{__make} install \ | |
91 | DESTDIR=$RPM_BUILD_ROOT | |
92 | ||
61435b3c JB |
93 | # obsoleted by pkg-config |
94 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libpkcs11-helper.la | |
95 | # packaged as %doc | |
6ebca3b9 | 96 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
7da26269 | 97 | |
3c7e1fe9 JB |
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 COPYING COPYING.BSD ChangeLog README THANKS | |
107 | %attr(755,root,root) %{_libdir}/libpkcs11-helper.so.*.*.* | |
46b208e5 | 108 | %attr(755,root,root) %ghost %{_libdir}/libpkcs11-helper.so.1 |
7da26269 | 109 | %{_mandir}/man8/pkcs11-helper-1.8* |
3c7e1fe9 JB |
110 | |
111 | %files devel | |
112 | %defattr(644,root,root,755) | |
3c7e1fe9 | 113 | %attr(755,root,root) %{_libdir}/libpkcs11-helper.so |
3c7e1fe9 JB |
114 | %{_includedir}/pkcs11-helper-1.0 |
115 | %{_pkgconfigdir}/libpkcs11-helper-1.pc | |
116 | %{_aclocaldir}/pkcs11-helper-1.m4 | |
117 | ||
118 | %files static | |
119 | %defattr(644,root,root,755) | |
120 | %{_libdir}/libpkcs11-helper.a | |
874b674f JB |
121 | |
122 | %files apidocs | |
123 | %defattr(644,root,root,755) | |
124 | %doc doc/api/api.out/html/* |