5 Summary: Library to work with PKCS#11 modules
6 Url: http://p11-glue.freedesktop.org/p11-kit.html
7 Group: Security/Crypto Libraries
8 Source0: http://p11-glue.freedesktop.org/releases/%{name}-%{version}.tar.gz
9 Source99: baselibs.conf
10 Source1001: p11-kit.manifest
11 BuildRequires: pkg-config
12 BuildRequires: pkgconfig(libtasn1)
15 p11-kit provides a way to load and enumerate PKCS#11 modules, as well
16 as a standard configuration setup for installing PKCS#11 modules in
17 such a way that they're discoverable.
19 %package -n libp11-kit
20 Summary: Library to work with PKCS#11 modules
22 %description -n libp11-kit
23 p11-kit provides a way to load and enumerate PKCS#11 modules, as well
24 as a standard configuration setup for installing PKCS#11 modules in
25 such a way that they're discoverable.
28 Summary: Library to work with PKCS#11 modules -- Tools
31 p11-kit provides a way to load and enumerate PKCS#11 modules, as well
32 as a standard configuration setup for installing PKCS#11 modules in
33 such a way that they're discoverable.
36 Summary: Library to work with PKCS#11 modules -- Development Files
37 Requires: libp11-kit = %{version}
40 p11-kit provides a way to load and enumerate PKCS#11 modules, as well
41 as a standard configuration setup for installing PKCS#11 modules in
42 such a way that they're discoverable.
49 %configure --without-trust-paths
54 # Create pkcs11 config directory
55 test ! -e %{buildroot}%{_sysconfdir}/pkcs11/modules
56 install -d %{buildroot}%{_sysconfdir}/pkcs11/modules
57 # Remove sample config away to doc folder. Having the sample there would conflict
58 # with future versions of the library on file level. As replacement, we package
59 # the file as documentation file.
60 rm %{buildroot}%{_sysconfdir}/pkcs11/pkcs11.conf.example
62 %post -n libp11-kit -p /sbin/ldconfig
64 %postun -n libp11-kit -p /sbin/ldconfig
67 %manifest %{name}.manifest
69 # Package the example conf file as documentation. Like this we're sure that we will
70 # not introduce conflicts with this version of the library and future ones.
71 %doc p11-kit/pkcs11.conf.example
73 %dir %{_sysconfdir}/pkcs11
74 %dir %{_sysconfdir}/pkcs11/modules/
75 %{_libdir}/libp11-kit.so.*
76 %{_libdir}/p11-kit-proxy.so
77 %dir %{_libdir}/pkcs11
78 %dir %{_libdir}/p11-kit
79 %{_libdir}/pkcs11/p11-kit-trust.so
80 %{_libdir}/p11-kit/p11-kit-extract-trust
81 %dir %_datadir/p11-kit
82 %dir %_datadir/p11-kit/modules
83 %_datadir/p11-kit/modules/p11-kit-trust.module
86 %manifest %{name}.manifest
91 %manifest %{name}.manifest
93 %{_includedir}/p11-kit-1/
94 %{_libdir}/libp11-kit.so
95 %{_libdir}/pkgconfig/p11-kit-1.pc
96 %doc %dir %{_datadir}/gtk-doc
97 %doc %dir %{_datadir}/gtk-doc/html
98 %doc %{_datadir}/gtk-doc/html/p11-kit/