diff --git a/gtk3.changes b/gtk3.changes index 04883fe..ff6a72a 100644 --- a/gtk3.changes +++ b/gtk3.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Aug 14 03:34:22 UTC 2023 - Yifan Jiang + +- Do not use %autopatch to build on SLE where rpm version is not + ready for the macro. + ------------------------------------------------------------------- Mon May 22 16:08:09 UTC 2023 - Bjørn Lie diff --git a/gtk3.spec b/gtk3.spec index fbabdc7..c386c83 100644 --- a/gtk3.spec +++ b/gtk3.spec @@ -383,10 +383,19 @@ This package contains the API documentation for GTK+ 3.x. %autosetup -N -n %{_name}-%{version} %if "%{_lib}" == "lib64" cp -a %{SOURCE1} . +%if !0%{?sle_version} %autopatch -p1 0 +%else +%patch0 -p1 %endif +%endif + +%if !0%{?sle_version} # Apply patches 1 to 999 (1 >= 999) %autopatch -p1 -m 1 -M 999 +%else +%patch1 -p1 +%endif %build %meson \