From bee00dbcd2c9a352fa14031a5775d0b529ccbe71 Mon Sep 17 00:00:00 2001 From: Jan Synacek Date: Feb 20 2017 10:36:40 +0000 Subject: Fix FTBFS (#1424536) --- diff --git a/warzone2100.spec b/warzone2100.spec index 66ee116..22ccbfd 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -1,6 +1,6 @@ Name: warzone2100 Version: 3.2.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Innovative 3D real-time strategy Group: Amusements/Games @@ -44,6 +44,10 @@ Video file for %{name} #../../lib/framework/string_ext.h:181:98: error: format not a string literal and no format arguments [-Werror=format-security] # static inline int ssprintf(char (&dest)[N], char const *format, P &&... params) { return snprintf(dest, N, format, std::forward

(params)...); } 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 +%endif %configure --disable-rpath --enable-debug=no --with-distributor="Fedora" make %{_smp_mflags} @@ -70,6 +74,9 @@ install -p -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/%{name}/ %{_datadir}/%{name}/sequences.wz %changelog +* Mon Feb 20 2017 Jan Synáček - 3.2.2-4 +- Fix FTBFS (#1424536) + * Sat Feb 11 2017 Fedora Release Engineering - 3.2.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild