]>
Commit | Line | Data |
---|---|---|
1 | Summary: Layer on top of PKCS#11 API to make using PKCS#11 implementations easier | |
2 | Summary(pl.UTF-8): Warstwa powyżej API PKCS#11 ułatwiająca używanie implementacji PKCS#11 | |
3 | Name: libp11 | |
4 | Version: 0.4.7 | |
5 | Release: 1 | |
6 | License: LGPL v2.1+ | |
7 | Group: Libraries | |
8 | #Source0Download: https://github.com/OpenSC/libp11/releases | |
9 | Source0: https://github.com/OpenSC/libp11/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: 0902e692c7a5d2b96505913240b33220 | |
11 | URL: https://github.com/OpenSC/libp11 | |
12 | BuildRequires: doxygen | |
13 | BuildRequires: openssl-devel >= 0.9.8 | |
14 | # for proxy_module detection | |
15 | BuildRequires: p11-kit-devel | |
16 | BuildRequires: pkgconfig | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %undefine __cxx | |
20 | ||
21 | %description | |
22 | Libp11 is a library implementing a small layer on top of PKCS#11 API | |
23 | to make using PKCS#11 implementations easier. | |
24 | ||
25 | %description -l pl.UTF-8 | |
26 | Libp11 to biblioteka implementująca niewielką warstwę na wierzchu API | |
27 | PKCS#11 mająca ułatwić używanie implementacji PKCS#11. | |
28 | ||
29 | %package devel | |
30 | Summary: Header files for libp11 library | |
31 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libp11 | |
32 | Group: Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | Requires: openssl-devel >= 0.9.8 | |
35 | ||
36 | %description devel | |
37 | Header files for libp11 library. | |
38 | ||
39 | %description devel -l pl.UTF-8 | |
40 | Pliki nagłówkowe biblioteki libp11. | |
41 | ||
42 | %package static | |
43 | Summary: Static libp11 library | |
44 | Summary(pl.UTF-8): Statyczna biblioteka libp11 | |
45 | Group: Development/Libraries | |
46 | Requires: %{name}-devel = %{version}-%{release} | |
47 | ||
48 | %description static | |
49 | Static libp11 library. | |
50 | ||
51 | %description static -l pl.UTF-8 | |
52 | Statyczna biblioteka libp11. | |
53 | ||
54 | %package apidocs | |
55 | Summary: API documentation for libp11 library | |
56 | Summary(pl.UTF-8): Dokumentacja API biblioteki libp11 | |
57 | Group: Documentation | |
58 | ||
59 | %description apidocs | |
60 | API documentation for libp11 library. | |
61 | ||
62 | %description apidocs -l pl.UTF-8 | |
63 | Dokumentacja API biblioteki libp11. | |
64 | ||
65 | %package -n openssl-engine-pkcs11 | |
66 | Summary: PKCS#11 engine for OpenSSL | |
67 | Summary(pl.UTF-8): Silnik PKCS#11 dla OpenSSL-a | |
68 | Group: Libraries | |
69 | Requires: %{name} = %{version}-%{release} | |
70 | Requires: openssl >= 0.9.8 | |
71 | ||
72 | %description -n openssl-engine-pkcs11 | |
73 | engine_pkcs11 is an implementation of an engine for OpenSSL. It can be | |
74 | loaded using code, config file or command line and will pass any | |
75 | function call by openssl to a PKCS#11 module. Engine_pkcs11 is meant | |
76 | to be used with smart cards and software for using smart cards in | |
77 | PKCS#11 format, such as OpenSC. | |
78 | ||
79 | %description -n openssl-engine-pkcs11 -l pl.UTF-8 | |
80 | engine_pkcs11 to implementacja silnika dla OpenSSL-a. Może być | |
81 | wczytany przy użyciu kodu, pliku konfiguracyjnego i linii poleceń; | |
82 | przekazuje wszystkie wywołania funkcji openssl-a do modułu PKCS#11. | |
83 | engine_pkcs11 jest przeznaczony do używania z kartami procesorowymi i | |
84 | oprogramowaniem do używania kart procesorowych w formacie PKCS#11, | |
85 | takim jak OpenSC. | |
86 | ||
87 | %prep | |
88 | %setup -q | |
89 | ||
90 | %build | |
91 | %configure \ | |
92 | --enable-api-doc \ | |
93 | --disable-silent-rules \ | |
94 | --with-enginesdir=/%{_lib}/engines | |
95 | %{__make} | |
96 | ||
97 | %install | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %{__make} install \ | |
101 | DESTDIR=$RPM_BUILD_ROOT | |
102 | ||
103 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
104 | cp -af examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
105 | ||
106 | # obsoleted by pkgconfig | |
107 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libp11.la | |
108 | # loadable module | |
109 | %{__rm} $RPM_BUILD_ROOT/%{_lib}/engines/*.la | |
110 | # packaged as %doc | |
111 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libp11 | |
112 | ||
113 | %clean | |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
116 | %post -p /sbin/ldconfig | |
117 | %postun -p /sbin/ldconfig | |
118 | ||
119 | %files | |
120 | %defattr(644,root,root,755) | |
121 | %doc NEWS README.md | |
122 | %attr(755,root,root) %{_libdir}/libp11.so.*.*.* | |
123 | %attr(755,root,root) %ghost %{_libdir}/libp11.so.2 | |
124 | ||
125 | %files devel | |
126 | %defattr(644,root,root,755) | |
127 | %attr(755,root,root) %{_libdir}/libp11.so | |
128 | %{_includedir}/libp11.h | |
129 | %{_includedir}/p11_err.h | |
130 | %{_pkgconfigdir}/libp11.pc | |
131 | %{_examplesdir}/%{name}-%{version} | |
132 | ||
133 | %files static | |
134 | %defattr(644,root,root,755) | |
135 | %{_libdir}/libp11.a | |
136 | ||
137 | %files apidocs | |
138 | %defattr(644,root,root,755) | |
139 | %doc doc/api.out/html/* | |
140 | ||
141 | %files -n openssl-engine-pkcs11 | |
142 | %defattr(644,root,root,755) | |
143 | %attr(755,root,root) /%{_lib}/engines/libpkcs11.so | |
144 | %attr(755,root,root) /%{_lib}/engines/pkcs11.so |