## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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 28 %bcond check 1 %global crate siguldry-pkcs11 Name: rust-siguldry-pkcs11 Version: 2.0.0 Release: %autorelease Summary: Minimal PKCS#11 module to sign content using a Siguldry server License: MIT URL: https://crates.io/crates/siguldry-pkcs11 Source: %{crates_source} # * registration file for p11-kit Source10: p11-kit.module # Manually created patch for downstream crate metadata changes # * Omit integration tests that expect to run in the workspace # * Be flexible with allowed version of asn1, RHBZ#2402490 Patch: siguldry-pkcs11-fix-metadata.diff # It's not written or tested with 32-bit architectures in mind. # # It is expected to run in environments where kernels are built, # but we don't build any 32-bit kernels. # # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A minimal PKCS#11 module that implements the interfaces required to sign content using the Siguldry server.} %description %{_description} %package -n %{crate} Summary: %{summary} # (MIT OR Apache-2.0) AND Unicode-DFS-2016 # Apache-2.0 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # BSD-2-Clause OR Apache-2.0 OR MIT # BSD-3-Clause # BSL-1.0 # ISC # LGPL-2.0-or-later # MIT # MIT OR Apache-2.0 # Unicode-3.0 # Unlicense OR MIT License: %{shrink: MIT AND Apache-2.0 AND BSD-3-Clause AND BSL-1.0 AND ISC AND LGPL-2.0-or-later AND Unicode-3.0 AND Unicode-DFS-2016 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (Unlicense OR MIT) } # LICENSE.dependencies contains a full license breakdown Requires: siguldry >= 0.6.0 %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %doc CHANGELOG.md %doc README.md %{_libdir}/pkcs11/libsiguldry_pkcs11.so %{_datadir}/p11-kit/modules/siguldry.module # These are all co-owned with p11-kit and pkcs11 modules %dir %{_datadir}/p11-kit %dir %{_datadir}/p11-kit/modules %dir %{_libdir}/pkcs11 %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install install -D -p -m 0755 target/rpm/libsiguldry_pkcs11.so %{buildroot}%{_libdir}/pkcs11/libsiguldry_pkcs11.so install -D -p -m 0644 %{SOURCE10} %{buildroot}%{_datadir}/p11-kit/modules/siguldry.module %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Mon Apr 06 2026 Jeremy Cline - 2.0.0-3 - Widen supported dependencies for asn1 and siguldry * Fri Mar 27 2026 Jeremy Cline - 2.0.0-2 - Exclude the build from i686 * Fri Mar 27 2026 Jeremy Cline - 2.0.0-1 - Initial import (rhbz #2448376) ## END: Generated by rpmautospec