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 Source0: http://www.opensc-project.org/files/libp11/%{name}-%{version}.tar.gz
9 # Source0-md5: 9e2c5cbececde245e2d2f535bd49ce35
10 URL: http://www.opensc-project.org/libp11/
11 BuildRequires: libltdl-devel
12 BuildRequires: openssl-devel >= 0.9.7
13 BuildRequires: pkgconfig
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 Libp11 is a library implementing a small layer on top of PKCS#11 API
18 to make using PKCS#11 implementations easier.
20 %description -l pl.UTF-8
21 Libp11 to biblioteka implementująca niewielką warstwę na wierzchu API
22 PKCS#11 mająca ułatwić używanie implementacji PKCS#11.
25 Summary: Header files for libp11 library
26 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libp11
27 Group: Development/Libraries
28 Requires: %{name} = %{version}-%{release}
29 Requires: libltdl-devel
30 Requires: openssl-devel >= 0.9.7
33 Header files for libp11 library.
35 %description devel -l pl.UTF-8
36 Pliki nagłówkowe biblioteki libp11.
39 Summary: Static libp11 library
40 Summary(pl.UTF-8): Statyczna biblioteka libp11
41 Group: Development/Libraries
42 Requires: %{name}-devel = %{version}-%{release}
45 Static libp11 library.
47 %description static -l pl.UTF-8
48 Statyczna biblioteka libp11.
59 rm -rf $RPM_BUILD_ROOT
62 DESTDIR=$RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
65 cp -af examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
68 rm -rf $RPM_BUILD_ROOT
70 %post -p /sbin/ldconfig
71 %postun -p /sbin/ldconfig
74 %defattr(644,root,root,755)
75 %doc NEWS doc/{README,nonpersistent/{ChangeLog,wiki.out/*}}
76 %attr(755,root,root) %{_libdir}/libp11.so.*.*.*
77 %attr(755,root,root) %ghost %{_libdir}/libp11.so.0
80 %defattr(644,root,root,755)
81 %doc doc/api.out/html/*
82 %attr(755,root,root) %{_libdir}/libp11.so
84 %{_includedir}/libp11.h
85 %{_pkgconfigdir}/libp11.pc
86 %{_examplesdir}/%{name}-%{version}
89 %defattr(644,root,root,755)