From 2e897b01b9d0f171fcbbaff755965a3e3b0c936f Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sat, 27 Dec 2025 19:29:49 -0800 Subject: [PATCH] add: rmpc (#8725) (#8729) * add: rmpc * smh --------- (cherry picked from commit f77cee0d6af2a44640a8265438f96dfc31384e3d) Signed-off-by: Owen-sz Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/langs/rust/rmpc/anda.hcl | 5 ++++ anda/langs/rust/rmpc/rmpc.spec | 46 ++++++++++++++++++++++++++++++++ anda/langs/rust/rmpc/update.rhai | 1 + 3 files changed, 52 insertions(+) create mode 100644 anda/langs/rust/rmpc/anda.hcl create mode 100644 anda/langs/rust/rmpc/rmpc.spec create mode 100644 anda/langs/rust/rmpc/update.rhai diff --git a/anda/langs/rust/rmpc/anda.hcl b/anda/langs/rust/rmpc/anda.hcl new file mode 100644 index 0000000000..aeba95f807 --- /dev/null +++ b/anda/langs/rust/rmpc/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "rmpc.spec" + } +} diff --git a/anda/langs/rust/rmpc/rmpc.spec b/anda/langs/rust/rmpc/rmpc.spec new file mode 100644 index 0000000000..a9655027f7 --- /dev/null +++ b/anda/langs/rust/rmpc/rmpc.spec @@ -0,0 +1,46 @@ +%undefine __brp_mangle_shebangs + +Name: rmpc +Version: 0.10.0 +Release: 1%?dist +Summary: A modern, configurable, terminal based MPD Client with album art support via various terminal image protocols +URL: https://rmpc.mierak.dev/ +Source0: https://github.com/mierak/rmpc/archive/refs/tags/v%version.tar.gz +License: BSD-3-Clause +BuildRequires: cargo anda-srpm-macros cargo-rpm-macros mold + +Packager: Owen Zimmerman + +%description +Rmpc is a beautiful, modern and configurable terminal based Music Player Daemon client. +It is heavily inspired by ncmpcpp and ranger/lf file managers. + +%pkg_completion -bfz + +%prep +%autosetup +%cargo_prep_online + +%build +%cargo_build + +%install +mkdir -p %{buildroot}%{bash_completions_dir} +mkdir -p %{buildroot}%{fish_completions_dir} +mkdir -p %{buildroot}%{zsh_completions_dir} +install -Dm755 target/rpm/%{name} %{buildroot}%{_bindir}/%{name} +install -Dm644 target/completions/%{name}.bash %{buildroot}%{bash_completions_dir}/ +install -Dm644 target/completions/%{name}.fish %{buildroot}%{fish_completions_dir}/ +install -Dm644 target/completions/_%{name} %{buildroot}%{zsh_completions_dir}/ +install -Dm644 target/man/rmpc.1 %{buildroot}%{_mandir}/man1/rmpc.1 +%{cargo_license_online} > LICENSE.dependencies + +%files +%license LICENSE LICENSE.dependencies +%doc README.md CHANGELOG.md CONTRIBUTING.md +%{_bindir}/%{name} +%{_mandir}/man1/rmpc.*.* + +%changelog +* Sat Dec 27 2025 Owen Zimmerman - 0.1.65-1 +- Initial commit diff --git a/anda/langs/rust/rmpc/update.rhai b/anda/langs/rust/rmpc/update.rhai new file mode 100644 index 0000000000..ef13ab9c04 --- /dev/null +++ b/anda/langs/rust/rmpc/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("mierak/rmpc"));