diff --git a/gdm.changes b/gdm.changes index 77a8fda..fa91585 100644 --- a/gdm.changes +++ b/gdm.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Aug 14 03:09:23 UTC 2023 - Yifan Jiang + +- Do not use %autopatch to build on SLE where rpm version is not + ready for the macro. + ------------------------------------------------------------------- Fri Jun 30 11:28:29 UTC 2023 - Fabian Vogt diff --git a/gdm.spec b/gdm.spec index 5038f9e..7507ed5 100644 --- a/gdm.spec +++ b/gdm.spec @@ -243,7 +243,18 @@ running display manager. %autosetup -N ### NON-SLE patches start from 0 to 999 ## Use "autopatch -m 0 -M 999" when there's no need to skip patches. +%if !0%{?sle_version} %autopatch -p1 -m 1 -M 999 +%else +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%patch6 -p1 +%patch7 -p1 +%endif %ifarch s390 s390x %patch0 -p1 @@ -252,7 +263,9 @@ running display manager. ### SLE and Leap only patches start at 1000 %if 0%{?sle_version} ## Use this when there's no need to skip patches. -%autopatch -p1 -m 1000 +%patch1000 -p1 +%patch1001 -p1 +%patch1002 -p1 %endif %build