# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate openxr-sys Name: rust-openxr-sys Version: 0.9.3 Release: %autorelease Summary: OpenXR FFI bindings # Upstream license specification: MIT/Apache-2.0 License: MIT OR Apache-2.0 URL: https://crates.io/crates/openxr-sys Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: openxr-sys-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes Patch: openxr-sys-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: OpenXR FFI 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 %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}+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}+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 # Drop vendored copy of openxr rm -r OpenXR-SDK %cargo_prep %generate_buildrequires %cargo_generate_buildrequires echo 'openxr-devel' %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog