File project.diff of Package ipxe-internal

--- ipxe.spec.orig
+++ ipxe.spec
@@ -1,5 +1,5 @@
 #
-# spec file for package ipxe
+# spec file for package ipxe-internal
 #
 # Copyright (c) 2024 SUSE LLC
 #
@@ -23,14 +23,16 @@
 %define do_floppy 1
 %endif
 
-Name:           ipxe
+%global extra_mflags DEBUG=x509 CERT=%{_sourcedir}/SUSE_Trust_Root.crt.pem TRUST=%{_sourcedir}/SUSE_Trust_Root.crt.pem
+
+Name:           ipxe-internal
 Version:        1.21.1+git20240329.764e34f
 Release:        0
 Summary:        A Network Boot Firmware
 License:        GPL-2.0-only
 Group:          System/Boot
 URL:            https://ipxe.org/
-Source:         %{name}-%{version}.tar.xz
+Source:         ipxe-%{version}.tar.xz
 Patch0:         syslinux-mtools.patch
 BuildRequires:  binutils-devel
 # Do not build i586 for Leap/SLE: no such port available
@@ -55,6 +57,7 @@ BuildRequires:  cross-aarch64-gcc%{gcc_v
 %endif
 %endif
 %endif
+BuildRequires:  openssl
 BuildRequires:  perl
 %ifarch %{ix86} x86_64
 BuildRequires:  mtools
@@ -86,7 +89,8 @@ This package contains the iPXE boot imag
 UNDI formats. EFI is supported, too.
 
 %prep
-%autosetup -p1
+%autosetup -p1 -n ipxe-%{version}
+
 cd src
 
 # enable compressed images
@@ -98,6 +102,8 @@ sed -i.bak \
 # enable HTTPS downloads
 sed -i.bak \
     -e 's,#undef\(.*DOWNLOAD_PROTO_HTTPS.*\),#define\1,' \
+    -e 's,#undef\(.*DOWNLOAD_PROTO_FTP.*\),#define\1,' \
+    -e 's,.*#undef\(.*SANBOOT_PROTO_HTTP.*\),#define\1,' \
     config/general.h
 
 %build
@@ -107,6 +113,7 @@ make_ipxe() {
     # https://github.com/ipxe/ipxe/issues/620
     [ `gcc -dumpversion` -ge 12 ] && TAG="NO_WERROR=1" || TAG=""
     make -O %{?_smp_mflags} V=1 \
+        %extra_mflags \
         VERSION=%{version} $TAG "$@"
 }
 
openSUSE Build Service is sponsored by