# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate derive-where Name: rust-derive-where Version: 1.2.7 Release: %autorelease Summary: Deriving with custom trait bounds License: MIT OR Apache-2.0 URL: https://crates.io/crates/derive-where Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Deriving with custom trait bounds.} %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}/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}+nightly-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+nightly-devel %{_description} This package contains library source intended for building other packages which use the "nightly" feature of the "%{crate}" crate. %files -n %{name}+nightly-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+safe-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+safe-devel %{_description} This package contains library source intended for building other packages which use the "safe" feature of the "%{crate}" crate. %files -n %{name}+safe-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+zeroize-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+zeroize-devel %{_description} This package contains library source intended for building other packages which use the "zeroize" feature of the "%{crate}" crate. %files -n %{name}+zeroize-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+zeroize-on-drop-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+zeroize-on-drop-devel %{_description} This package contains library source intended for building other packages which use the "zeroize-on-drop" feature of the "%{crate}" crate. %files -n %{name}+zeroize-on-drop-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep # remove executable bits from source files find -type f -executable -print -exec chmod -x {} + %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog