## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec #Enable gpg signature verification %bcond_with gpgcheck Name: pkcs11-provider Version: 0.6 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 ## START: Generated by rpmautospec * Fri Nov 22 2024 Simo Sorce - 0.6-2 - Temporarily disable loading by default * Fri Nov 22 2024 Simo Sorce - 0.6-1 - Update to version 0.6 * Tue Aug 06 2024 Simo Sorce - 0.5-4 - Add automatic configuration on install * Fri Jul 19 2024 Fedora Release Engineering - 0.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jun 05 2024 Simo Sorce - 0.5-2 - Fix issue on i686 builds * Wed Jun 05 2024 Simo Sorce - 0.5-1 - Update to release 0.5 * Tue May 21 2024 Simo Sorce - 0.4-1 - Update to version 0.4 * Thu Jan 25 2024 Fedora Release Engineering - 0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Simo Sorce - 0.3-1 - Updato to version 0.3 * Sun Jan 21 2024 Fedora Release Engineering - 0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 18 2023 Sahana Prasad - 0.2-1 - Adding the sources and spec file to build the package Approved fedora review bug rhbz#2211754 ## END: Generated by rpmautospec