From b5107152a7d3fbcb5cdf0a3c6642d7dc4342391955e5eafdb3117ccd89483d85 Mon Sep 17 00:00:00 2001 From: Andreas Stieger Date: Sun, 21 Jan 2024 20:49:53 +0000 Subject: [PATCH] Accepting request 1140309 from home:dirkmueller:Factory - fix build for non-SUSE distros OBS-URL: https://build.opensuse.org/request/show/1140309 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/yascreen?expand=0&rev=9 --- yascreen.changes | 5 +++++ yascreen.spec | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/yascreen.changes b/yascreen.changes index ddcc819..0c4c317 100644 --- a/yascreen.changes +++ b/yascreen.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Jan 21 17:03:35 UTC 2024 - Dirk Müller + +- fix build for non-SUSE distros + ------------------------------------------------------------------- Sun Nov 12 09:45:25 UTC 2023 - Dirk Müller diff --git a/yascreen.spec b/yascreen.spec index 1df7f25..6259d35 100644 --- a/yascreen.spec +++ b/yascreen.spec @@ -1,7 +1,7 @@ # # spec file for package yascreen # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,7 +26,7 @@ URL: https://github.com/bbonev/yascreen/ Source: %{url}releases/download/v%{version}/yascreen-%{version}.tar.xz Source2: %{url}releases/download/v%{version}/yascreen-%{version}.tar.xz.asc Source3: https://raw.githubusercontent.com/bbonev/yascreen/v%{version}/debian/upstream/signing-key.asc#/%{name}.keyring -%if %{?suse_version} < 1599 +%if 0%{?suse_version} && %{?suse_version} < 1599 BuildRequires: gcc12 %endif @@ -63,7 +63,7 @@ compile applications or shared objects that use yascreen. %build export CFLAGS="%{optflags}" -%if %{?suse_version} < 1599 +%if 0%{?suse_version} && %{?suse_version} < 1599 export CC=gcc-12 %endif %make_build