diff --git a/crack-attack-1.1.14-gcc43.patch b/crack-attack-1.1.14-gcc43.patch new file mode 100644 index 0000000..3e05f65 --- /dev/null +++ b/crack-attack-1.1.14-gcc43.patch @@ -0,0 +1,11 @@ +diff -up crack-attack-1.1.14/src/TextureLoader.h~ crack-attack-1.1.14/src/TextureLoader.h +--- crack-attack-1.1.14/src/TextureLoader.h~ 2008-01-04 23:07:02.000000000 +0100 ++++ crack-attack-1.1.14/src/TextureLoader.h 2008-01-04 23:07:02.000000000 +0100 +@@ -28,6 +28,7 @@ + #define TEXTURELOADER_H + + #include ++#include + + #include "glext.h" + #include "sstream.h" diff --git a/crack-attack.spec b/crack-attack.spec index 721018e..6e2527e 100644 --- a/crack-attack.spec +++ b/crack-attack.spec @@ -1,7 +1,7 @@ Summary: Puzzle action game Name: crack-attack Version: 1.1.14 -Release: 10%{?dist} +Release: 11%{?dist} License: GPLv2+ Group: Amusements/Games URL: http://www.nongnu.org/crack-attack/ @@ -11,6 +11,7 @@ Source2: %{name}-music.tar.gz Patch0: crack-attack-1.1.14-glutInit.patch Patch1: crack-attack-1.1.14-sanitize.patch Patch2: crack-attack-1.1.14-audio.patch +Patch3: crack-attack-1.1.14-gcc43.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libstdc++-devel desktop-file-utils ImageMagick BuildRequires: SDL-devel gtk2-devel pkgconfig SDL_mixer-devel freeglut-devel @@ -28,6 +29,7 @@ longest!? Playable both online and off. %patch0 -p1 -b .glutinit %patch1 -p1 -b .sanitize %patch2 -p1 -b .audio +%patch3 -p1 -b .gcc43 sed -i 's/-O3 -s//g' src/Makefile.in sed -i 's/-O2//g' src/gtk-gui/Makefile.in # fixup provided desktop file @@ -91,6 +93,9 @@ fi %changelog +* Fri Dec 4 2008 Hans de Goede 1.1.14-11 +- Fix building with gcc 4.3 + * Mon Aug 6 2007 Hans de Goede 1.1.14-10 - Update License tag for new Licensing Guidelines compliance