# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate emath Name: rust-emath Version: 0.31.1 Release: %autorelease Summary: Minimal 2D math library for GUI work License: MIT OR Apache-2.0 URL: https://crates.io/crates/emath Source: %{crates_source} # License files are not bundled in the crate; tracked upstream: # https://github.com/emilk/egui/issues/7977 Source1: https://raw.githubusercontent.com/emilk/egui/master/LICENSE-MIT#/egui-LICENSE-MIT Source2: https://raw.githubusercontent.com/emilk/egui/master/LICENSE-APACHE#/egui-LICENSE-APACHE BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Minimal 2D math library for GUI work.} %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-MIT %license %{crate_instdir}/LICENSE-APACHE %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}+bytemuck-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bytemuck-devel %{_description} This package contains library source intended for building other packages which use the "bytemuck" feature of the "%{crate}" crate. %files -n %{name}+bytemuck-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+document-features-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+document-features-devel %{_description} This package contains library source intended for building other packages which use the "document-features" feature of the "%{crate}" crate. %files -n %{name}+document-features-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+mint-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+mint-devel %{_description} This package contains library source intended for building other packages which use the "mint" feature of the "%{crate}" crate. %files -n %{name}+mint-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-devel %{_description} This package contains library source intended for building other packages which use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 cp %{SOURCE1} LICENSE-MIT cp %{SOURCE2} LICENSE-APACHE %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install install -m 0644 LICENSE-MIT %{buildroot}/%{crate_instdir}/ install -m 0644 LICENSE-APACHE %{buildroot}/%{crate_instdir}/ %if %{with check} %check %cargo_test %endif %changelog %autochangelog