## START: Set by rpmautospec ## (rpmautospec version 0.8.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 # Generated by rust2rpm 27 %bcond check 1 # Enable gpg signature verification by default %bcond gpgcheck 1 %global soname libkryoptic_pkcs11 %global features kryoptic-lib/nssdb,kryoptic-lib/pqc,kryoptic-lib/standard,kryoptic-lib/dynamic Name: kryoptic Version: 1.4.0 Release: %autorelease Summary: PKCS #11 software token written in Rust SourceLicense: GPL-3.0-or-later # Apache-2.0 # Apache-2.0 OR BSL-1.0 # Apache-2.0 OR MIT # BSD-3-Clause # GPL-3.0-or-later # ISC # MIT # MIT OR Apache-2.0 # MIT-0 OR Apache-2.0 # Unlicense OR MIT # Zlib License: Apache-2.0 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (BSD-3-Clause) AND (GPL-3.0-or-later) AND (ISC) AND (MIT) AND (MIT OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND (Unlicense OR MIT) AND (Zlib) # LICENSE.dependencies contains a full license breakdown URL: https://github.com/latchset/kryoptic Source0: https://github.com/latchset/kryoptic/releases/download/v%{version}/%{name}-%{version}.tar.gz %if %{with gpgcheck} Source1: https://github.com/latchset/kryoptic/releases/download/v%{version}/%{name}-%{version}.tar.gz.asc Source2: https://people.redhat.com/~ssorce/simo_redhat.asc %endif # Relax asn1 requirement versions Patch: kryoptic-fix-metadata.diff Patch: kryoptic-cryptoki-0.11.patch BuildRequires: cargo-rpm-macros >= 26 BuildRequires: openssl-devel %if %{with gpgcheck} BuildRequires: gnupg2 %endif %global _description %{expand: A PKCS #11 software token written in Rust.} %description %{_description} %package tools Requires: %{name}%{?_isa} = %{version}-%{release} Summary: Supporting tools for kryoptic software token %description tools Supporting tools for kryoptic software token. Most notably a migration tool for the SoftHSM database. %prep %if %{with gpgcheck} %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %endif %autosetup -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -f %{features} %build export CONFDIR=%{_sysconfdir} %cargo_build -f %{features} -- --package kryoptic %cargo_build -f %{features} -- --package kryoptic-tools %{cargo_license_summary -f %{features}} %{cargo_license -f %{features}} > LICENSE.dependencies %install install -Dp target/rpm/softhsm_migrate $RPM_BUILD_ROOT%{_bindir}/softhsm_migrate install -Dp target/rpm/%{soname}.so $RPM_BUILD_ROOT%{_libdir}/pkcs11/%{soname}.so mkdir -p $RPM_BUILD_ROOT%{_datadir}/p11-kit/modules/ echo "module: %{soname}.so" > $RPM_BUILD_ROOT%{_datadir}/p11-kit/modules/kryoptic.module %if %{with check} %check %cargo_test -f %{features} %endif %files %license LICENSE.txt %license LICENSE.dependencies %doc README.md %dir %{_libdir}/pkcs11 %{_libdir}/pkcs11/%{soname}.so # Co-owned with p11-kit so it is not hard dependency %dir %{_datadir}/p11-kit %dir %{_datadir}/p11-kit/modules %{_datadir}/p11-kit/modules/kryoptic.module %files tools %{_bindir}/softhsm_migrate %changelog ## START: Generated by rpmautospec * Wed Jan 07 2026 Jakub Jelen - 1.4.0-2 - Uncommitted changes * Tue Dec 09 2025 Jakub Jelen - 1.4.0-1 - kryoptic-1.4.0-1 * Thu Nov 20 2025 Fabio Valentini - 1.3.1-3 - Minor packaging cleanups (avoid compiling again in %%%%install) * Mon Oct 13 2025 Jakub Jelen - 1.3.1-2 - Backport fixes for simple KDFs * Fri Sep 19 2025 Jakub Jelen - 1.3.1-1 - New upstream release 1.3.1 (#2396548) * Thu Jul 31 2025 Jakub Jelen - 1.2.0-5 - Pull upstream patch to fix NSS DB and incompatible attributes * Thu Jul 31 2025 Jakub Jelen - 1.2.0-4 - Fix comment for patch relaxing rust dependencies * Thu Jul 24 2025 Fedora Release Engineering - 1.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Thu Jun 19 2025 Jakub Jelen - 1.2.0-2 - Relax rust dependencies requirements for cryptoki and asn1 crates * Mon Jun 09 2025 Jakub Jelen - 1.2.0-1 - kryoptic-1.2.0-1 (#2371228) * Mon Apr 14 2025 Jakub Jelen - 1.1.0-1 - Update to next upstream release 1.1.0 * Mon Mar 17 2025 Jakub Jelen - 1.0.0-2 - Fix SPDX licence identifier * Tue Mar 11 2025 Jakub Jelen - 1.0.0-1 - 1.0.0 release * Wed Feb 26 2025 Jakub Jelen - 0.1.0^20250225.gitb37f7ee-3 - Install kryoptic to p11-kit registry * Tue Feb 25 2025 Jakub Jelen - 0.1.0^20250225.gitb37f7ee-2 - Update source in the rust2rpm conf * Tue Feb 25 2025 Jakub Jelen - 0.1.0^20250225.gitb37f7ee-1 - Update spec file based on the post-review comments * Tue Feb 25 2025 Jakub Jelen - 0.1.0^20250225.gitb37f7ee1-2 - Add sources * Tue Feb 25 2025 Jakub Jelen - 0.1.0^20250225.gitb37f7ee1-1 - Initial commit ## END: Generated by rpmautospec