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