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