2011-08-04 11:25:42 +02:00
|
|
|
#
|
|
|
|
# spec file for package p11-kit
|
|
|
|
#
|
2023-09-20 17:27:18 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2011-08-04 11:25:42 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-12-23 12:02:54 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-08-04 11:25:42 +02:00
|
|
|
#
|
|
|
|
|
2012-02-16 16:20:41 +01:00
|
|
|
|
2016-02-09 08:21:01 +01:00
|
|
|
%define pkidir_cfg %{_sysconfdir}/pki
|
|
|
|
%define pkidir_static %{_datadir}/pki
|
2013-06-25 09:36:47 +02:00
|
|
|
%define trustdir_cfg %{pkidir_cfg}/trust
|
|
|
|
%define trustdir_static %{pkidir_static}/trust
|
2011-08-04 11:25:42 +02:00
|
|
|
Name: p11-kit
|
Accepting request 1120796 from home:pmonrealgonzalez:branches:Base:System
- Update to 0.25.1:
* fix probing of C_GetInterface [#535]
* p11-kit: add command to list tokens [#581]
* p11-kit: add command to list mechanisms supported by a token [#576]
* p11-kit: add command to generate private-public keypair on a token
[#551, #582]
* p11-kit: add commands to import/export certificates and public
keys into/from a token [#543, #549, #568, #588]
* p11-kit: add commands to list and delete objects of a token
[#533, #544, #571]
* p11-kit: add --login option to login into a token with object
and profile management commands [#587]
* p11-kit: adjust behavior of PKCS#11 profile management commands
[#558, #560, #583, #591]
* p11-kit: print PKCS#11 URIs in list-modules [#532]
* bug and build fixes [#528 #529, #534, #537, #540, #541, #545,
#547, #550, #557, #572, #575, #579, #585, #586, #590]
* test fixes [#553, #580]
* Remove patch fixed upstream:
- d1d4b0ac316a27c739ff91e6c4153f1154e96e5a.patch
OBS-URL: https://build.opensuse.org/request/show/1120796
OBS-URL: https://build.opensuse.org/package/show/Base:System/p11-kit?expand=0&rev=56
2023-10-27 15:44:41 +02:00
|
|
|
Version: 0.25.1
|
2012-01-06 11:46:18 +01:00
|
|
|
Release: 0
|
2011-08-04 11:25:42 +02:00
|
|
|
Summary: Library to work with PKCS#11 modules
|
2012-01-06 11:46:18 +01:00
|
|
|
License: BSD-3-Clause
|
2011-08-04 11:25:42 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2020-04-15 09:35:23 +02:00
|
|
|
URL: https://p11-glue.freedesktop.org/p11-kit.html
|
2023-09-20 17:27:18 +02:00
|
|
|
Source0: https://github.com/p11-glue/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
|
|
|
|
Source1: https://github.com/p11-glue/%{name}/releases/download/%{version}/p11-kit-%{version}.tar.xz.sig
|
|
|
|
Source98: https://p11-glue.github.io/p11-glue/%{name}/%{name}-release-keyring.gpg#/%{name}.keyring
|
2011-08-04 11:25:42 +02:00
|
|
|
Source99: baselibs.conf
|
2015-03-18 17:41:54 +01:00
|
|
|
BuildRequires: gtk-doc
|
2023-09-20 17:27:18 +02:00
|
|
|
%if 0%{?suse_version} >= 1600
|
|
|
|
BuildRequires: libtasn1-tools
|
|
|
|
%else
|
|
|
|
BuildRequires: libtasn1
|
|
|
|
%endif
|
|
|
|
BuildRequires: meson >= 0.59.0
|
2020-04-15 09:35:23 +02:00
|
|
|
BuildRequires: pkgconfig
|
2013-06-25 09:36:47 +02:00
|
|
|
BuildRequires: pkgconfig(libffi) >= 3.0.0
|
2021-12-13 12:23:18 +01:00
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
2013-05-16 11:19:13 +02:00
|
|
|
BuildRequires: pkgconfig(libtasn1) >= 2.3
|
2021-12-13 12:23:18 +01:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2011-08-04 11:25:42 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
p11-kit provides a way to load and enumerate PKCS#11 modules, as well
|
|
|
|
as a standard configuration setup for installing PKCS#11 modules in
|
|
|
|
such a way that they're discoverable.
|
|
|
|
|
|
|
|
%package -n libp11-kit0
|
|
|
|
Summary: Library to work with PKCS#11 modules
|
|
|
|
Group: System/Libraries
|
2022-03-09 17:20:45 +01:00
|
|
|
Conflicts: p11-kit < %{version}-%{release}
|
2011-08-04 11:25:42 +02:00
|
|
|
|
|
|
|
%description -n libp11-kit0
|
|
|
|
p11-kit provides a way to load and enumerate PKCS#11 modules, as well
|
|
|
|
as a standard configuration setup for installing PKCS#11 modules in
|
|
|
|
such a way that they're discoverable.
|
|
|
|
|
|
|
|
%package tools
|
|
|
|
Summary: Library to work with PKCS#11 modules -- Tools
|
|
|
|
Group: Development/Libraries/C and C++
|
2022-03-09 17:20:45 +01:00
|
|
|
Conflicts: p11-kit < %{version}-%{release}
|
2011-08-04 11:25:42 +02:00
|
|
|
|
|
|
|
%description tools
|
|
|
|
p11-kit provides a way to load and enumerate PKCS#11 modules, as well
|
|
|
|
as a standard configuration setup for installing PKCS#11 modules in
|
|
|
|
such a way that they're discoverable.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Library to work with PKCS#11 modules -- Development Files
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libp11-kit0 = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
p11-kit provides a way to load and enumerate PKCS#11 modules, as well
|
|
|
|
as a standard configuration setup for installing PKCS#11 modules in
|
|
|
|
such a way that they're discoverable.
|
|
|
|
|
2013-07-03 11:21:14 +02:00
|
|
|
%package nss-trust
|
|
|
|
Summary: Adaptor to make NSS read the p11-kit trust store
|
|
|
|
Group: Productivity/Networking/Security
|
|
|
|
Requires: p11-kit = %{version}
|
|
|
|
Conflicts: mozilla-nss-certs
|
2020-10-05 16:27:33 +02:00
|
|
|
%if "%{_lib}" == "lib64"
|
2013-07-03 11:21:14 +02:00
|
|
|
Provides: libnssckbi.so()(64bit)
|
|
|
|
%else
|
2013-07-05 10:22:30 +02:00
|
|
|
Provides: libnssckbi.so
|
2013-07-03 11:21:14 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description nss-trust
|
|
|
|
Adaptor library to make NSS read the p11-kit trust store. It has
|
|
|
|
to be installed intead of mozilla-nss-certs.
|
|
|
|
|
2018-03-27 16:08:05 +02:00
|
|
|
%package server
|
|
|
|
Summary: Server and client commands for p11-kit
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description server
|
|
|
|
Command line tools that enable to export PKCS#11 modules through a
|
|
|
|
Unix domain socket. Note that this feature is still experimental.
|
|
|
|
|
2011-08-04 11:25:42 +02:00
|
|
|
%prep
|
2023-09-25 09:26:36 +02:00
|
|
|
%autosetup -p1
|
2011-08-04 11:25:42 +02:00
|
|
|
|
|
|
|
%build
|
2023-09-20 17:27:18 +02:00
|
|
|
%meson -Dtrust_paths=%{trustdir_cfg}:%{trustdir_static} \
|
|
|
|
-Dbash_completion=disabled \
|
|
|
|
-Dgtk_doc=true -Dman=true
|
|
|
|
%meson_build
|
2011-08-04 11:25:42 +02:00
|
|
|
|
|
|
|
%install
|
2023-09-20 17:27:18 +02:00
|
|
|
%meson_install
|
2013-06-25 09:36:47 +02:00
|
|
|
#
|
2022-02-08 09:57:25 +01:00
|
|
|
install -d m 755 %{buildroot}%{trustdir_cfg}/{anchors,blocklist}
|
|
|
|
install -d m 755 %{buildroot}%{trustdir_static}/{anchors,blocklist}
|
2011-08-04 11:25:42 +02:00
|
|
|
# Create pkcs11 config directory
|
|
|
|
test ! -e %{buildroot}%{_sysconfdir}/pkcs11/modules
|
|
|
|
install -d %{buildroot}%{_sysconfdir}/pkcs11/modules
|
2011-09-09 11:49:49 +02:00
|
|
|
# Remove sample config away to doc folder. Having the sample there would conflict
|
|
|
|
# with future versions of the library on file level. As replacement, we package
|
|
|
|
# the file as documentation file.
|
2023-09-20 17:27:18 +02:00
|
|
|
install -d m 755 %{buildroot}%{_docdir}/libp11-kit0
|
|
|
|
mv %{buildroot}%{_sysconfdir}/pkcs11/pkcs11.conf.example %{buildroot}%{_docdir}/libp11-kit0
|
2016-02-09 08:21:01 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2013-06-25 09:36:47 +02:00
|
|
|
#
|
2019-05-15 08:48:25 +02:00
|
|
|
install -d -m 755 %{buildroot}%{_rpmmacrodir}
|
|
|
|
cat <<'FIN' >%{buildroot}%{_rpmmacrodir}/macros.%{name}
|
2016-02-09 08:21:01 +01:00
|
|
|
# Macros from p11-kit package
|
2013-06-25 09:36:47 +02:00
|
|
|
%%pkidir_cfg %{pkidir_cfg}
|
|
|
|
%%pkidir_static %{pkidir_static}
|
|
|
|
%%trustdir_cfg %{trustdir_cfg}
|
|
|
|
%%trustdir_static %{trustdir_static}
|
|
|
|
FIN
|
2013-07-03 11:21:14 +02:00
|
|
|
#
|
2013-07-05 10:22:30 +02:00
|
|
|
# nss compat lib
|
2013-07-03 11:21:14 +02:00
|
|
|
ln -s %{_libdir}/pkcs11/p11-kit-trust.so %{buildroot}%{_libdir}/libnssckbi.so
|
2013-07-05 10:22:30 +02:00
|
|
|
#
|
|
|
|
# call update-ca-certificates when trust changes
|
2016-11-28 15:40:00 +01:00
|
|
|
rm %{buildroot}%{_libexecdir}/%{name}/trust-extract-compat
|
|
|
|
ln -s ../../sbin/update-ca-certificates %{buildroot}%{_libexecdir}/%{name}/p11-kit-extract-trust
|
2013-07-05 10:22:30 +02:00
|
|
|
export NO_BRP_STALE_LINK_ERROR=yes # *grr*
|
2023-09-20 17:27:18 +02:00
|
|
|
%find_lang %{name}
|
2011-08-04 11:25:42 +02:00
|
|
|
|
2022-09-13 09:49:07 +02:00
|
|
|
%if !0%{?qemu_user_space_build}
|
2016-02-09 08:21:01 +01:00
|
|
|
%check
|
2023-09-20 17:27:18 +02:00
|
|
|
%meson_test
|
2022-09-13 09:49:07 +02:00
|
|
|
%endif
|
2016-02-09 08:21:01 +01:00
|
|
|
|
2011-08-04 11:25:42 +02:00
|
|
|
%post -n libp11-kit0 -p /sbin/ldconfig
|
|
|
|
%postun -n libp11-kit0 -p /sbin/ldconfig
|
|
|
|
|
2023-09-20 17:27:18 +02:00
|
|
|
%files -f %{name}.lang
|
2013-04-02 12:33:56 +02:00
|
|
|
%dir %{_libdir}/pkcs11
|
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
%dir %{_datadir}/%{name}/modules
|
2013-06-25 09:36:47 +02:00
|
|
|
%dir %{pkidir_cfg}
|
|
|
|
%dir %{trustdir_cfg}
|
|
|
|
%dir %{trustdir_cfg}/anchors
|
2022-02-08 09:57:25 +01:00
|
|
|
%dir %{trustdir_cfg}/blocklist
|
2013-06-25 09:36:47 +02:00
|
|
|
%dir %{pkidir_static}
|
|
|
|
%dir %{trustdir_static}
|
|
|
|
%dir %{trustdir_static}/anchors
|
2022-02-08 09:57:25 +01:00
|
|
|
%dir %{trustdir_static}/blocklist
|
2013-04-02 12:33:56 +02:00
|
|
|
%{_datadir}/%{name}/modules/p11-kit-trust.module
|
2013-04-26 15:53:05 +02:00
|
|
|
%{_libdir}/pkcs11/p11-kit-trust.so
|
2016-11-28 15:40:00 +01:00
|
|
|
%dir %{_libexecdir}/%{name}
|
|
|
|
%{_libexecdir}/%{name}/p11-kit-remote
|
|
|
|
%{_libexecdir}/%{name}/p11-kit-extract-trust
|
2013-04-02 12:33:56 +02:00
|
|
|
|
2011-08-04 11:25:42 +02:00
|
|
|
%files -n libp11-kit0
|
2018-03-20 15:50:58 +01:00
|
|
|
%license COPYING
|
2011-09-09 11:49:49 +02:00
|
|
|
# Package the example conf file as documentation. Like this we're sure that we will
|
|
|
|
# not introduce conflicts with this version of the library and future ones.
|
2023-09-20 17:27:18 +02:00
|
|
|
%doc pkcs11.conf.example
|
2018-03-20 15:50:58 +01:00
|
|
|
%doc AUTHORS ChangeLog NEWS README
|
2011-09-09 11:49:49 +02:00
|
|
|
%dir %{_sysconfdir}/pkcs11
|
2011-08-04 11:25:42 +02:00
|
|
|
%dir %{_sysconfdir}/pkcs11/modules/
|
|
|
|
%{_libdir}/libp11-kit.so.*
|
|
|
|
%{_libdir}/p11-kit-proxy.so
|
|
|
|
|
|
|
|
%files tools
|
|
|
|
%{_bindir}/p11-kit
|
2013-08-23 11:46:13 +02:00
|
|
|
%{_bindir}/trust
|
2021-01-26 09:02:09 +01:00
|
|
|
%{_mandir}/man1/trust.1%{?ext_man}
|
|
|
|
%{_mandir}/man5/pkcs11.conf.5%{?ext_man}
|
|
|
|
%{_mandir}/man8/p11-kit.8%{?ext_man}
|
2011-08-04 11:25:42 +02:00
|
|
|
|
|
|
|
%files devel
|
2019-05-15 08:48:25 +02:00
|
|
|
%{_rpmmacrodir}/macros.%{name}
|
2011-08-04 11:25:42 +02:00
|
|
|
%{_includedir}/p11-kit-1/
|
|
|
|
%{_libdir}/libp11-kit.so
|
|
|
|
%{_libdir}/pkgconfig/p11-kit-1.pc
|
|
|
|
%doc %dir %{_datadir}/gtk-doc
|
|
|
|
%doc %dir %{_datadir}/gtk-doc/html
|
|
|
|
%doc %{_datadir}/gtk-doc/html/p11-kit/
|
|
|
|
|
2013-07-03 11:21:14 +02:00
|
|
|
%files nss-trust
|
|
|
|
%{_libdir}/libnssckbi.so
|
|
|
|
|
2018-03-27 16:08:05 +02:00
|
|
|
%files server
|
|
|
|
%{_libdir}/pkcs11/p11-kit-client.so
|
|
|
|
%{_libexecdir}/p11-kit/p11-kit-server
|
2021-12-13 12:23:18 +01:00
|
|
|
%{_userunitdir}/p11-kit-server.service
|
|
|
|
%{_userunitdir}/p11-kit-server.socket
|
2018-03-27 16:08:05 +02:00
|
|
|
|
2011-08-04 11:25:42 +02:00
|
|
|
%changelog
|