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