File project.diff of Package python-rpm-macros

--- python-rpm-macros.spec.orig
+++ python-rpm-macros.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package python-rpm-macros
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -23,11 +23,14 @@ Summary:        RPM macros for building
 License:        WTFPL
 URL:            https://github.com/opensuse/python-rpm-macros
 Source:         python-rpm-macros-%{version}.tar.xz
+Patch:          fix-alternative-priority.patch
 # To keep user expectations reasonably sane
 Recommends:     python-rpm-generators
 # Fedora compatibility
 Provides:       python2-rpm-macros
 Provides:       python3-rpm-macros
+# For other packages that require flavor specific name
+Provides:       %{lua:for flavor in string.gmatch(rpm.expand("%{pythons}"),"%w+") do print(flavor .. "-rpm-macros ") end}
 BuildArch:      noarch
 
 %description
@@ -53,11 +56,13 @@ dependencies automatically.
 %if 0%{?suse_version} < 1330
 mv macros-default-pythons macros/035-default-pythons
 %endif
-%if 0%{?suse_version} >= 1550
+%if 0%{?suse_version} >= 1500
 sed -i -e '/^%system_python/s/python2/python3/' macros/010-common-defs
 %endif
 
 %build
+# Fix compile macros due to prjconfig weirdness in SLE15 SP4 GA
+sed -i -e 's/## PYTHON MACROS/### PYTHON RPM MACROS/g' ./compile-macros.sh
 ./compile-macros.sh
 
 %install
openSUSE Build Service is sponsored by