## 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 string-interner # compile and run tests only on supported architectures %global unsupported_arches %{ix86} Name: rust-string-interner Version: 0.20.0 Release: %autorelease Summary: Efficient and fast string interner # Upstream license specification: MIT/Apache-2.0 License: MIT OR Apache-2.0 URL: https://crates.io/crates/string-interner Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop benchmarking dependencies like criterion Patch: string-interner-fix-metadata.diff # * Replace Apache license header with full license text Patch10: https://github.com/Robbepop/string-interner/pull/98.patch#/string-interner-use-full-apache-license-text.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Efficient string interner with minimal memory footprint and fast access to the underlying strings.} %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}/README.md %doc %{crate_instdir}/RELEASE_NOTES.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}+backends-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+backends-devel %{_description} This package contains library source intended for building other packages which use the "backends" feature of the "%{crate}" crate. %files -n %{name}+backends-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+inline-more-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+inline-more-devel %{_description} This package contains library source intended for building other packages which use the "inline-more" feature of the "%{crate}" crate. %files -n %{name}+inline-more-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-devel %{_description} This package contains library source intended for building other packages which use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+std-devel %{_description} This package contains library source intended for building other packages which use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+test-allocations-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+test-allocations-devel %{_description} This package contains library source intended for building other packages which use the "test-allocations" feature of the "%{crate}" crate. %files -n %{name}+test-allocations-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %ifnarch %{unsupported_arches} %cargo_build %endif %install %cargo_install %if %{with check} %ifnarch %{unsupported_arches} %check %cargo_test %endif %endif %changelog ## START: Generated by rpmautospec * Fri Sep 04 2026 Michel Lind - 0.20.0-1 - Update to version 0.20.0; Resolves RHBZ#2464187 * Fri Jul 17 2026 Fedora Release Engineering - 0.19.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Tue Mar 17 2026 Michel Lind - 0.19.0-2 - Skip build and test on 32-bit arches * Mon Mar 16 2026 Michel Lind - 0.19.0-1 - Initial package; Resolves RHBZ#2448249 ## END: Generated by rpmautospec