| Name |
pkcs11-provider |
| Description |
A PKCS#11 provider for OpenSSL 3.0+ |
| Version |
1.0-1.fc42 |
| Package Base |
pkcs11-provider |
| Homepage |
https://github.com/latchset/pkcs11-provider |
| Maintainers |
['saprasad'] |
| Contributors |
[] |
| Distro-repo |
https://src.fedoraproject.org/rpms/pkcs11-provider/tree/f42 |
| Sources |
['%{url}/releases/download/v%{version}/%{name}-%{version}.tar.xz', '%{url}/releases/download/v%{version}/%{name}-%{version}.tar.xz.asc', 'https://people.redhat.com/~ssorce/simo_redhat.asc', 'pkcs11-provider.conf'] |
| Dependencies |
['libc.so.6', 'libcrypto.so.3', 'rtld'] |
| Optional-Dependencies |
[] |
| Build-Dependencies |
['expect', 'gcc', 'gnutls-utils', 'meson', 'nss-devel', 'nss-softokn', 'nss-softokn-devel', 'nss-tools', 'opensc', 'openssl', 'openssl-devel', 'p11-kit-devel', 'p11-kit-server', 'softhsm', 'xz'] |
| Provides |
['config(pkcs11-provider)', 'pkcs11-provider', 'pkcs11-provider(x86-64)'] |
| Builddate |
11-02-2025 20:04:47 |
| Architecture |
x86_64 |
| Distro-Version |
42 |
| Licenses |
['Apache-2.0'] |
| Hash |
d3286c12f484983363bae7c6a6ffb45858b624be46f31bc6483eb04a989234e1 |
#Enable gpg signature verification
%bcond_with gpgcheck
Name: pkcs11-provider
Version: 1.0
Release: %autorelease
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
Source3: pkcs11-provider.conf
BuildRequires: openssl-devel >= 3.0.7
BuildRequires: gcc
BuildRequires: meson
%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
%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
%meson
%meson_build
%install
%meson_install
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pki/tls/openssl.d
install -m644 '%{SOURCE3}' \
$RPM_BUILD_ROOT/%{_sysconfdir}/pki/tls/openssl.d/pkcs11-provider.conf
%check
# do not run them in parrallel with %{?_smp_mflags}
%meson_test --num-processes 1
%files
%license COPYING
%{_mandir}/man7/provider-pkcs11.*
%doc README.md
%{_libdir}/ossl-modules/pkcs11.so
%config(noreplace) %{_sysconfdir}/pki/tls/openssl.d/pkcs11-provider.conf
%changelog
%autochangelog