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
26 lines
629 B
Makefile
26 lines
629 B
Makefile
# Copyright (C) 2023 Maxwell G <maxwell@gtmx.me>
|
|
#
|
|
# SPDX-License-Identifier: GPL-1.0-or-later
|
|
|
|
# vim: set ts=4:
|
|
PREFIX := /usr
|
|
RPMMACRODIR := $(PREFIX)/lib/rpm/macros.d
|
|
RPMLUADIR := $(PREFIX)/lib/rpm/lua
|
|
|
|
# Install the macros
|
|
install:
|
|
install -Dpm 0644 rpm/macros.d/macros.* -t $(DESTDIR)$(RPMMACRODIR)/
|
|
install -Dpm 0644 rpm/lua/fedora/srpm/*.lua -t $(DESTDIR)$(RPMLUADIR)/fedora/srpm/
|
|
|
|
# Rename macros so they can be packaged for EPEL without conflicting with EL's
|
|
# forge macros
|
|
epel-build:
|
|
./tools/epel_build.sh
|
|
|
|
epel-install:
|
|
$(MAKE) -C epel -f ../Makefile install
|
|
|
|
epel: epel-build epel-install
|
|
|
|
clean:
|
|
rm -rf epel9/
|