After discussion in the 2024-11-21 FPC meeting, I am updating the epel build script to allow creating a forge-srpm-macros-epel backport package that overrides the EL 10 package. The backport package will address a critical bug that has gone unfixed in RHEL and include other features that have been added since the EL 10 branching. Ref: https://bugzilla.redhat.com/show_bug.cgi?id=2314083 Ref: https://issues.redhat.com/browse/RHEL-60802 Ref: https://meetbot.fedoraproject.org/meeting-1_matrix_fedoraproject-org/2024-11-21/fpc.2024-11-21-17.00.log.html
15 lines
666 B
Bash
Executable file
15 lines
666 B
Bash
Executable file
#!/bin/bash -x
|
|
# Copyright (C) 2024 Maxwell G <maxwell@gtmx.me>
|
|
# SPDX-License-Identifier: GPL-1.0-or-later
|
|
|
|
set -euo pipefail
|
|
|
|
rm -rf epel
|
|
mkdir -p epel/rpm/macros.d epel/rpm/lua/fedora/srpm
|
|
cp -p rpm/macros.d/macros.forge epel/rpm/macros.d/macros.zzz-forge_epel
|
|
cp -p rpm/lua/fedora/srpm/forge.lua epel/rpm/lua/fedora/srpm/forge_epel.lua
|
|
cp -p rpm/lua/fedora/srpm/_forge_util.lua epel/rpm/lua/fedora/srpm/_forge_epel_util.lua
|
|
sed -Ei \
|
|
-e '/require "fedora.srpm.forge"/s/forge"$/forge_epel"/' \
|
|
-e '/require "fedora.srpm._forge_util"/s/_forge_util"$/_forge_epel_util"/' \
|
|
epel/rpm/macros.d/macros.zzz-forge_epel epel/rpm/lua/fedora/srpm/forge_epel.lua
|