(cherry picked from commit b2de3ade6c)

Signed-off-by: Owen-sz <owen@fyralabs.com>
Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
Raboneko
2026-04-03 10:28:24 -07:00
committed by GitHub
parent cb064a6fa5
commit 7be606c3cb
3 changed files with 45 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
project pkg {
arches = ["x86_64"]
rpm {
spec = "yabs.spec"
}
}
+5
View File
@@ -0,0 +1,5 @@
rpm.global("commit", gh_commit("masonr/yet-another-bench-script"));
if rpm.changed() {
rpm.release();
rpm.global("commit_date", date());
}
+34
View File
@@ -0,0 +1,34 @@
%global commit 7328d7cb728ef7506009c37b6ec78ca70f6e5c8d
%global commit_date 20251229
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: yabs
Version: 0~%{commit_date}git.%{shortcommit}
Release: 1%{?dist}
Summary: Simple bash script to estimate Linux server performance using fio, iperf3, & Geekbench
URL: https://github.com/masonr/yet-another-bench-script
Source0: %{url}/archive/%{commit}/yet-another-bench-script-%commit.tar.gz
License: WTFPL
Provides: yet-another-bench-script
Packager: Owen Zimmerman <owen@fyralabs.com>
BuildArch: noarch
%description
%{summary}.
%prep
%autosetup -n yet-another-bench-script-%{commit}
%build
%install
install -Dm755 yabs.sh %{buildroot}%{_bindir}/yabs
%files
%doc README.md
%license LICENSE
%{_bindir}/yabs
%changelog
* Fri Apr 03 2026 Owen Zimmerman <owen@fyralabs.com>
- Initial commit