diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..513ada4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/alsa-0.5.0.crate +/alsa-0.6.0.crate diff --git a/README.md b/README.md new file mode 100644 index 0000000..04e2194 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# rust-alsa + +The rust-alsa package diff --git a/changelog b/changelog new file mode 100644 index 0000000..09eda99 --- /dev/null +++ b/changelog @@ -0,0 +1,2 @@ +* Fri Jun 25 2021 RĂ©mi Lauzier - 0.5.0-1 +- Initial package diff --git a/dead.package b/dead.package deleted file mode 100644 index c7912ba..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -no longer needed diff --git a/rust-alsa.spec b/rust-alsa.spec new file mode 100644 index 0000000..ec5eb01 --- /dev/null +++ b/rust-alsa.spec @@ -0,0 +1,73 @@ +# Generated by rust2rpm 20 +# Deactivate tests because they need a sound card +# https://github.com/diwic/alsa-rs/issues/71 +%bcond_with check +%global debug_package %{nil} + +%global crate alsa + +Name: rust-%{crate} +Version: 0.6.0 +Release: %autorelease +Summary: Thin but safe wrappers for ALSA (Linux sound API) + +# Upstream license specification: Apache-2.0/MIT +License: ASL 2.0 or MIT +URL: https://crates.io/crates/alsa +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%global _description %{expand: +Thin but safe wrappers for ALSA (Linux sound API).} + +%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 LICENSE-APACHE LICENSE-MIT +%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 + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..1d9b043 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (alsa-0.6.0.crate) = a63354da0e643a68e28e32293d48f866c071332b1d17cf8349a79f28e45d6b9566d22f30c3001a862ea26c2b757aa9440b3f52c826a40b29c7881d12416f599b