# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate datatest-stable Name: rust-datatest-stable Version: 0.3.3 Release: %autorelease Summary: Data-driven tests that work on stable Rust License: MIT OR Apache-2.0 URL: https://crates.io/crates/datatest-stable Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Allow fancy-regex 0.13 (wants 0.14, latest as of this writing is 0.17): # https://bugzilla.redhat.com/show_bug.cgi?id=2321464 Patch: datatest-stable-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Data-driven tests that work on stable Rust.} %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}/CONTRIBUTING.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}+include-dir-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+include-dir-devel %{_description} This package contains library source intended for building other packages which use the "include-dir" feature of the "%{crate}" crate. %files -n %{name}+include-dir-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -f include-dir %build %cargo_build -f include-dir %install %cargo_install -f include-dir %if %{with check} %check # * Tests with run_example in their names require nextest (rust-cargo-nextest), # which is not packaged. %{cargo_test -f include-dir -- -- --exact %{shrink: --skip run_example --skip unix::run_example_with_colons }} %endif %changelog %autochangelog