public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/SLOF] rawhide: Adjust conditionals for RHEL build
@ 2026-11-25  4:43 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-11-25  4:43 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/SLOF
            Branch : rawhide
            Commit : 4d313fd86363bd66e5548d21d45f2585014bb3c8
            Author : Yaakov Selkowitz <yselkowi@redhat.com>
            Date   : 2026-11-24T23:42:31-05:00
            Stats  : +15/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/SLOF/c/4d313fd86363bd66e5548d21d45f2585014bb3c8?branch=rawhide

            Log:
            Adjust conditionals for RHEL build

SLOF is going back in to RHEL, so the previously removed conditionals need
to be restored.

This reverts commit 798c20030ad09f87ef041f2a0f41e3aee610a957.

---
diff --git a/SLOF.spec b/SLOF.spec
index bde6432..9866df8 100644
--- a/SLOF.spec
+++ b/SLOF.spec
@@ -6,12 +6,16 @@
 # Disable debuginfo because it is of no use to us.
 %global debug_package %{nil}
 
+%if 0%{?fedora:1} || 0%{?epel:1}
 %define cross 1
 %define targetdir qemu
+%else
+%define targetdir qemu-kvm
+%endif
 
 Name:           SLOF
 Version:        %{gittagdate}
-Release:        11.git%{gittagcommit}%{?dist}
+Release:        12.git%{gittagcommit}%{?dist}
 Summary:        Slimline Open Firmware
 
 License:        BSD-3-Clause
@@ -61,6 +65,13 @@ export CROSS="powerpc64-linux-gnu-"
 export CROSS=""
 %endif
 
+%if 0%{?rhel:1}
+# Workaround for problems on the TPS machines.  They have a
+# environment variable called "RELEASE" which somehow confuses the
+# SLOF Makefiles which also use a variable named RELEASE.
+unset RELEASE
+%endif
+
 %make_build qemu V=2
 
 %install
@@ -76,6 +87,9 @@ install -c -m 0644 boot_rom.bin %{buildroot}%{_datadir}/%{targetdir}/slof.bin
 
 
 %changelog
+* Wed Nov 25 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 20220719-12.git6b6c16b4
+- Adjust conditionals for RHEL build
+
 * Wed Jul 15 2026 Fedora Release Engineering <releng@fedoraproject.org> - 20220719-11.git6b6c16b4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-25  4:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-25  4:43 [rpms/SLOF] rawhide: Adjust conditionals for RHEL build Yaakov Selkowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox