fix: limine (#6249) (#6251)

This commit is contained in:
Raboneko
2025-09-01 11:45:23 -07:00
committed by GitHub
parent 42ef5f3cf8
commit deb3fdf31d
4 changed files with 14 additions and 7 deletions
+1
View File
@@ -0,0 +1 @@
README.md
+6 -6
View File
@@ -1,11 +1,11 @@
Name: limine
Version: moved.to.codeberg
Version: 9.6.5
Release: 1%?dist
Summary: Modern, advanced, portable, multiprotocol bootloader
License: BSD-2-Clause
URL: https://limine-bootloader.org
Source0: https://github.com/limine-bootloader/limine/releases/download/v%version/limine-%version.tar.gz
Source1: https://raw.githubusercontent.com/limine-bootloader/limine/v%version/README.md
Source0: https://codeberg.org/Limine/Limine/releases/download/v%version/limine-%version.tar.gz
Source1: https://codeberg.org/Limine/Limine/raw/tag/v%version/README.md
Packager: madonuko <mado@fyralabs.com>
BuildRequires: nasm mtools llvm lld clang make
@@ -15,10 +15,10 @@ the reference implementation for the Limine boot protocol.
%prep
%autosetup
cp %SOURCE1 .
cp %{S:1} .
%build
%configure --enable-all TOOLCHAIN_FOR_TARGET=llvm
%configure --enable-all CC_FOR_TARGET=clang LD_FOR_TARGET=ld.lld
%make_build
%install
@@ -27,7 +27,7 @@ cp %SOURCE1 .
%files
%doc README.md 3RDPARTY.md FAQ.md CONFIG.md PROTOCOL.md COPYING USAGE.md
%doc %_datadir/doc/limine/LICENSES/LicenseRef-scancode-bsd-no-disclaimer-unmodified.txt
%license %_datadir/doc/limine/LICENSES/LicenseRef-scancode-bsd-no-disclaimer-unmodified.txt
%license COPYING
%_bindir/limine
%_includedir/limine.h
+3 -1
View File
@@ -1 +1,3 @@
rpm.version(gh("limine-bootloader/limine"));
import "andax/bump_extras.rhai" as bump;
rpm.version(bump::codeberg("Limine/Limine"));
+4
View File
@@ -2,6 +2,10 @@ fn codeberg_commit(repo) {
return get(`https://codeberg.org/api/v1/repos/${repo}/commits?stat=false&verification=false&files=false&limit=1`).json_arr()[0].sha;
}
fn codeberg(repo) {
return get(`https://codeberg.org/api/v1/repos/${repo}/releases/latest`).json().tag_name;
}
fn as_bodhi_ver(branch) {
if branch.starts_with("el") {
branch.crop(2);