# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate audiopus_sys Name: rust-audiopus_sys Version: 0.2.2 Release: %autorelease Summary: FFI-Binding to Opus, dynamically or statically linked for Windows and UNIX License: ISC URL: https://crates.io/crates/audiopus_sys Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 BuildRequires: pkgconfig(opus) >= 1.0.0 %global _description %{expand: FFI-Binding to Opus, dynamically or statically linked for Windows and UNIX.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch Requires: pkgconfig(opus) >= 1.0.0 %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE.md %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/CONTRIBUTING.md %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}+bindgen-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bindgen-devel %{_description} This package contains library source intended for building other packages which use the "bindgen" feature of the "%{crate}" crate. %files -n %{name}+bindgen-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+dynamic-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dynamic-devel %{_description} This package contains library source intended for building other packages which use the "dynamic" feature of the "%{crate}" crate. %files -n %{name}+dynamic-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+generate_binding-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+generate_binding-devel %{_description} This package contains library source intended for building other packages which use the "generate_binding" feature of the "%{crate}" crate. %files -n %{name}+generate_binding-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 rm -rf opus %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog