## 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 26 %bcond_without check # the only binary we provide now is conformance, which does not do anything useful %global cargo_install_bin 0 # prevent library files from being installed %global cargo_install_lib 0 %global revision 8f237689e245d7a1341d43521b987cd8419f9545 %global short_revision 8f237689 %global revision_date 20241025 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 # 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 Patch1: kryoptic-32b.patch BuildRequires: cargo-rpm-macros >= 26 BuildRequires: openssl-devel %global _description %{expand: A PKCS #11 software token written in Rust.} %description %{_description} %prep %autosetup -n %{name}-%{revision} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -f dynamic %build CONFDIR=%{_sysconfdir} %cargo_build -f dynamic %{cargo_license_summary -f dynamic} %{cargo_license -f dynamic} > LICENSE.dependencies %install %cargo_install -f dynamic install -Dp target/rpm/libkryoptic_pkcs11.so $RPM_BUILD_ROOT/%{_libdir}/libkryoptic_pkcs11.so %if %{with check} %check %cargo_test -f dynamic %endif %files %license LICENSE.txt %license LICENSE.dependencies %doc README.md %doc dummy.txt %{_libdir}/libkryoptic_pkcs11.so %changelog ## START: Generated by rpmautospec * Tue Oct 29 2024 Jakub Jelen - 0.1.0^20241025.git8f237689-1 - Uncommitted changes * Tue Sep 17 2024 Jakub Jelen - 0.1.0^20240917.git1416ec9d-1 - Initial commit ## END: Generated by rpmautospec