# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate pear Name: rust-pear Version: 0.2.9 Release: %autorelease Summary: Pear is a fruit # Upstream license specification: MIT/Apache-2.0 License: MIT OR Apache-2.0 URL: https://crates.io/crates/pear Source0: %{crates_source} # https://github.com/SergioBenitez/Pear/pull/33 (merged) Source1: https://raw.githubusercontent.com/SergioBenitez/Pear/master/LICENSE-APACHE Source2: https://raw.githubusercontent.com/SergioBenitez/Pear/master/LICENSE-MIT BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A pear is a fruit.} %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 %{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}+color-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+color-devel %{_description} This package contains library source intended for building other packages which use the "color" feature of the "%{crate}" crate. %files -n %{name}+color-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+yansi-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+yansi-devel %{_description} This package contains library source intended for building other packages which use the "yansi" feature of the "%{crate}" crate. %files -n %{name}+yansi-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 install -Dm 0644 %{SOURCE1} -t %{buildroot}%{crate_instdir} install -Dm 0644 %{SOURCE2} -t %{buildroot}%{crate_instdir} %if %{with check} %check %cargo_test %endif %changelog %autochangelog