# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate cpal Name: rust-cpal Version: 0.17.3 Release: %autorelease Summary: Low-level cross-platform audio I/O library in pure Rust License: Apache-2.0 URL: https://crates.io/crates/cpal Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: cpal-fix-metadata-auto.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Low-level cross-platform audio I/O library in pure 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 %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/README.md %doc %{crate_instdir}/UPGRADING.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}+asio-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+asio-devel %{_description} This package contains library source intended for building other packages which use the "asio" feature of the "%{crate}" crate. %files -n %{name}+asio-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+audio_thread_priority-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+audio_thread_priority-devel %{_description} This package contains library source intended for building other packages which use the "audio_thread_priority" feature of the "%{crate}" crate. %files -n %{name}+audio_thread_priority-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+audioworklet-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+audioworklet-devel %{_description} This package contains library source intended for building other packages which use the "audioworklet" feature of the "%{crate}" crate. %files -n %{name}+audioworklet-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+custom-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+custom-devel %{_description} This package contains library source intended for building other packages which use the "custom" feature of the "%{crate}" crate. %files -n %{name}+custom-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+jack-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+jack-devel %{_description} This package contains library source intended for building other packages which use the "jack" feature of the "%{crate}" crate. %files -n %{name}+jack-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+wasm-bindgen-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+wasm-bindgen-devel %{_description} This package contains library source intended for building other packages which use the "wasm-bindgen" feature of the "%{crate}" crate. %files -n %{name}+wasm-bindgen-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