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"));