diff --git a/Call-set_build_flags-cc-before-build-check-and-insta.patch b/Call-set_build_flags-cc-before-build-check-and-insta.patch index 09ed693017cf2a6bd771159da655d615b79356bf..8f69298de85f1194eae0f61d8141890832d35796 100644 --- a/Call-set_build_flags-cc-before-build-check-and-insta.patch +++ b/Call-set_build_flags-cc-before-build-check-and-insta.patch @@ -26,11 +26,11 @@ index 0062126..8c16706 100755 +%_auto_set_build_flags 0 + +%__spec_build_pre %{___build_pre} \ -+ %[%{_auto_set_build_cc} ? "%{set_build_cc}" : ""] \ -+ %[%{_auto_set_build_flags} ? "%{set_build_flags}" : ""] ++ %[0%{?_auto_set_build_cc} ? "%{set_build_cc}" : ""] \ ++ %[0%{?_auto_set_build_flags} ? "%{set_build_flags}" : ""] +%__spec_check_pre %{___build_pre} \ -+ %[%{_auto_set_build_cc} ? "%{set_build_cc}" : ""] \ -+ %[%{_auto_set_build_flags} ? "%{set_build_flags}" : ""] ++ %[0%{?_auto_set_build_cc} ? "%{set_build_cc}" : ""] \ ++ %[0%{?_auto_set_build_flags} ? "%{set_build_flags}" : ""] + #For backwards compatibility only. %__global_cflags %{build_cflags} @@ -39,8 +39,8 @@ index 0062126..8c16706 100755 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "${RPM_BUILD_ROOT}"\ mkdir -p `dirname "$RPM_BUILD_ROOT"`\ mkdir "$RPM_BUILD_ROOT"\ -+ %[%{_auto_set_build_cc} ? "%{set_build_cc}" : ""]\ -+ %[%{_auto_set_build_flags} ? "%{set_build_flags}" : ""]\ ++ %[0%{?_auto_set_build_cc} ? "%{set_build_cc}" : ""]\ ++ %[0%{?_auto_set_build_flags} ? "%{set_build_flags}" : ""]\ %{nil} # ---- Expanded at end of %install scriptlet. diff --git a/openEuler-rpm-config.spec b/openEuler-rpm-config.spec index 896bca5403a63cc5cb69b5f1243547f340ae1aa1..7b4c90844d4e48a3dad37b8c91c1a6f49efb5e84 100644 --- a/openEuler-rpm-config.spec +++ b/openEuler-rpm-config.spec @@ -3,7 +3,7 @@ Name: %{vendor}-rpm-config Version: 30 -Release: 56 +Release: 57 License: GPL+ Summary: specific rpm configuration files URL: https://gitee.com/openeuler/openEuler-rpm-config @@ -150,6 +150,9 @@ sed -i "s/__vendor/%{vendor}/g" `grep "__vendor" -rl %{buildroot}%{_rpmconfigdir %{rpmvdir}/find-requires.ksyms %changelog +* Tue Aug 6 2024 liyunfei - 30-57 +- Fix for "%undefine _auto_set_build_XX" usage + * Mon Apr 29 2024 xujing - 30-56 - don't delete the commented code in macros