]>
Commit | Line | Data |
---|---|---|
c157090e JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
c157090e JB |
4 | # |
5 | Summary: Library and proxy module for properly loading and sharing PKCS#11 modules | |
6 | Summary(pl.UTF-8): Biblioteka i moduł proxy do właściwego wczytywania i współdzielenia modułów PKCS#11 | |
7 | Name: p11-kit | |
b95fe767 | 8 | # NOTE: 0.18.x is stable, 0.19.x unstable |
eff521a9 | 9 | Version: 0.18.1 |
c157090e JB |
10 | Release: 1 |
11 | License: BSD | |
12 | Group: Libraries | |
13 | Source0: http://p11-glue.freedesktop.org/releases/%{name}-%{version}.tar.gz | |
eff521a9 | 14 | # Source0-md5: e4ef21592dbd126b62e1a6d4ad65ce5c |
c157090e JB |
15 | URL: http://p11-glue.freedesktop.org/p11-kit.html |
16 | BuildRequires: gtk-doc >= 1.15 | |
f1dada4a JB |
17 | BuildRequires: libtasn1-devel >= 2.14 |
18 | Requires: libtasn1 >= 2.14 | |
b2ed7d33 | 19 | Suggests: ca-certificates |
c157090e JB |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
23 | P11-KIT provides a way to load and enumerate PKCS#11 modules. It also | |
24 | provides a standard configuration setup for installing PKCS#11 modules | |
25 | in such a way that they-re discoverable. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | P11-KIT zapewnia możliwość ładowania i numeracji modułów PKCS#11. | |
29 | Zapewnia też ustandaryzowaną konfigurację do instalowania modułów | |
30 | PKCS#11 w taki sposób, żeby były możliwe do wykrycia. | |
31 | ||
32 | %package devel | |
33 | Summary: Header files for P11-KIT library | |
34 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki P11-KIT | |
35 | Group: Development/Libraries | |
36 | Requires: %{name} = %{version}-%{release} | |
4fea1c3e | 37 | Obsoletes: p11-kit-static |
c157090e JB |
38 | |
39 | %description devel | |
40 | Header files for P11-KIT library. | |
41 | ||
42 | %description devel -l pl.UTF-8 | |
43 | Pliki nagłówkowe biblioteki P11-KIT. | |
44 | ||
c157090e JB |
45 | %package apidocs |
46 | Summary: P11-KIT API documentation | |
47 | Summary(pl.UTF-8): Dokumentacja API biblioteki P11-KIT | |
48 | Group: Documentation | |
49 | Requires: gtk-doc-common | |
50 | ||
51 | %description apidocs | |
52 | API and internal documentation for P11-KIT library. | |
53 | ||
54 | %description apidocs -l pl.UTF-8 | |
55 | Dokumentacja API biblioteki P11-KIT. | |
56 | ||
57 | %prep | |
58 | %setup -q | |
59 | ||
60 | %build | |
61 | %configure \ | |
62 | %{!?with_apidocs:--disable-gtk-doc} \ | |
63 | --disable-silent-rules \ | |
f1dada4a | 64 | --with-html-dir=%{_gtkdocdir} \ |
b95fe767 | 65 | --with-trust-paths=/etc/certs/ca-certificates.crt |
c157090e JB |
66 | %{__make} |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/pkcs11/modules | |
71 | ||
72 | %{__make} install \ | |
73 | DESTDIR=$RPM_BUILD_ROOT | |
74 | ||
75 | # obsoleted by pkg-config | |
76 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libp11-kit.la | |
f1dada4a JB |
77 | # dlopened module |
78 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/pkcs11/*.la | |
79 | ||
80 | %{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/pkcs11/pkcs11.conf{.example,} | |
c157090e JB |
81 | |
82 | %clean | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %post -p /sbin/ldconfig | |
86 | %postun -p /sbin/ldconfig | |
87 | ||
88 | %files | |
89 | %defattr(644,root,root,755) | |
90 | %doc AUTHORS COPYING ChangeLog NEWS README | |
91 | %attr(755,root,root) %{_bindir}/p11-kit | |
92 | %attr(755,root,root) %{_libdir}/libp11-kit.so.*.*.* | |
93 | %attr(755,root,root) %ghost %{_libdir}/libp11-kit.so.0 | |
94 | %attr(755,root,root) %{_libdir}/p11-kit-proxy.so | |
95 | %dir %{_sysconfdir}/pkcs11 | |
96 | %dir %{_sysconfdir}/pkcs11/modules | |
f1dada4a JB |
97 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pkcs11/pkcs11.conf |
98 | # XXX: shared dir (gnome-keyring, opencryptoki, opensc) | |
99 | %dir %{_libdir}/pkcs11 | |
100 | %attr(755,root,root) %{_libdir}/pkcs11/p11-kit-trust.so | |
eff521a9 JB |
101 | %dir %{_libdir}/p11-kit |
102 | %attr(755,root,root) %{_libdir}/p11-kit/p11-kit-extract-trust | |
f1dada4a | 103 | %dir %{_datadir}/p11-kit |
f1dada4a JB |
104 | %dir %{_datadir}/p11-kit/modules |
105 | %{_datadir}/p11-kit/modules/p11-kit-trust.module | |
c157090e JB |
106 | |
107 | %files devel | |
108 | %defattr(644,root,root,755) | |
109 | %attr(755,root,root) %{_libdir}/libp11-kit.so | |
110 | %{_includedir}/p11-kit-1 | |
111 | %{_pkgconfigdir}/p11-kit-1.pc | |
112 | ||
c157090e JB |
113 | %if %{with apidocs} |
114 | %files apidocs | |
115 | %defattr(644,root,root,755) | |
116 | %{_gtkdocdir}/p11-kit | |
117 | %endif |