# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate astral-version-ranges Name: rust-astral-version-ranges Version: 0.1.4 Release: %autorelease Summary: Performance-optimized type for generic version ranges and operations on them License: MPL-2.0 URL: https://crates.io/crates/astral-version-ranges Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Allow older versions of the ron dev-dependency until the rust-ron package # can be updated, https://bugzilla.redhat.com/show_bug.cgi?id=2391241. Upstream specifies 0.12; we allow as old as 0.10. Patch: astral-version-ranges-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Performance-optimized type for generic version ranges and operations on them.} %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 %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}+proptest-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+proptest-devel %{_description} This package contains library source intended for building other packages which use the "proptest" feature of the "%{crate}" crate. %files -n %{name}+proptest-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 %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog