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