Add: geteltorito (#3174)

* Package geteltorito

* add noarch
This commit is contained in:
Owen Zimmerman
2025-02-01 23:20:21 -06:00
committed by GitHub
parent 0a3972cc60
commit e20bc49052
3 changed files with 46 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
project pkg {
arches = ["x86_64"]
rpm {
spec = "geteltorito.spec"
}
labels {
nightly = 1
}
}
+32
View File
@@ -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 <owen@fyralabs.com>
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 <owen@fyralabs.com>
- Package geteltorito
+5
View File
@@ -0,0 +1,5 @@
rpm.global("commit", gh_commit("rainer042/geteltorito"));
if rpm.changed() {
rpm.release();
rpm.global("commit_date", date());
}