# Generated by rust2rpm 24 %bcond_without check %global crate scraper Name: rust-scraper0.13 Version: 0.13.0 Release: %autorelease Summary: HTML parsing and querying with CSS selectors License: ISC URL: https://crates.io/crates/scraper Source: %{crates_source} BuildRequires: rust-packaging >= 21 %global _description %{expand: HTML parsing and querying with CSS selectors.} %description %{_description} %package -n %{crate} Summary: %{summary} %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %doc README.md %{_bindir}/scraper %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}+deterministic-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+deterministic-devel %{_description} This package contains library source intended for building other packages which use the "deterministic" feature of the "%{crate}" crate. %files -n %{name}+deterministic-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+getopts-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+getopts-devel %{_description} This package contains library source intended for building other packages which use the "getopts" feature of the "%{crate}" crate. %files -n %{name}+getopts-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+indexmap-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+indexmap-devel %{_description} This package contains library source intended for building other packages which use the "indexmap" feature of the "%{crate}" crate. %files -n %{name}+indexmap-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+main-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+main-devel %{_description} This package contains library source intended for building other packages which use the "main" feature of the "%{crate}" crate. %files -n %{name}+main-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -f main %build %cargo_build -f main %install %cargo_install -f main %if %{with check} %check %cargo_test -f main %endif %changelog %autochangelog