From 962f0ae8c1c6903d229a44fef8519be1d55e871e Mon Sep 17 00:00:00 2001 From: Michael Schwendt Date: Apr 13 2005 23:50:00 +0000 Subject: - Fix build for GCC4. --- diff --git a/enigma-0.81-gcc4.patch b/enigma-0.81-gcc4.patch new file mode 100644 index 0000000..8d6fa92 --- /dev/null +++ b/enigma-0.81-gcc4.patch @@ -0,0 +1,58 @@ +diff -Nur enigma-0.81-orig/src/actors.cc enigma-0.81/src/actors.cc +--- enigma-0.81-orig/src/actors.cc 2003-10-10 18:32:03.000000000 +0200 ++++ enigma-0.81/src/actors.cc 2005-04-14 01:42:31.000000000 +0200 +@@ -382,6 +382,8 @@ + static const double SHIELD_TIME = 10.0; + HaloState m_halostate; + }; ++ const double BasicBall::SHIELD_TIME; ++ + } + + BasicBall::BasicBall(const char *kind, double radius, double mass) +diff -Nur enigma-0.81-orig/src/game.hh enigma-0.81/src/game.hh +--- enigma-0.81-orig/src/game.hh 2003-09-28 22:47:54.000000000 +0200 ++++ enigma-0.81/src/game.hh 2005-04-14 01:36:03.000000000 +0200 +@@ -143,7 +143,7 @@ + + px::Surface *LevelPreview(LevelPack *lp, unsigned levelidx); + +- void enigma::GameReset(); ++ void GameReset(); + unsigned StartGame(LevelPack *lp, unsigned levelidx); + unsigned NextLevel(LevelPack *lp, unsigned levelidx, unsigned max_available, + bool skip_solved, bool skip_todo_and_unnamed); +diff -Nur enigma-0.81-orig/src/items.cc enigma-0.81/src/items.cc +--- enigma-0.81-orig/src/items.cc 2003-10-11 15:45:24.000000000 +0200 ++++ enigma-0.81/src/items.cc 2005-04-14 01:43:32.000000000 +0200 +@@ -1383,6 +1383,7 @@ + enum State { OPEN, CLOSED, OPENING, CLOSING } state; + bool close_after_warp; + }; ++ const double Vortex::RANGE; + } + + bool +diff -Nur enigma-0.81-orig/src/stones_complex.cc enigma-0.81/src/stones_complex.cc +--- enigma-0.81-orig/src/stones_complex.cc 2003-10-11 15:45:23.000000000 +0200 ++++ enigma-0.81/src/stones_complex.cc 2005-04-14 01:44:28.000000000 +0200 +@@ -107,6 +107,7 @@ + return false; + } + }; ++ const double RotatorStone::IMPULSE_DELAY; + } + + +diff -Nur enigma-0.81-orig/src/world.hh enigma-0.81/src/world.hh +--- enigma-0.81-orig/src/world.hh 2003-10-04 00:21:26.000000000 +0200 ++++ enigma-0.81/src/world.hh 2005-04-14 01:36:13.000000000 +0200 +@@ -191,7 +191,7 @@ + Object *GetNamedObject (const string &name); + Object *GetObject (const GridLoc &l); + +- bool world::IsLevelBorder(GridPos p); ++ bool IsLevelBorder(GridPos p); + + //---------------------------------------- + // Force fields. diff --git a/enigma.spec b/enigma.spec index 8f8fdac..429016d 100644 --- a/enigma.spec +++ b/enigma.spec @@ -1,14 +1,14 @@ Name: enigma Version: 0.81 -Release: 4 - +Release: 5 Summary: Clone of the ATARI game Oxyd Group: Amusements/Games License: GPL URL: http://www.nongnu.org/enigma/ Source0: http://savannah.nongnu.org/download/enigma/enigma-%{version}.tar.gz -Patch: enigma-0.81-gcc34.patch +Patch0: enigma-0.81-gcc34.patch +Patch1: enigma-0.81-gcc4.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: SDL-devel >= 1.2 SDL_image-devel >= 1.2 SDL_mixer-devel >= 1.2 @@ -24,7 +24,9 @@ innumerable puzzles blocking your direct way to the Oxyd stones... %prep %setup -q -%patch -p1 -b .gcc34 +%patch0 -p1 -b .gcc34 +%patch1 -p1 -b .gcc4 + %build %configure --enable-optimize @@ -57,7 +59,10 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/applications/*enigma.desktop %changelog -* Fri Apr 7 2005 Michael Schwendt +* Thu Apr 14 2005 Michael Schwendt - 0.81-5 +- Fix build for GCC4. + +* Thu Apr 7 2005 Michael Schwendt - rebuilt * Thu Nov 11 2004 Michael Schwendt - 0.81-3