## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## 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 %global crate crypto-auditing-log-parser %if 0%{?rhel} # RHEL: Use bundled deps as it doesn't ship Rust libraries %global bundled_rust_deps 1 %global __brp_mangle_shebangs_exclude_from ^/usr/src/debug/.*$ %else # Fedora: Use only system Rust libraries %global bundled_rust_deps 0 %endif Name: rust-crypto-auditing-log-parser Version: 0.3.2 Release: %autorelease Summary: Event log parser for crypto-auditing project License: GPL-3.0-or-later URL: https://crates.io/crates/crypto-auditing-log-parser Source0: %{crates_source} # Generated using cargo-vendor-filterer: # spectool -g rust-crypto-auditing-log-parser.spec # tar xf %{crate}-%{version}.crate # pushd %{crate}-%{version} # cargo vendor-filterer --platform x86_64-unknown-linux-gnu \ # --platform powerpc64le-unknown-linux-gnu \ # --platform aarch64-unknown-linux-gnu \ # --platform i686-unknown-linux-gnu \ # --platform s390x-unknown-linux-gnu \ # --all-features Source1: %{crate}-%{version}-vendor.tar.xz Source2: query.conf %if 0%{?bundled_rust_deps} BuildRequires: rust-toolset BuildRequires: clang %else BuildRequires: cargo-rpm-macros >= 24 %endif %global _description %{expand: Event log parser for crypto-auditing project.} %description %{_description} %package -n %{crate} Summary: %{summary} # Upstream license specification: GPL-3.0-or-later # # The build dependencies have the following licenses: # # Apache-2.0 OR BSL-1.0 # Apache-2.0 OR MIT # GPL-3.0-or-later # MIT # MIT OR Apache-2.0 # Unlicense OR MIT # License: GPL-3.0-or-later AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND MIT AND (MIT OR Apache-2.0) AND (Unlicense OR MIT) # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %doc README.md %{_bindir}/crau-query %config(noreplace) %{_sysconfdir}/crypto-auditing/query.conf %dir %{_sysconfdir}/crypto-auditing/ %prep %autosetup -n %{crate}-%{version} -p1 %{?bundled_rust_deps:-a1} %if 0%{?bundled_rust_deps} %cargo_prep -v vendor %else %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %endif %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/crypto-auditing install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/crypto-auditing %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Tue Sep 15 2026 Sahana Prasad - 0.3.2-1 - Initial commit on c10s Resolves: RHEL-212862 * Tue Aug 18 2026 Johnny Hughes - RPMAUTOSPEC: unresolvable merge ## END: Generated by rpmautospec