diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1beb0e4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/alsa-sys-0.3.1.crate diff --git a/README.md b/README.md new file mode 100644 index 0000000..a2ece2c --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# rust-alsa-sys + +The rust-alsa-sys package diff --git a/changelog b/changelog new file mode 100644 index 0000000..3ce4ffb --- /dev/null +++ b/changelog @@ -0,0 +1,2 @@ +* Fri Jun 25 2021 RĂ©mi Lauzier - 0.3.1-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-sys.spec b/rust-alsa-sys.spec new file mode 100644 index 0000000..caa8f30 --- /dev/null +++ b/rust-alsa-sys.spec @@ -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 diff --git a/sources b/sources new file mode 100644 index 0000000..200fc19 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (alsa-sys-0.3.1.crate) = 6523d909c500fee433f934eedfdc200cfc52e1b55be09434665210c16bb9af3593d8b1346ace184b171c7135a7aa65fdac5ca8c68e64f9d20436e1d8fac961fe