Sophie

Sophie

distrib > Mageia > cauldron > x86_64 > media > core-release-src > by-pkgid > cd3ef22c137d6055fe62a2239d18f8a3 > files > 3

rust-libspa-sys-0.6.0-0.1.mga10.src.rpm

## START: Set by rpmautospec
## (rpmautospec version 0.3.5)

# Generated by rust2rpm 24
%bcond_without check
%global debug_package %{nil}

%global crate libspa-sys

Name:           rust-libspa-sys
Version:        0.6.0
Release:        %mkrel 0.1
Summary:        Rust FFI bindings for libspa

Group:          Development/Other
BuildArch:      noarch

License:        MIT
URL:            https://crates.io/crates/libspa-sys
Source:         %{crates_source}
# Manually created patch for downstream crate metadata changes
# * temporarily downgrade bindgen build-dependency from 0.64 to 0.63
Patch:          libspa-sys-fix-metadata.diff

BuildRequires:  rust-packaging >= 21
BuildRequires:  rust-bindgen0.63-devel

%global _description %{expand:
Rust FFI bindings for libspa.}

%description %{_description}

%package        devel
Summary:        %{summary}
BuildArch:      noarch
Requires:       pkgconfig(libpipewire-0.3) >= 0.3
Requires:       pkgconfig(libspa-0.2) >= 0.2
Requires:       rust-bindgen0.63-devel

%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}/README.md
%{crate_instdir}/

%package     -n %{name}+default-devel
Summary:        %{summary}
BuildArch:      noarch
Requires:       rust-bindgen0.63-devel

%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

%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep

%generate_buildrequires
%cargo_generate_buildrequires
echo 'pkgconfig(libpipewire-0.3) >= 0.3'
echo 'pkgconfig(libspa-0.2) >= 0.2'

%build
%cargo_build

%install
%cargo_install

%if %{with check}
%check
%cargo_test
%endif



%changelog
* Wed Oct 18 2023 tv <tv> 0.6.0-0.1.mga10
+ Revision: 1998790
- imported package rust-libspa-sys