]>
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 | |
915bb3cd | 8 | # NOTE: 0.22.x is stable, 0.23.x used to be unstable ...but current stable gnutls requires 0.23.x and 0.23.11+ is declared stable in NEWS |
b297801f | 9 | Version: 0.23.22 |
af323cce | 10 | Release: 1 |
c157090e JB |
11 | License: BSD |
12 | Group: Libraries | |
179fa236 | 13 | #Source0Download: https://github.com/p11-glue/p11-kit/releases |
b10d986d | 14 | Source0: https://github.com/p11-glue/p11-kit/releases/download/%{version}/%{name}-%{version}.tar.xz |
b297801f | 15 | # Source0-md5: 03f93a4eb62127b5d40e345c624a0665 |
428f7f55 | 16 | URL: https://p11-glue.github.io/p11-glue/p11-kit.html |
b10d986d | 17 | BuildRequires: gettext-tools >= 0.19.8 |
c157090e | 18 | BuildRequires: gtk-doc >= 1.15 |
f9bbd6bb | 19 | BuildRequires: libffi-devel >= 3.0.0 |
f1dada4a | 20 | BuildRequires: libtasn1-devel >= 2.14 |
1558d491 | 21 | BuildRequires: pkgconfig >= 1:0.29 |
f9bbd6bb | 22 | BuildRequires: pkgconfig(libffi) >= 3.0.0 |
b297801f JB |
23 | BuildRequires: rpm-build >= 4.6 |
24 | BuildRequires: rpmbuild(macros) >= 1.673 | |
63053cc8 | 25 | BuildRequires: systemd-devel >= 1:209 |
b10d986d JB |
26 | BuildRequires: tar >= 1:1.22 |
27 | BuildRequires: xz | |
dc5619c4 | 28 | Requires: filesystem >= 4.0-28 |
f1dada4a | 29 | Requires: libtasn1 >= 2.14 |
b2ed7d33 | 30 | Suggests: ca-certificates |
c157090e JB |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
34 | P11-KIT provides a way to load and enumerate PKCS#11 modules. It also | |
35 | provides a standard configuration setup for installing PKCS#11 modules | |
36 | in such a way that they-re discoverable. | |
37 | ||
38 | %description -l pl.UTF-8 | |
39 | P11-KIT zapewnia możliwość ładowania i numeracji modułów PKCS#11. | |
40 | Zapewnia też ustandaryzowaną konfigurację do instalowania modułów | |
41 | PKCS#11 w taki sposób, żeby były możliwe do wykrycia. | |
42 | ||
43 | %package devel | |
44 | Summary: Header files for P11-KIT library | |
45 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki P11-KIT | |
46 | Group: Development/Libraries | |
47 | Requires: %{name} = %{version}-%{release} | |
4fea1c3e | 48 | Obsoletes: p11-kit-static |
c157090e JB |
49 | |
50 | %description devel | |
51 | Header files for P11-KIT library. | |
52 | ||
53 | %description devel -l pl.UTF-8 | |
54 | Pliki nagłówkowe biblioteki P11-KIT. | |
55 | ||
c157090e JB |
56 | %package apidocs |
57 | Summary: P11-KIT API documentation | |
58 | Summary(pl.UTF-8): Dokumentacja API biblioteki P11-KIT | |
59 | Group: Documentation | |
60 | Requires: gtk-doc-common | |
25cbe104 | 61 | BuildArch: noarch |
c157090e JB |
62 | |
63 | %description apidocs | |
64 | API and internal documentation for P11-KIT library. | |
65 | ||
66 | %description apidocs -l pl.UTF-8 | |
67 | Dokumentacja API biblioteki P11-KIT. | |
68 | ||
b297801f JB |
69 | %package -n bash-completion-p11-kit |
70 | Summary: Bash completion for p11-kit commands | |
71 | Summary(pl.UTF-8): Bashowe uzupełnianie parametrów poleceń p11-kit | |
72 | Group: Applications/Shells | |
73 | Requires: %{name} = %{version}-%{release} | |
74 | Requires: bash-completion >= 2.0 | |
75 | BuildArch: noarch | |
76 | ||
77 | %description -n bash-completion-p11-kit | |
78 | Bash completion for p11-kit commands (p11-kit and trust). | |
79 | ||
80 | %description -n bash-completion-p11-kit -l pl.UTF-8 | |
81 | Bashowe uzupełnianie parametrów poleceń p11-kit (p11-kit i trust). | |
82 | ||
c157090e JB |
83 | %prep |
84 | %setup -q | |
85 | ||
86 | %build | |
87 | %configure \ | |
b297801f | 88 | bashcompdir=%{bash_compdir} \ |
c157090e JB |
89 | %{!?with_apidocs:--disable-gtk-doc} \ |
90 | --disable-silent-rules \ | |
f1dada4a | 91 | --with-html-dir=%{_gtkdocdir} \ |
b95fe767 | 92 | --with-trust-paths=/etc/certs/ca-certificates.crt |
c157090e JB |
93 | %{__make} |
94 | ||
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/pkcs11/modules | |
98 | ||
99 | %{__make} install \ | |
100 | DESTDIR=$RPM_BUILD_ROOT | |
101 | ||
102 | # obsoleted by pkg-config | |
103 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libp11-kit.la | |
f1dada4a JB |
104 | # dlopened module |
105 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/pkcs11/*.la | |
106 | ||
107 | %{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/pkcs11/pkcs11.conf{.example,} | |
c157090e JB |
108 | |
109 | %clean | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %post -p /sbin/ldconfig | |
113 | %postun -p /sbin/ldconfig | |
114 | ||
115 | %files | |
116 | %defattr(644,root,root,755) | |
117 | %doc AUTHORS COPYING ChangeLog NEWS README | |
118 | %attr(755,root,root) %{_bindir}/p11-kit | |
f9bbd6bb | 119 | %attr(755,root,root) %{_bindir}/trust |
c157090e JB |
120 | %attr(755,root,root) %{_libdir}/libp11-kit.so.*.*.* |
121 | %attr(755,root,root) %ghost %{_libdir}/libp11-kit.so.0 | |
122 | %attr(755,root,root) %{_libdir}/p11-kit-proxy.so | |
123 | %dir %{_sysconfdir}/pkcs11 | |
124 | %dir %{_sysconfdir}/pkcs11/modules | |
f1dada4a | 125 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pkcs11/pkcs11.conf |
179fa236 | 126 | %attr(755,root,root) %{_libdir}/pkcs11/p11-kit-client.so |
f1dada4a | 127 | %attr(755,root,root) %{_libdir}/pkcs11/p11-kit-trust.so |
fcee0593 JB |
128 | %dir %{_libexecdir}/p11-kit |
129 | %attr(755,root,root) %{_libexecdir}/p11-kit/p11-kit-remote | |
130 | %attr(755,root,root) %{_libexecdir}/p11-kit/p11-kit-server | |
131 | %attr(755,root,root) %{_libexecdir}/p11-kit/trust-extract-compat | |
f1dada4a | 132 | %dir %{_datadir}/p11-kit |
f1dada4a JB |
133 | %dir %{_datadir}/p11-kit/modules |
134 | %{_datadir}/p11-kit/modules/p11-kit-trust.module | |
63053cc8 JB |
135 | %{systemduserunitdir}/p11-kit-server.service |
136 | %{systemduserunitdir}/p11-kit-server.socket | |
c157090e JB |
137 | |
138 | %files devel | |
139 | %defattr(644,root,root,755) | |
140 | %attr(755,root,root) %{_libdir}/libp11-kit.so | |
141 | %{_includedir}/p11-kit-1 | |
142 | %{_pkgconfigdir}/p11-kit-1.pc | |
143 | ||
c157090e JB |
144 | %if %{with apidocs} |
145 | %files apidocs | |
146 | %defattr(644,root,root,755) | |
147 | %{_gtkdocdir}/p11-kit | |
148 | %endif | |
b297801f JB |
149 | |
150 | %files -n bash-completion-p11-kit | |
151 | %defattr(644,root,root,755) | |
152 | %{bash_compdir}/p11-kit | |
153 | %{bash_compdir}/trust |