use <1599 to capture all Leaps

OBS-URL: https://build.opensuse.org/package/show/utilities/cpu-x?expand=0&rev=29
This commit is contained in:
Jan Engelhardt 2023-11-05 13:00:49 +00:00 committed by Git OBS Bridge
parent 76912eb940
commit 0ec52bfcf2

View File

@ -26,7 +26,7 @@ Group: System/X11/Utilities
URL: https://github.com/TheTumultuousUnicornOfDarkness/CPU-X
Source: https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/archive/refs/tags/v%version.tar.gz
Patch1: no-no-pie.patch
%if 0%{suse_version} == 1500
%if 0%{suse_version} < 1599
BuildRequires: gcc13
BuildRequires: gcc13-c++
%endif
@ -89,12 +89,10 @@ Shell completion definitions from %name for %name.
%autosetup -p1 -n %src_name
%build
%if 0%{suse_version} == 1500
export CC=gcc-13
export CXX=g++-13
%if 0%{suse_version} < 1599
export CC=gcc-13 CXX=g++-13
%endif
%cmake \
-DWITH_OPENCL=1
%cmake -DWITH_OPENCL=1
%cmake_build
%install