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
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: 3464874bb5ca47b8e4c1d540758dcfe9
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)
22 Libp11 is a library implementing a small layer on top of PKCS#11 API
23 to make using PKCS#11 implementations easier.
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.
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
37 Header files for libp11 library.
39 %description devel -l pl.UTF-8
40 Pliki nagłówkowe biblioteki libp11.
43 Summary: Static libp11 library
44 Summary(pl.UTF-8): Statyczna biblioteka libp11
45 Group: Development/Libraries
46 Requires: %{name}-devel = %{version}-%{release}
49 Static libp11 library.
51 %description static -l pl.UTF-8
52 Statyczna biblioteka libp11.
55 Summary: API documentation for libp11 library
56 Summary(pl.UTF-8): Dokumentacja API biblioteki libp11
60 API documentation for libp11 library.
62 %description apidocs -l pl.UTF-8
63 Dokumentacja API biblioteki libp11.
65 %package -n openssl-engine-pkcs11
66 Summary: PKCS#11 engine for OpenSSL
67 Summary(pl.UTF-8): Silnik PKCS#11 dla OpenSSL-a
69 Requires: %{name} = %{version}-%{release}
70 Requires: openssl >= 0.9.8
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.
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,
93 --disable-silent-rules \
94 --with-enginesdir=/%{_lib}/engines-1.1
98 rm -rf $RPM_BUILD_ROOT
101 DESTDIR=$RPM_BUILD_ROOT
103 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
104 cp -af examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
106 # obsoleted by pkgconfig
107 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libp11.la
109 %{__rm} $RPM_BUILD_ROOT/%{_lib}/engines-1.1/*.la
111 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libp11
114 rm -rf $RPM_BUILD_ROOT
116 %post -p /sbin/ldconfig
117 %postun -p /sbin/ldconfig
120 %defattr(644,root,root,755)
122 %attr(755,root,root) %{_libdir}/libp11.so.*.*.*
123 %attr(755,root,root) %ghost %{_libdir}/libp11.so.3
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}
134 %defattr(644,root,root,755)
138 %defattr(644,root,root,755)
139 %doc doc/api.out/html/*
141 %files -n openssl-engine-pkcs11
142 %defattr(644,root,root,755)
143 %attr(755,root,root) /%{_lib}/engines-1.1/libpkcs11.so
144 %attr(755,root,root) /%{_lib}/engines-1.1/pkcs11.so