# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate quote-use-macros Name: rust-quote-use-macros Version: 0.8.4 Release: %autorelease Summary: Support use in procmacros hygienically License: MIT URL: https://crates.io/crates/quote-use-macros Source: %{crates_source} # * Add a license file # * https://github.com/ModProg/quote-use/pull/8 # * https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/#_license_text # * Text and copyright statement based on # https://github.com/rust-lang/rust/raw/refs/tags/1.90.0/LICENSE-MIT, with # “The Rust Project Contributors” replaced by “Roland Fredenhagen,” as # @ModProg appears to be the sole contributor. Source10: https://github.com/ModProg/quote-use/raw/e4b59902f6af22b8317714e4e7ec695c0fc9e621/LICENSE BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Support `use` in procmacros hygienically.} %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 %prep %autosetup -n %{crate}-%{version} -p1 # Copy the proposed license file into the source. cp -p '%{SOURCE10}' . %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog