From 31e69300ccb5961ead560c4304adedb344b9dd7c088206670389939d78da78a4 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Mon, 14 Aug 2023 13:46:25 +0000 Subject: [PATCH] Accepting request 1103763 from home:yfjiang:branches:GNOME:Factory - Do not use %autopatch to build on SLE where rpm version is not ready for the macro. OBS-URL: https://build.opensuse.org/request/show/1103763 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gtk3?expand=0&rev=439 --- gtk3.changes | 6 ++++++ gtk3.spec | 9 +++++++++ 2 files changed, 15 insertions(+) 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 \