## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 # prevent library files from being installed %global cargo_install_lib 0 %global revision b37f7ee15473f0b7c9546855136d8b5ec3db1750 %global short_revision b37f7ee1 %global revision_date 20250225 Name: kryoptic Version: 0.1.0^%{revision_date}.git%{short_revision} 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-2-Clause OR Apache-2.0 OR MIT # BSD-3-Clause # MIT # MIT OR Apache-2.0 # MIT-0 OR Apache-2.0 # Unlicense OR MIT License: Apache-2.0 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (BSD-3-Clause) AND (MIT) AND (MIT OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND (Unlicense OR MIT) # LICENSE.dependencies contains a full license breakdown URL: https://github.com/latchset/kryoptic Source: https://github.com/latchset/kryoptic/archive/%{revision}.zip BuildRequires: cargo-rpm-macros >= 26 BuildRequires: openssl-devel %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 %autosetup -n kryoptic-%{revision} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -f dynamic,nssdb,standard %build CONFDIR=%{_sysconfdir} %cargo_build -f dynamic,nssdb,standard %{cargo_license_summary -f dynamic,nssdb,standard} %{cargo_license -f dynamic,nssdb,standard} > LICENSE.dependencies %install %cargo_install -f dynamic,nssdb,standard install -Dp target/rpm/libkryoptic_pkcs11.so $RPM_BUILD_ROOT/%{_libdir}/libkryoptic_pkcs11.so rm -f $RPM_BUILD_ROOT/%{_bindir}/conformance %if %{with check} %check %cargo_test -f dynamic,nssdb,standard %endif %files %license LICENSE.txt %license LICENSE.dependencies %doc README.md %{_libdir}/libkryoptic_pkcs11.so %files tools %{_bindir}/softhsm_migrate %changelog ## START: Generated by rpmautospec * Tue Feb 25 2025 Jakub Jelen - 0.1.0^20250225.gitb37f7ee1-1 - Uncommitted changes * Mon Feb 24 2025 Jakub Jelen - 0.1.0^20250224.gite058fd73-1 - Pre-release version * Mon Feb 24 2025 Jakub Jelen - 0.1.0^20250224.git662f5d87-1 - Initial commit ## END: Generated by rpmautospec