Accepting request 955440 from home:alarrosa:branches:X11:Wayland

- Use g++-11 when building in Backports/Leap 15.4 since otherwise
  the compiler is too old.

OBS-URL: https://build.opensuse.org/request/show/955440
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/waybar?expand=0&rev=67
This commit is contained in:
Michael Vetter 2022-02-17 08:34:11 +00:00 committed by Git OBS Bridge
parent b207e2cc8e
commit 11d5fb72d4
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Feb 16 16:21:53 UTC 2022 - Antonio Larrosa <alarrosa@suse.com>
- Use g++-11 when building in Backports/Leap 15.4 since otherwise
the compiler is too old.
-------------------------------------------------------------------
Mon Jan 10 16:16:47 UTC 2022 - Michael Vetter <mvetter@suse.com>

View File

@ -28,7 +28,11 @@ URL: https://github.com/Alexays/Waybar
#Source: https://github.com/Alexays/Waybar/archive/%{version}.tar.gz
Source: %{version}.tar.xz
BuildRequires: cmake
%if 0%{?sle_version} >= 150400
BuildRequires: gcc11-c++
%else
BuildRequires: gcc-c++ >= 8
%endif
BuildRequires: gtk-layer-shell-devel
BuildRequires: meson
BuildRequires: ninja
@ -86,6 +90,9 @@ This package provides the upstream look and feel for sway.
%autosetup -p1 -n Waybar-%{version}
%build
%if 0%{?sle_version} >= 150400
export CXX=g++-11
%endif
%meson -Dsndio=disabled
%meson_build