From b984a52ecaa8ab464d5f504d43dd32f309e66649 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sat, 1 Feb 2025 21:23:20 -0800 Subject: [PATCH] Add: geteltorito (#3174) (#3178) * Package geteltorito * add noarch (cherry picked from commit e20bc490523363dada604e3a767f5ec80f3e5559) Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/tools/geteltorito/anda.hcl | 9 +++++++ anda/tools/geteltorito/geteltorito.spec | 32 +++++++++++++++++++++++++ anda/tools/geteltorito/update.rhai | 5 ++++ 3 files changed, 46 insertions(+) create mode 100644 anda/tools/geteltorito/anda.hcl create mode 100644 anda/tools/geteltorito/geteltorito.spec create mode 100644 anda/tools/geteltorito/update.rhai diff --git a/anda/tools/geteltorito/anda.hcl b/anda/tools/geteltorito/anda.hcl new file mode 100644 index 0000000000..93ef5f1bc2 --- /dev/null +++ b/anda/tools/geteltorito/anda.hcl @@ -0,0 +1,9 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "geteltorito.spec" + } + labels { + nightly = 1 + } +} \ No newline at end of file diff --git a/anda/tools/geteltorito/geteltorito.spec b/anda/tools/geteltorito/geteltorito.spec new file mode 100644 index 0000000000..b6e4ccd06d --- /dev/null +++ b/anda/tools/geteltorito/geteltorito.spec @@ -0,0 +1,32 @@ +%global commit 46474a4a86692b7c38ecdb4f135bee7badbfa8b0 +%global commit_date 20250116 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: geteltorito +Version: %{commit_date}.%{shortcommit} +Release: 1%?dist +Summary: An El Torito boot image extractor +License: GPLv3 +Packager: Owen Zimmerman +Url: https://github.com/rainer042/geteltorito +Source0: %{url}/archive/%{commit}.tar.gz +BuildArch: noarch +Requires: perl + +%description +%summary + +%prep +%autosetup -n geteltorito-%commit + +%install +install -Dm 755 geteltorito.pl %buildroot%{_bindir}/geteltorito + +%files +%license LICENSE +%doc README +%{_bindir}/geteltorito + +%changelog +* Sat Feb 01 2025 Owen Zimmerman +- Package geteltorito \ No newline at end of file diff --git a/anda/tools/geteltorito/update.rhai b/anda/tools/geteltorito/update.rhai new file mode 100644 index 0000000000..c899fffada --- /dev/null +++ b/anda/tools/geteltorito/update.rhai @@ -0,0 +1,5 @@ +rpm.global("commit", gh_commit("rainer042/geteltorito")); +if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); +} \ No newline at end of file