]>
Commit | Line | Data |
---|---|---|
1 | # TODO | |
2 | # - package apidocs | |
3 | Summary: Layer on top of PKCS#11 API to make using PKCS#11 implementations easier | |
4 | Summary(pl.UTF-8): Warstwa powyżej API PKCS#11 ułatwiająca używanie implementacji PKCS#11 | |
5 | Name: libp11 | |
6 | Version: 0.2.8 | |
7 | Release: 1 | |
8 | License: LGPL v2.1+ | |
9 | Group: Libraries | |
10 | Source0: http://www.opensc-project.org/files/libp11/%{name}-%{version}.tar.gz | |
11 | # Source0-md5: f46dcbbea13a0732ab095d36283d5060 | |
12 | URL: http://www.opensc-project.org/libp11/ | |
13 | BuildRequires: doxygen | |
14 | BuildRequires: libltdl-devel | |
15 | BuildRequires: openssl-devel >= 0.9.7 | |
16 | BuildRequires: pkgconfig | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %undefine __cxx | |
20 | ||
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 | ||
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. | |
28 | ||
29 | %package devel | |
30 | Summary: Header files for libp11 library | |
31 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libp11 | |
32 | Group: Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | Requires: libltdl-devel | |
35 | Requires: openssl-devel >= 0.9.7 | |
36 | ||
37 | %description devel | |
38 | Header files for libp11 library. | |
39 | ||
40 | %description devel -l pl.UTF-8 | |
41 | Pliki nagłówkowe biblioteki libp11. | |
42 | ||
43 | %package static | |
44 | Summary: Static libp11 library | |
45 | Summary(pl.UTF-8): Statyczna biblioteka libp11 | |
46 | Group: Development/Libraries | |
47 | Requires: %{name}-devel = %{version}-%{release} | |
48 | ||
49 | %description static | |
50 | Static libp11 library. | |
51 | ||
52 | %description static -l pl.UTF-8 | |
53 | Statyczna biblioteka libp11. | |
54 | ||
55 | %prep | |
56 | %setup -q | |
57 | ||
58 | %build | |
59 | %configure \ | |
60 | --enable-api-doc | |
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 | ||
72 | # obsoleted by pkgconfig | |
73 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libp11.la | |
74 | ||
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) | |
83 | %doc NEWS doc/{README,nonpersistent/{ChangeLog,wiki.out/*}} | |
84 | %attr(755,root,root) %{_libdir}/libp11.so.*.*.* | |
85 | %attr(755,root,root) %ghost %{_libdir}/libp11.so.2 | |
86 | ||
87 | %files devel | |
88 | %defattr(644,root,root,755) | |
89 | %doc doc/api.out/html/* | |
90 | %attr(755,root,root) %{_libdir}/libp11.so | |
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 |