]> git.pld-linux.org Git - packages/p11-kit.git/blame - p11-kit.spec
- updated to 0.18.1
[packages/p11-kit.git] / p11-kit.spec
CommitLineData
c157090e
JB
1#
2# Conditional build:
3%bcond_without apidocs # do not build and package API docs
c157090e
JB
4#
5Summary: Library and proxy module for properly loading and sharing PKCS#11 modules
6Summary(pl.UTF-8): Biblioteka i moduł proxy do właściwego wczytywania i współdzielenia modułów PKCS#11
7Name: p11-kit
b95fe767 8# NOTE: 0.18.x is stable, 0.19.x unstable
eff521a9 9Version: 0.18.1
c157090e
JB
10Release: 1
11License: BSD
12Group: Libraries
13Source0: http://p11-glue.freedesktop.org/releases/%{name}-%{version}.tar.gz
eff521a9 14# Source0-md5: e4ef21592dbd126b62e1a6d4ad65ce5c
c157090e
JB
15URL: http://p11-glue.freedesktop.org/p11-kit.html
16BuildRequires: gtk-doc >= 1.15
f1dada4a
JB
17BuildRequires: libtasn1-devel >= 2.14
18Requires: libtasn1 >= 2.14
b2ed7d33 19Suggests: ca-certificates
c157090e
JB
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23P11-KIT provides a way to load and enumerate PKCS#11 modules. It also
24provides a standard configuration setup for installing PKCS#11 modules
25in such a way that they-re discoverable.
26
27%description -l pl.UTF-8
28P11-KIT zapewnia możliwość ładowania i numeracji modułów PKCS#11.
29Zapewnia też ustandaryzowaną konfigurację do instalowania modułów
30PKCS#11 w taki sposób, żeby były możliwe do wykrycia.
31
32%package devel
33Summary: Header files for P11-KIT library
34Summary(pl.UTF-8): Pliki nagłówkowe biblioteki P11-KIT
35Group: Development/Libraries
36Requires: %{name} = %{version}-%{release}
4fea1c3e 37Obsoletes: p11-kit-static
c157090e
JB
38
39%description devel
40Header files for P11-KIT library.
41
42%description devel -l pl.UTF-8
43Pliki nagłówkowe biblioteki P11-KIT.
44
c157090e
JB
45%package apidocs
46Summary: P11-KIT API documentation
47Summary(pl.UTF-8): Dokumentacja API biblioteki P11-KIT
48Group: Documentation
49Requires: gtk-doc-common
50
51%description apidocs
52API and internal documentation for P11-KIT library.
53
54%description apidocs -l pl.UTF-8
55Dokumentacja 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
69rm -rf $RPM_BUILD_ROOT
70install -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
83rm -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
This page took 0.078915 seconds and 4 git commands to generate.