From 8253f1a68dccb4e98b876a3dbe421ea7543e1440 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sat, 15 Feb 2025 07:54:17 -0800 Subject: [PATCH] add: lowfi (#3357) (#3358) * add: lowfi * remove changelog and add packager * lowfi/update.rhai: typo (cherry picked from commit bfba9338b8b6fccf5c0713d340a464c9da61dc08) Co-authored-by: sadlerm4 --- anda/devs/lowfi/anda.hcl | 5 ++++ anda/devs/lowfi/rust-lowfi.spec | 49 +++++++++++++++++++++++++++++++++ anda/devs/lowfi/update.rhai | 1 + 3 files changed, 55 insertions(+) create mode 100644 anda/devs/lowfi/anda.hcl create mode 100644 anda/devs/lowfi/rust-lowfi.spec create mode 100644 anda/devs/lowfi/update.rhai diff --git a/anda/devs/lowfi/anda.hcl b/anda/devs/lowfi/anda.hcl new file mode 100644 index 0000000000..022c986146 --- /dev/null +++ b/anda/devs/lowfi/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "rust-lowfi.spec" + } +} \ No newline at end of file diff --git a/anda/devs/lowfi/rust-lowfi.spec b/anda/devs/lowfi/rust-lowfi.spec new file mode 100644 index 0000000000..300c00cf98 --- /dev/null +++ b/anda/devs/lowfi/rust-lowfi.spec @@ -0,0 +1,49 @@ +# Generated by rust2rpm 27 +%global crate lowfi + +Name: rust-lowfi +Version: 1.5.6 +Release: 1%{?dist} +Summary: Extremely simple lofi player + +License: MIT +URL: https://crates.io/crates/lowfi +Source: %{crates_source} + +Packager: sadlerm + +BuildRequires: cargo-rpm-macros >= 24 +BuildRequires: anda-srpm-macros +BuildRequires: mold +BuildRequires: pkgconfig(alsa) +BuildRequires: pkgconfig(openssl) + +%global _description %{expand: +An extremely simple lofi player.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} +License: (Apache-2.0 OR MIT) AND BSD-3-Clause AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR ISC OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR MIT OR Apache-2.0) AND (BSD-3-Clause OR MIT OR Apache-2.0) AND ISC AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Zlib OR Apache-2.0) AND MPL-2.0 AND Unicode-3.0 AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT) +# LICENSE.dependencies contains a full license breakdown + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE +%license LICENSE.dependencies +%doc README.md +%{_bindir}/lowfi + +%prep +%autosetup -n %{crate}-%{version} +%cargo_prep_online + +%build +%cargo_build +%{cargo_license_summary_online} +%{cargo_license_online} > LICENSE.dependencies + +%install +install -Dm755 target/rpm/%{crate} %{buildroot}%{_bindir}/%{crate} diff --git a/anda/devs/lowfi/update.rhai b/anda/devs/lowfi/update.rhai new file mode 100644 index 0000000000..9c31384f2b --- /dev/null +++ b/anda/devs/lowfi/update.rhai @@ -0,0 +1 @@ +rpm.version(crates("lowfi"));