From afcbab614a214e81c3c2fcad25c462c8ff0870fa Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 14:42:26 +0300 Subject: [PATCH] import rust-alsa-0.9.1-1.el10 --- .gitignore | 1 + .rust-alsa.metadata | 1 + SOURCES/README.md | 3 ++ SOURCES/rust2rpm.toml | 7 +++ SPECS/rust-alsa.spec | 104 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 116 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-alsa.metadata create mode 100644 SOURCES/README.md create mode 100644 SOURCES/rust2rpm.toml create mode 100644 SPECS/rust-alsa.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f4b64db --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/alsa-0.9.1.crate diff --git a/.rust-alsa.metadata b/.rust-alsa.metadata new file mode 100644 index 0000000..99a15ca --- /dev/null +++ b/.rust-alsa.metadata @@ -0,0 +1 @@ +19a69218e339a54a73322f2781d71c168c7e40d2 SOURCES/alsa-0.9.1.crate diff --git a/SOURCES/README.md b/SOURCES/README.md new file mode 100644 index 0000000..04e2194 --- /dev/null +++ b/SOURCES/README.md @@ -0,0 +1,3 @@ +# rust-alsa + +The rust-alsa package diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..6360e88 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,7 @@ +[tests] +run = ["none"] +comments = [ + "Deactivate tests because they need a sound card", + "https://github.com/diwic/alsa-rs/issues/71", +] + diff --git a/SPECS/rust-alsa.spec b/SPECS/rust-alsa.spec new file mode 100644 index 0000000..e71a161 --- /dev/null +++ b/SPECS/rust-alsa.spec @@ -0,0 +1,104 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.3) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +# Generated by rust2rpm 26 +# * 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-alsa +Version: 0.9.1 +Release: %autorelease +Summary: Thin but safe wrappers for ALSA (Linux sound API) + +# Upstream license specification: Apache-2.0/MIT +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/alsa +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%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 %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%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 + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.9.1-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Oct 11 2024 Davide Cavalca - 0.9.1-1 +- Update to 0.9.1; Fixes: RHBZ#2265305 + +* Fri Jul 19 2024 Fedora Release Engineering - 0.8.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 0.8.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Oct 14 2023 Davide Cavalca - 0.8.1-1 +- Update to 0.8.1; Fixes: RHBZ#2237891 + +* Mon Jul 31 2023 Davide Cavalca - 0.7.1-1 +- Update to 0.7.1; Fixes: RHBZ#2224957 + +* Fri Jun 25 2021 RĂ©mi Lauzier - 0.5.0-1 +- Initial package + +## END: Generated by rpmautospec