From e8a3feaa963fc9a496f831914a0cf1b345a1238f Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Thu, 22 May 2025 01:56:32 -0700 Subject: [PATCH] add: pbpctrl (#4950) (#4960) (cherry picked from commit a9d87c1eb8fc4f6fcdd44ffae88f9479571c925e) Co-authored-by: madomado --- anda/langs/rust/pbpctrl/anda.hcl | 8 ++++++ anda/langs/rust/pbpctrl/pbpctrl.spec | 41 ++++++++++++++++++++++++++++ anda/langs/rust/pbpctrl/update.rhai | 1 + 3 files changed, 50 insertions(+) create mode 100644 anda/langs/rust/pbpctrl/anda.hcl create mode 100644 anda/langs/rust/pbpctrl/pbpctrl.spec create mode 100644 anda/langs/rust/pbpctrl/update.rhai diff --git a/anda/langs/rust/pbpctrl/anda.hcl b/anda/langs/rust/pbpctrl/anda.hcl new file mode 100644 index 0000000000..ada11b625e --- /dev/null +++ b/anda/langs/rust/pbpctrl/anda.hcl @@ -0,0 +1,8 @@ +project pkg { + rpm { + spec = "pbpctrl.spec" + } + labels { + weekly = 4 + } +} diff --git a/anda/langs/rust/pbpctrl/pbpctrl.spec b/anda/langs/rust/pbpctrl/pbpctrl.spec new file mode 100644 index 0000000000..e068768fd7 --- /dev/null +++ b/anda/langs/rust/pbpctrl/pbpctrl.spec @@ -0,0 +1,41 @@ +# Generated by rust2rpm 27 +%bcond check 0 + +Name: pbpctrl +Version: 0.1.8 +Release: %autorelease +Summary: Command-line utility for controlling Google Pixel Buds Pro + +SourceLicense: MIT OR Apache-2.0 +License: (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 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-3-Clause OR MIT OR Apache-2.0) AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Apache-2.0 OR LGPL-2.1-or-later) AND (MIT OR Zlib OR Apache-2.0) AND (Unlicense OR MIT) +# LICENSE.dependencies contains a full license breakdown + +URL: https://github.com/qzed/pbpctrl +Source: %url/archive/refs/tags/v%version.tar.gz +Packager: madonuko + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Command-line utility for controlling Google Pixel Buds Pro.} + +%description %{_description} + +%prep +%autosetup -n pbpctrl-%{version} -p1 +%cargo_prep_online + +%build +%{cargo_license_summary_online} +%{cargo_license_online} > LICENSE.dependencies +%{cargo_build} -p pbpctrl + +%install +install -Dm755 target/rpm/pbpctrl -t %buildroot%_bindir + +%files +%license LICENSE-APACHE +%license LICENSE-MIT +%license LICENSE.dependencies +%doc README.md +%{_bindir}/pbpctrl diff --git a/anda/langs/rust/pbpctrl/update.rhai b/anda/langs/rust/pbpctrl/update.rhai new file mode 100644 index 0000000000..5fdd1faec5 --- /dev/null +++ b/anda/langs/rust/pbpctrl/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("qzed/pbpctrl"));