# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate ash %global upstream_version 0.38.0+1.3.281 Name: rust-ash Version: 0.38.0 Release: %autorelease Summary: Vulkan bindings for Rust License: MIT OR Apache-2.0 URL: https://crates.io/crates/ash Source: %{crates_source %{crate} %{upstream_version}} # Automatically generated patch to strip dependencies and normalize metadata Patch: ash-fix-metadata-auto.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Vulkan bindings for Rust.} %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 %license %{crate_instdir}/LICENSE-APACHE %license %{crate_instdir}/LICENSE-MIT %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}+debug-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+debug-devel %{_description} This package contains library source intended for building other packages which use the "debug" feature of the "%{crate}" crate. %files -n %{name}+debug-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}+std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+std-devel %{_description} This package contains library source intended for building other packages which use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{upstream_version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check # * Skip the doctests %cargo_test -- --lib %cargo_test -- --tests %endif %changelog %autochangelog