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)
13 BuildRequires: pkgconfig(libffi)
16 p11-kit provides a way to load and enumerate PKCS#11 modules, as well
17 as a standard configuration setup for installing PKCS#11 modules in
18 such a way that they're discoverable.
20 %package -n libp11-kit
21 Summary: Library to work with PKCS#11 modules
23 %description -n libp11-kit
24 p11-kit provides a way to load and enumerate PKCS#11 modules, as well
25 as a standard configuration setup for installing PKCS#11 modules in
26 such a way that they're discoverable.
29 Summary: Library to work with PKCS#11 modules -- Tools
32 p11-kit provides a way to load and enumerate PKCS#11 modules, as well
33 as a standard configuration setup for installing PKCS#11 modules in
34 such a way that they're discoverable.
37 Summary: Library to work with PKCS#11 modules -- Development Files
38 Requires: libp11-kit = %{version}
41 p11-kit provides a way to load and enumerate PKCS#11 modules, as well
42 as a standard configuration setup for installing PKCS#11 modules in
43 such a way that they're discoverable.
50 %configure --with-trust-paths=/etc/ssl/
55 # Create pkcs11 config directory
56 test ! -e %{buildroot}%{_sysconfdir}/pkcs11/modules
57 install -d %{buildroot}%{_sysconfdir}/pkcs11/modules
58 # Remove sample config away to doc folder. Having the sample there would conflict
59 # with future versions of the library on file level. As replacement, we package
60 # the file as documentation file.
61 rm %{buildroot}%{_sysconfdir}/pkcs11/pkcs11.conf.example
63 %post -n libp11-kit -p /sbin/ldconfig
65 %postun -n libp11-kit -p /sbin/ldconfig
68 %manifest %{name}.manifest
70 # Package the example conf file as documentation. Like this we're sure that we will
71 # not introduce conflicts with this version of the library and future ones.
72 %doc p11-kit/pkcs11.conf.example
74 %dir %{_sysconfdir}/pkcs11
75 %dir %{_sysconfdir}/pkcs11/modules/
76 %{_libdir}/libp11-kit.so.*
77 %{_libdir}/p11-kit-proxy.so
78 %dir %{_libdir}/pkcs11
79 %dir %{_libdir}/p11-kit
80 %{_libdir}/pkcs11/p11-kit-trust.so
81 %{_libdir}/p11-kit/p11-kit-extract-trust
82 %dir %_datadir/p11-kit
83 %dir %_datadir/p11-kit/modules
84 %_datadir/p11-kit/modules/p11-kit-trust.module
87 %manifest %{name}.manifest
92 %manifest %{name}.manifest
94 %{_includedir}/p11-kit-1/
95 %{_libdir}/libp11-kit.so
96 %{_libdir}/pkgconfig/p11-kit-1.pc
97 %doc %dir %{_datadir}/gtk-doc
98 %doc %dir %{_datadir}/gtk-doc/html
99 %doc %{_datadir}/gtk-doc/html/p11-kit/