## 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 ingredients Name: rust-ingredients Version: 0.2.2 Release: %autorelease Summary: Check ingredients of published Rust crates License: MIT URL: https://crates.io/crates/ingredients Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Check ingredients of published Rust crates.} %description %{_description} %package -n %{crate} Summary: %{summary} # (MIT OR Apache-2.0) AND Unicode-DFS-2016 # Apache-2.0 # Apache-2.0 OR BSL-1.0 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # MIT # MIT OR Apache-2.0 # Unicode-3.0 # Unlicense OR MIT # Zlib License: %{shrink: MIT AND Apache-2.0 AND Unicode-DFS-2016 AND Unicode-3.0 AND Zlib AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (Unlicense OR MIT) } # LICENSE.dependencies contains a full license breakdown Requires: cargo Requires: git-core %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %doc CHANGELOG.md %doc README.md %{_bindir}/ingredients %{bash_completions_dir}/ingredients.bash %{fish_completions_dir}/ingredients.fish %{zsh_completions_dir}/_ingredients %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/README.md %{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+cli-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cli-devel %{_description} This package contains library source intended for building other packages which use the "cli" feature of the "%{crate}" crate. %files -n %{name}+cli-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -f cli %build %cargo_build -f cli %{cargo_license_summary -f cli} %{cargo_license -f cli} > LICENSE.dependencies %install %cargo_install -f cli # generate and install shell completions target/rpm/ingredients completions bash > ingredients.bash target/rpm/ingredients completions fish > ingredients.fish target/rpm/ingredients completions zsh > _ingredients install -Dpm 0644 ingredients.bash -t %{buildroot}/%{bash_completions_dir} install -Dpm 0644 ingredients.fish -t %{buildroot}/%{fish_completions_dir} install -Dpm 0644 _ingredients -t %{buildroot}/%{zsh_completions_dir} %if %{with check} %check %cargo_test -f cli %endif %changelog ## START: Generated by rpmautospec * Mon Mar 23 2026 Benjamin A. Beasley - 0.2.2-3 - Rebuilt with rust-tar 0.4.45 for CVE-2026-33056 * Sat Feb 07 2026 Fabio Valentini - 0.2.2-2 - Rebuild for RUSTSEC-2026-{0007,0008,0009} and CVE-2026-25537 * Thu Jan 22 2026 Fabio Valentini - 0.2.2-1 - Update to version 0.2.2 * Thu Jan 22 2026 Fabio Valentini - 0.2.0-1 - Initial import (#2431271) ## END: Generated by rpmautospec