diff --git a/emptyepsilon.spec b/emptyepsilon.spec index f59a661..2f24fc2 100644 --- a/emptyepsilon.spec +++ b/emptyepsilon.spec @@ -34,6 +34,10 @@ BuildRequires: gcc-c++ BuildRequires: sfml2-devel BuildRequires: xorg-x11 BuildRequires: xorg-x11-devel +%if 0%{?sle_version:1} +# if sle_version is defined, this is not tumbleweed +BuildRequires: gcc10 gcc10-c++ +%endif %description EmptyEpsilon places you in the roles of a spaceship's bridge officers, like those seen in Star Trek. While you can play EmptyEpsilon alone or with friends, the best experience involves 6 players working together on each ship. @@ -47,6 +51,11 @@ tar xf EmptyEpsilon-%{version}.tar.gz %build mkdir externals bsdtar xvf $RPM_SOURCE_DIR/glm.zip -C externals +%if 0%{?sle_version:1} +# if sle_version is defined, this is not tumbleweed +export CC=gcc-10 +export CXX=g++-10 +%endif cmake -DSERIOUS_PROTON_DIR="$RPM_SOURCE_DIR/SeriousProton-EE-%{version}" \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_BUILD_TYPE=Release \