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