add: bitwarden-cli.bin (#6023) (#6069)

(cherry picked from commit 39bbad94fe)

Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
Raboneko
2025-08-13 22:58:27 -07:00
committed by GitHub
parent 590c3f285b
commit 5147da44a3
3 changed files with 36 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
project pkg {
arches = ["x86_64"]
rpm {
spec = "bitwarden-cli.bin.spec"
}
}
@@ -0,0 +1,25 @@
Name: bitwarden-cli.bin
Version: 2025.7.0
Release: 1%?dist
Summary: Bitwarden command-line client
License: GPL-3.0-only
URL: https://bitwarden.com
Source0: https://github.com/bitwarden/clients/releases/download/cli-v%version/bw-oss-linux-%version.zip
Packager: madonuko <mado@fyralabs.com>
Provides: bw
ExclusiveArch: x86_64
BuildRequires: unzip
%description
%summary.
%prep
unzip %{S:0}
%install
install -Dpm755 bw -t %buildroot%_bindir
%files
%_bindir/bw
+5
View File
@@ -0,0 +1,5 @@
let v = gh("bitwarden/clients");
if v.starts_with("cli-v") {
v.crop(5);
rpm.version(v);
}