## 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 6166f28a939242ee454fc846de5ed87d2ac5a69c %global short_revision 6166f28a %global revision_date 20241219 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 # FIXME: paste output of %%cargo_license_summary here License: # FIXME # 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,nssdb,standard %build %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 # FIXME: install shared library %if %{with check} %check %cargo_test -f dynamic,nssdb,standard %endif %files %license LICENSE.txt %license LICENSE.dependencies %doc README.md %doc dummy.txt %{_bindir}/conformance %changelog ## START: Generated by rpmautospec * Thu Dec 19 2024 John Doe - 0.1.0^20241219.git6166f28a-1 - Uncommitted changes ## END: Generated by rpmautospec