## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 9; 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 # * Tests can only be run in the workspace %bcond check 0 %global crate crypto-auditing-agent Name: rust-crypto-auditing-agent Version: 0.3.0 Release: %autorelease Summary: Event collector agent for crypto-auditing project License: GPL-3.0-or-later URL: https://crates.io/crates/crypto-auditing-agent Source: %{crates_source} Source2: agent.conf Source3: crau-agent.service Source4: crypto-auditing.sysusers # Manually created patch for downstream crate metadata changes # * Remove unused direct dependency on nix: # https://github.com/latchset/crypto-auditing/pull/257 Patch: crypto-auditing-agent-fix-metadata.diff Patch10: rust-crypto-auditing-agent-0.2.4-no-probe.patch BuildRequires: cargo-rpm-macros >= 24 BuildRequires: kernel-devel BuildRequires: libbpf-devel BuildRequires: bpftool BuildRequires: systemd-rpm-macros # Neither kernel-devel nor kernel-tools (bpftool) supports 32-bit arches ExcludeArch: i386 i686 %global _description %{expand: Event collector agent 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: # # (MIT OR Apache-2.0) AND Unicode-DFS-2016 # Apache-2.0 # Apache-2.0 OR MIT # BSD-2-Clause # GPL-3.0-or-later # LGPL-2.1-only OR BSD-2-Clause # MIT # MIT OR Apache-2.0 # Unlicense OR MIT # License: %{shrink: GPL-3.0-or-later AND Apache-2.0 AND BSD-2-Clause AND MIT AND Unicode-DFS-2016 AND (Apache-2.0 OR MIT) AND (LGPL-2.1-only OR BSD-2-Clause) AND (Unlicense OR MIT) } # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.GPL-2.0 %license LICENSE.LGPL-2.1 %license LICENSE.dependencies %doc README.md %{_bindir}/crau-agent %attr(0755,root,root) %dir %{_sysconfdir}/crypto-auditing %config(noreplace) %{_sysconfdir}/crypto-auditing/agent.conf %dir %{_sysconfdir}/crypto-auditing/ %{_unitdir}/crau-agent.service %{_sysusersdir}/crypto-auditing.conf %attr(0755,crypto-auditing,crypto-auditing) %dir %{_localstatedir}/log/crypto-auditing %post -n %{crate} %systemd_post crau-agent.service %preun -n %{crate} %systemd_preun crau-agent.service %postun -n %{crate} %systemd_postun_with_restart crau-agent.service %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep # Use vmlinux.h from kernel-devel, instead of the one extracted with bpftool", cp $(rpm -ql kernel-devel | grep '/vmlinux.h$' | tail -1) src/bpf %generate_buildrequires %cargo_generate_buildrequires %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 mkdir -p $RPM_BUILD_ROOT%{_unitdir} install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_unitdir} mkdir -p $RPM_BUILD_ROOT%{_sysusersdir} install -p -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysusersdir}/crypto-auditing.conf mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/crypto-auditing %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Mon Mar 16 2026 Zbigniew Jędrzejewski-Szmek - 0.3.0-9 - Drop call to %%sysusers_create_compat * Mon Mar 16 2026 Benjamin A. Beasley - 0.3.0-8 - Drop unused direct dependency on nix * Mon Mar 16 2026 Benjamin A. Beasley - 0.3.0-6 - Update License based on current Rawhide dependencies * Mon Mar 16 2026 Benjamin A. Beasley - 0.3.0-5 - Use rust2rpm.toml for most spec-file customizations * Wed Mar 04 2026 Daiki Ueno - 0.3.0-3 - Complete rename of crau-agent.service * Wed Mar 04 2026 Daiki Ueno - 0.3.0-2 - Rename crypto-auditing-agent binary to crau-agent * Wed Mar 04 2026 Daiki Ueno - 0.3.0-1 - Update to 0.3.0 * Sat Feb 07 2026 Fabio Valentini - 0.2.4-4 - Rebuild for RUSTSEC-2026-{0007,0008,0009} and CVE-2026-25537 * Sat Jan 17 2026 Fedora Release Engineering - 0.2.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Wed Dec 03 2025 Daiki Ueno - 0.2.4-2 - Don't attempt to install no longer existing LICENSE.BSD-2-Clause * Wed Dec 03 2025 Daiki Ueno - 0.2.4-1 - Update to 0.2.4 * Tue Sep 02 2025 Fabio Valentini - 0.2.3-5 - Rebuild with tracing-subscriber v0.3.20 for CVE-2025-58160 * Fri Jul 25 2025 Fedora Release Engineering - 0.2.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Thu Feb 06 2025 Fabio Valentini - 0.2.3-3 - Rebuild for openssl crate >= v0.10.70 (RUSTSEC-2025-0004) * Sun Jan 19 2025 Fedora Release Engineering - 0.2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Oct 10 2024 Daiki Ueno - 0.2.3-1 - Update to 0.2.3 * Fri Jul 19 2024 Fedora Release Engineering - 0.2.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu May 23 2024 Fabio Valentini - 0.2.2-2 - Rebuild with Rust 1.78 to fix incomplete debuginfo and backtraces * Thu Apr 11 2024 Daiki Ueno - 0.2.2-1 - Update to 0.2.2 * Fri Jan 26 2024 Fedora Release Engineering - 0.2.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Dec 15 2023 Daiki Ueno - 0.2.1-5 - Remove changes written by rpmautospec * Fri Dec 15 2023 Daiki Ueno - 0.2.1-4 - Remove probe point in agent for testing * Fri Dec 15 2023 Daiki Ueno - 0.2.1-3 - Fix inference of __TARGET_ARCH_ on ppc64le and s390x * Thu Dec 14 2023 Daiki Ueno - 0.2.1-2 - Exclude 32-bit arches * Thu Dec 14 2023 Daiki Ueno - 0.2.1-1 - Initial import ## END: Generated by rpmautospec