add: pbpctrl (#4950) (#4962)

(cherry picked from commit a9d87c1eb8)

Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
Raboneko
2025-05-22 01:56:13 -07:00
committed by GitHub
parent cb140d84c4
commit 56bd462f96
3 changed files with 50 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
project pkg {
rpm {
spec = "pbpctrl.spec"
}
labels {
weekly = 4
}
}
+41
View File
@@ -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 <mado@fyralabs.com>
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
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("qzed/pbpctrl"));