From b71d64122865fa8ce4ae5e2583e575d7192f7c5c Mon Sep 17 00:00:00 2001 From: Pete Walter Date: Feb 21 2017 07:46:02 +0000 Subject: Fix the build on RHEL --- diff --git a/warzone2100.spec b/warzone2100.spec index 22ccbfd..3a2c029 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -17,7 +17,11 @@ BuildRequires: libXrandr-devel libpng-devel libogg-devel libvorbis-devel harfbuz BuildRequires: quesoglc-devel popt-devel gettext libtheora-devel BuildRequires: automake >= 1.8 BuildRequires: desktop-file-utils +%if 0%{?fedora} >= 26 BuildRequires: compat-openssl10-devel +%else +BuildRequires: openssl-devel +%endif %description Warzone 2100 was an innovative 3D real-time strategy game back in 1999, and @@ -46,7 +50,7 @@ Video file for %{name} export CXXFLAGS="$CXXFLAGS -Wno-format-security" # https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/ZAMX5DKQF5IPWF6CYYCBNZEEMM6K5CDG/ %ifarch %{power64} -sed -ie "s/-std=c++11//g" configure +sed -ie "s/-std=c++11/-std=gnu++11/g" configure %endif %configure --disable-rpath --enable-debug=no --with-distributor="Fedora" make %{_smp_mflags}