## START: Set by rpmautospec ## (rpmautospec version 0.7.2) ## 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 # no rust libraries installed %global cargo_install_lib 0 %global revision 1416ec9d4b751c21dc66ad5c66595c422665bf6d %global short_revision 1416ec9d %global revision_date 20240917 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 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 %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 Sep 17 2024 Jakub Jelen - 0.1.0^20240917.git1416ec9d-1 - Uncommitted changes * Tue Sep 17 2024 Jakub Jelen - 0.1.0^20240916.git6e43cc00-1 - Initial commit ## END: Generated by rpmautospec