# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate openxr-sys Name: rust-openxr-sys Version: 0.11.0 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} BuildRequires: cargo-rpm-macros >= 24 BuildRequires: pkgconfig(openxr) %global _description %{expand: OpenXR FFI bindings.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch Requires: pkgconfig(openxr) %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}+cmake-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cmake-devel %{_description} This package contains library source intended for building other packages which use the "cmake" feature of the "%{crate}" crate. %files -n %{name}+cmake-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 %package -n %{name}+static-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+static-devel %{_description} This package contains library source intended for building other packages which use the "static" feature of the "%{crate}" crate. %files -n %{name}+static-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep # Remove bundled OpenXR-SDK rm -rf OpenXR-SDK %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog