2023-07-18 09:21:20 +00:00
|
|
|
#Enable gpg signature verification
|
|
|
|
%bcond_with gpgcheck
|
|
|
|
|
|
|
|
Name: pkcs11-provider
|
2024-06-05 14:33:39 +00:00
|
|
|
Version: 0.5
|
2024-01-22 17:44:21 +00:00
|
|
|
Release: %autorelease
|
2023-07-18 09:21:20 +00:00
|
|
|
Summary: A PKCS#11 provider for OpenSSL 3.0+
|
|
|
|
License: Apache-2.0
|
|
|
|
URL: https://github.com/latchset/pkcs11-provider
|
|
|
|
Source0: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.xz
|
|
|
|
%if %{with gpgcheck}
|
|
|
|
Source1: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.xz.asc
|
|
|
|
Source2: https://people.redhat.com/~ssorce/simo_redhat.asc
|
|
|
|
%endif
|
|
|
|
|
|
|
|
BuildRequires: openssl-devel >= 3.0.7
|
|
|
|
BuildRequires: gcc
|
2024-05-21 17:29:34 +00:00
|
|
|
BuildRequires: meson
|
2023-07-18 09:21:20 +00:00
|
|
|
%if %{with gpgcheck}
|
|
|
|
BuildRequires: gnupg2
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# for tests
|
|
|
|
BuildRequires: nss-devel
|
|
|
|
BuildRequires: nss-softokn
|
|
|
|
BuildRequires: nss-softokn-devel
|
|
|
|
BuildRequires: nss-tools
|
|
|
|
BuildRequires: openssl
|
|
|
|
BuildRequires: softhsm
|
|
|
|
BuildRequires: opensc
|
|
|
|
BuildRequires: p11-kit-devel
|
|
|
|
BuildRequires: p11-kit-server
|
|
|
|
BuildRequires: gnutls-utils
|
|
|
|
BuildRequires: xz
|
|
|
|
BuildRequires: expect
|
|
|
|
|
2024-06-05 15:37:05 +00:00
|
|
|
Patch01: 0001-Fix-types-for-old-32-bit-systems.patch
|
2023-07-18 09:21:20 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This is an Openssl 3.x provider to access Hardware or Software Tokens using
|
|
|
|
the PKCS#11 Cryptographic Token Interface.
|
|
|
|
This code targets version 3.0 of the interface but should be backwards
|
|
|
|
compatible to previous versions as well.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%if %{with gpgcheck}
|
|
|
|
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
2024-05-21 17:29:34 +00:00
|
|
|
%meson
|
|
|
|
%meson_build
|
2023-07-18 09:21:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2024-05-21 17:29:34 +00:00
|
|
|
%meson_install
|
2023-07-18 09:21:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
# do not run them in parrallel with %{?_smp_mflags}
|
2024-05-21 17:29:34 +00:00
|
|
|
%meson_test --num-processes 1
|
2023-07-18 09:21:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license COPYING
|
|
|
|
%{_mandir}/man7/provider-pkcs11.*
|
|
|
|
%doc README.md
|
|
|
|
%{_libdir}/ossl-modules/pkcs11.so
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-01-22 17:44:21 +00:00
|
|
|
%autochangelog
|