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:
parent
76912eb940
commit
0ec52bfcf2
10
cpu-x.spec
10
cpu-x.spec
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user