# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate openxr Name: rust-openxr Version: 0.17.1 Release: %autorelease Summary: High-level, mostly-safe OpenXR bindings # Upstream license specification: MIT/Apache-2.0 License: MIT OR Apache-2.0 URL: https://crates.io/crates/openxr Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: openxr-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes Patch: openxr-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: High-level, mostly-safe OpenXR bindings.} %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 %{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}+libloading-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+libloading-devel %{_description} This package contains library source intended for building other packages which use the "libloading" feature of the "%{crate}" crate. %files -n %{name}+libloading-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+linked-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+linked-devel %{_description} This package contains library source intended for building other packages which use the "linked" feature of the "%{crate}" crate. %files -n %{name}+linked-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+loaded-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+loaded-devel %{_description} This package contains library source intended for building other packages which use the "loaded" feature of the "%{crate}" crate. %files -n %{name}+loaded-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 %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