## START: Set by rpmautospec ## (rpmautospec version 0.6.3) ## 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 26 %bcond_without check %global crate scraper Name: rust-scraper Version: 0.19.0 Release: %autorelease Summary: HTML parsing and querying with CSS selectors License: ISC URL: https://crates.io/crates/scraper Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: HTML parsing and querying with CSS selectors.} %description %{_description} %package -n %{crate} Summary: %{summary} # Apache-2.0 OR MIT # BSD-2-Clause OR Apache-2.0 OR MIT # ISC # MIT # MIT OR Apache-2.0 # MPL-2.0 # Unlicense OR MIT License: (Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND ISC AND MIT AND MPL-2.0 AND (Unlicense OR MIT) # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %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}+atomic-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+atomic-devel %{_description} This package contains library source intended for building other packages which use the "atomic" feature of the "%{crate}" crate. %files -n %{name}+atomic-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}+errors-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+errors-devel %{_description} This package contains library source intended for building other packages which use the "errors" feature of the "%{crate}" crate. %files -n %{name}+errors-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} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Wed May 15 2024 John Doe - 0.19.0-1 - Uncommitted changes ## END: Generated by rpmautospec