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
This commit is contained in:
Dominique Leuenberger 2023-08-14 13:46:25 +00:00 committed by Git OBS Bridge
parent 50f3a48034
commit 31e69300cc
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Aug 14 03:34:22 UTC 2023 - Yifan Jiang <yfjiang@suse.com>
- 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 <bjorn.lie@gmail.com>

View File

@ -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 \