# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate version-ranges Name: rust-version-ranges Version: 0.1.1 Release: %autorelease Summary: Performance-optimized type for generic version ranges and operations on them License: MPL-2.0 URL: https://crates.io/crates/version-ranges Source: %{crates_source} # * https://github.com/pubgrub-rs/pubgrub/pull/267 Source2: https://github.com/pubgrub-rs/pubgrub/raw/216f3fd/LICENSE # Manually created patch for downstream crate metadata changes # * downgrade ron dev-dependency to the available stable version # * drop incomplete package.include setting Patch: 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 cp %{SOURCE2} . %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog