mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
(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:
@@ -0,0 +1,6 @@
|
||||
project pkg {
|
||||
arches = ["x86_64"]
|
||||
rpm {
|
||||
spec = "yabs.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
rpm.global("commit", gh_commit("masonr/yet-another-bench-script"));
|
||||
if rpm.changed() {
|
||||
rpm.release();
|
||||
rpm.global("commit_date", date());
|
||||
}
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user