# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate educe Name: rust-educe Version: 0.6.0 Release: %autorelease Summary: Procedural macros to implement Rust's built-in traits License: MIT URL: https://crates.io/crates/educe Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop dev-dependency assert-eq-float: not available in EPEL 10; only tests/ # in the upstream repository use it, and they are not in the published crate Patch: educe-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: This crate offers procedural macros designed to facilitate the swift implementation of Rust's built-in traits.} %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 %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}+Clone-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+Clone-devel %{_description} This package contains library source intended for building other packages which use the "Clone" feature of the "%{crate}" crate. %files -n %{name}+Clone-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+Copy-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+Copy-devel %{_description} This package contains library source intended for building other packages which use the "Copy" feature of the "%{crate}" crate. %files -n %{name}+Copy-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+Debug-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+Debug-devel %{_description} This package contains library source intended for building other packages which use the "Debug" feature of the "%{crate}" crate. %files -n %{name}+Debug-devel %ghost %{crate_instdir}/Cargo.toml %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}+Deref-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+Deref-devel %{_description} This package contains library source intended for building other packages which use the "Deref" feature of the "%{crate}" crate. %files -n %{name}+Deref-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+DerefMut-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+DerefMut-devel %{_description} This package contains library source intended for building other packages which use the "DerefMut" feature of the "%{crate}" crate. %files -n %{name}+DerefMut-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+Eq-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+Eq-devel %{_description} This package contains library source intended for building other packages which use the "Eq" feature of the "%{crate}" crate. %files -n %{name}+Eq-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+Hash-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+Hash-devel %{_description} This package contains library source intended for building other packages which use the "Hash" feature of the "%{crate}" crate. %files -n %{name}+Hash-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+Into-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+Into-devel %{_description} This package contains library source intended for building other packages which use the "Into" feature of the "%{crate}" crate. %files -n %{name}+Into-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+Ord-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+Ord-devel %{_description} This package contains library source intended for building other packages which use the "Ord" feature of the "%{crate}" crate. %files -n %{name}+Ord-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+PartialEq-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+PartialEq-devel %{_description} This package contains library source intended for building other packages which use the "PartialEq" feature of the "%{crate}" crate. %files -n %{name}+PartialEq-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+PartialOrd-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+PartialOrd-devel %{_description} This package contains library source intended for building other packages which use the "PartialOrd" feature of the "%{crate}" crate. %files -n %{name}+PartialOrd-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+full-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+full-devel %{_description} This package contains library source intended for building other packages which use the "full" feature of the "%{crate}" crate. %files -n %{name}+full-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 %if %{with check} %check %cargo_test %endif %changelog %autochangelog