# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate r-efi # compile and run tests only on supported architectures %global unsupported_arches ppc64le s390x Name: rust-r-efi Version: 7.2.0 Release: %autorelease Summary: UEFI Reference Specification Protocol Constants and Definitions License: MIT OR Apache-2.0 OR LGPL-2.1-or-later URL: https://crates.io/crates/r-efi Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: UEFI Reference Specification Protocol Constants and Definitions.} %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 # FIXME: no license files detected %doc %{crate_instdir}/AUTHORS %doc %{crate_instdir}/NEWS.md %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}+core-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+core-devel %{_description} This package contains library source intended for building other packages which use the "core" feature of the "%{crate}" crate. %files -n %{name}+core-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+native-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+native-devel %{_description} This package contains library source intended for building other packages which use the "native" feature of the "%{crate}" crate. %files -n %{name}+native-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rustc-dep-of-std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rustc-dep-of-std-devel %{_description} This package contains library source intended for building other packages which use the "rustc-dep-of-std" feature of the "%{crate}" crate. %files -n %{name}+rustc-dep-of-std-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %ifnarch %{unsupported_arches} %cargo_build %endif %install %cargo_install %if %{with check} %ifnarch %{unsupported_arches} %check %cargo_test %endif %endif %changelog %autochangelog