## 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 28 %bcond check 1 %global debug_package %{nil} %global crate salsa Name: rust-salsa Version: 0.28.2 Release: %autorelease Summary: Generic framework for on-demand, incrementalized computation License: Apache-2.0 OR MIT URL: https://crates.io/crates/salsa Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Remove benchmark-only dev-dependency on codspeed-divan-compat # * Allow older test-log 0.2.19 for now; upstream pinned 0.2.21, but none of the # changes are actually required. See # https://bugzilla.redhat.com/show_bug.cgi?id=2459446. Patch: salsa-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 BuildRequires: tomcli %global _description %{expand: A generic framework for on-demand, incrementalized computation (experimental).} %description %{_description} %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-APACHE %license %{crate_instdir}/LICENSE-MIT %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/FAQ.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}+accumulator-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+accumulator-devel %{_description} This package contains library source intended for building other packages which use the "accumulator" feature of the "%{crate}" crate. %files -n %{name}+accumulator-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+compact_str-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+compact_str-devel %{_description} This package contains library source intended for building other packages which use the "compact_str" feature of the "%{crate}" crate. %files -n %{name}+compact_str-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+detailed-trace-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+detailed-trace-devel %{_description} This package contains library source intended for building other packages which use the "detailed-trace" feature of the "%{crate}" crate. %files -n %{name}+detailed-trace-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+inventory-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+inventory-devel %{_description} This package contains library source intended for building other packages which use the "inventory" feature of the "%{crate}" crate. %files -n %{name}+inventory-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+macros-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+macros-devel %{_description} This package contains library source intended for building other packages which use the "macros" feature of the "%{crate}" crate. %files -n %{name}+macros-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+ordermap-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ordermap-devel %{_description} This package contains library source intended for building other packages which use the "ordermap" feature of the "%{crate}" crate. %files -n %{name}+ordermap-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+persistence-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+persistence-devel %{_description} This package contains library source intended for building other packages which use the "persistence" feature of the "%{crate}" crate. %files -n %{name}+persistence-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rayon-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rayon-devel %{_description} This package contains library source intended for building other packages which use the "rayon" feature of the "%{crate}" crate. %files -n %{name}+rayon-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+salsa_unstable-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+salsa_unstable-devel %{_description} This package contains library source intended for building other packages which use the "salsa_unstable" feature of the "%{crate}" crate. %files -n %{name}+salsa_unstable-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+triomphe-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+triomphe-devel %{_description} This package contains library source intended for building other packages which use the "triomphe" feature of the "%{crate}" crate. %files -n %{name}+triomphe-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 # Upstream pinned all dev-dependencies to exact versions in # https://github.com/salsa-rs/salsa/pull/1116. We must use what we have; at # least loosen them to SemVer bounds! Automate this since it is tedious. # # https://github.com/salsa-rs/salsa/pull/1116#issuecomment-4796236958 tomcli get Cargo.toml dev-dependencies --formatter newline-keys | while read -r dd do tomcli set Cargo.toml str "dev-dependencies.${dd}.version" "$( tomcli get Cargo.toml "dev-dependencies.${dd}.version" | sed --regexp-extended 's/^=//' )" done %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Mon Aug 03 2026 Benjamin A. Beasley - 0.28.2-1 - Update to version 0.28.2; Fixes RHBZ#2499482 * Fri Jul 17 2026 Fedora Release Engineering - 0.27.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Mon Jul 13 2026 Benjamin A. Beasley - 0.27.2-3 - No longer omit annotate-snippets dev-dependency, calc example * Thu Jun 25 2026 Benjamin A. Beasley - 0.27.2-2 - Fix source upload * Thu Jun 25 2026 Benjamin A. Beasley - 0.27.2-1 - Update to version 0.27.2; Fixes RHBZ#2492104 * Fri Jun 05 2026 Benjamin A. Beasley - 0.27.0-1 - Update to version 0.27.0; Fixes RHBZ#2484636 * Sat May 09 2026 Benjamin A. Beasley - 0.26.2-2 - Bump release to preserve ordering with diverged F42 branch * Tue May 05 2026 Benjamin A. Beasley - 0.26.2-1 - Update to 0.26.2 * Tue May 05 2026 Benjamin A. Beasley - 0.26.1-3 - Skip memory usage tests on 32-bit (non-64-bit) targets * Tue May 05 2026 Benjamin A. Beasley - 0.26.1-2 - Remove outdated RELEASES.md file; exclude a few more files * Tue May 05 2026 Benjamin A. Beasley - 0.26.1-1 - Initial package (close RHBZ#2463223) ## END: Generated by rpmautospec