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