# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate openxr Name: rust-openxr Version: 0.19.0 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 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 %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}+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 %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 %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog