# Generated by rust2rpm 28 %bcond check 0 %global debug_package %{nil} %global crate macroquad Name: rust-macroquad Version: 0.4.14 Release: %autorelease Summary: Simple and easy to use graphics library License: MIT OR Apache-2.0 URL: https://crates.io/crates/macroquad Source: %{crates_source} # Manually created patch for downstream crate metadata changes Patch: macroquad-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Simple and easy to use graphics library.} %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}+audio-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+audio-devel %{_description} This package contains library source intended for building other packages which use the "audio" feature of the "%{crate}" crate. %files -n %{name}+audio-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+backtrace-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+backtrace-devel %{_description} This package contains library source intended for building other packages which use the "backtrace" feature of the "%{crate}" crate. %files -n %{name}+backtrace-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+glam-serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+glam-serde-devel %{_description} This package contains library source intended for building other packages which use the "glam-serde" feature of the "%{crate}" crate. %files -n %{name}+glam-serde-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+log-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+log-devel %{_description} This package contains library source intended for building other packages which use the "log" feature of the "%{crate}" crate. %files -n %{name}+log-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+log-rs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+log-rs-devel %{_description} This package contains library source intended for building other packages which use the "log-rs" feature of the "%{crate}" crate. %files -n %{name}+log-rs-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+quad-snd-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+quad-snd-devel %{_description} This package contains library source intended for building other packages which use the "quad-snd" feature of the "%{crate}" crate. %files -n %{name}+quad-snd-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