Tomas Hrcka 2 years ago
parent 3379a52d8f
commit f2200892f4

1
.gitignore vendored

@ -0,0 +1 @@
/alsa-sys-0.3.1.crate

@ -0,0 +1,3 @@
# rust-alsa-sys
The rust-alsa-sys package

@ -0,0 +1,2 @@
* Fri Jun 25 2021 Rémi Lauzier <remilauzier@protonmail.com> - 0.3.1-1
- Initial package

@ -1 +0,0 @@
no longer needed

@ -0,0 +1,75 @@
# Generated by rust2rpm 20
# Deactivate tests because of missing function
# https://github.com/diwic/alsa-sys/issues/8
%bcond_with check
%global debug_package %{nil}
%global crate alsa-sys
Name: rust-%{crate}
Version: 0.3.1
Release: %autorelease
Summary: FFI bindings for the ALSA project (Advanced Linux Sound Architecture)
# Upstream license specification: MIT
License: MIT
URL: https://crates.io/crates/alsa-sys
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
%global _description %{expand:
FFI bindings for the ALSA project (Advanced Linux Sound Architecture).}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
Requires: alsa-lib-devel
%description devel %{_description}
This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
%license LICENSE
%doc README.md
%{cargo_registry}/%{crate}-%{version_no_tilde}/
%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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
echo "alsa-lib-devel"
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog

@ -0,0 +1 @@
SHA512 (alsa-sys-0.3.1.crate) = 6523d909c500fee433f934eedfdc200cfc52e1b55be09434665210c16bb9af3593d8b1346ace184b171c7135a7aa65fdac5ca8c68e64f9d20436e1d8fac961fe
Loading…
Cancel
Save