]>
Commit | Line | Data |
---|---|---|
79e59891 | 1 | Summary: Layer on top of PKCS#11 API to make using PKCS#11 implementations easier |
38532f27 | 2 | Summary(pl.UTF-8): Warstwa powyżej API PKCS#11 ułatwiająca używanie implementacji PKCS#11 |
79e59891 | 3 | Name: libp11 |
82853f7d | 4 | Version: 0.2.2 |
8d1f7e62 | 5 | Release: 2 |
79e59891 JB |
6 | License: LGPL v2.1+ |
7 | Group: Libraries | |
8a61e2b4 | 8 | Source0: http://www.opensc-project.org/files/libp11/%{name}-%{version}.tar.gz |
82853f7d | 9 | # Source0-md5: b8655b2065575eb1b96a9c924c234c63 |
8a61e2b4 | 10 | URL: http://www.opensc-project.org/libp11/ |
79e59891 JB |
11 | BuildRequires: libltdl-devel |
12 | BuildRequires: openssl-devel | |
13 | BuildRequires: pkgconfig | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | Libp11 is a library implementing a small layer on top of PKCS#11 API | |
18 | to make using PKCS#11 implementations easier. | |
19 | ||
38532f27 JR |
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. | |
79e59891 JB |
23 | |
24 | %package devel | |
25 | Summary: Header files for libp11 library | |
38532f27 | 26 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libp11 |
79e59891 JB |
27 | Group: Development/Libraries |
28 | Requires: %{name} = %{version}-%{release} | |
29 | Requires: libltdl-devel | |
30 | Requires: openssl-devel | |
31 | ||
32 | %description devel | |
33 | Header files for libp11 library. | |
34 | ||
38532f27 JR |
35 | %description devel -l pl.UTF-8 |
36 | Pliki nagłówkowe biblioteki libp11. | |
79e59891 JB |
37 | |
38 | %package static | |
39 | Summary: Static libp11 library | |
38532f27 | 40 | Summary(pl.UTF-8): Statyczna biblioteka libp11 |
79e59891 JB |
41 | Group: Development/Libraries |
42 | Requires: %{name}-devel = %{version}-%{release} | |
43 | ||
44 | %description static | |
45 | Static libp11 library. | |
46 | ||
38532f27 | 47 | %description static -l pl.UTF-8 |
79e59891 JB |
48 | Statyczna biblioteka libp11. |
49 | ||
50 | %prep | |
51 | %setup -q | |
52 | ||
53 | %build | |
54 | %configure | |
55 | %{__make} | |
56 | ||
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %{__make} install \ | |
61 | DESTDIR=$RPM_BUILD_ROOT | |
62 | ||
63 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
64 | cp -af examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
65 | ||
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %post -p /sbin/ldconfig | |
70 | %postun -p /sbin/ldconfig | |
71 | ||
72 | %files | |
73 | %defattr(644,root,root,755) | |
54c9b030 | 74 | %doc doc/{ChangeLog,README,*.html,*.css} |
79e59891 JB |
75 | %attr(755,root,root) %{_libdir}/libp11.so.*.*.* |
76 | ||
77 | %files devel | |
78 | %defattr(644,root,root,755) | |
79 | %doc doc/api/* | |
80 | %attr(755,root,root) %{_libdir}/libp11.so | |
81 | %{_libdir}/libp11.la | |
82 | %{_includedir}/libp11.h | |
83 | %{_pkgconfigdir}/libp11.pc | |
84 | %{_examplesdir}/%{name}-%{version} | |
85 | ||
86 | %files static | |
87 | %defattr(644,root,root,755) | |
88 | %{_libdir}/libp11.a |