diff --git a/enigma-gcc41.patch b/enigma-gcc41.patch new file mode 100644 index 0000000..568faea --- /dev/null +++ b/enigma-gcc41.patch @@ -0,0 +1,24 @@ +diff -ur enigma-0.92/src/file_internal.hh enigma-0.92.new/src/file_internal.hh +--- enigma-0.92/src/file_internal.hh 2004-10-22 19:26:25.000000000 +0200 ++++ enigma-0.92.new/src/file_internal.hh 2006-01-23 08:34:49.000000000 +0100 +@@ -19,7 +19,7 @@ + + class GameFS { + public: +- GameFS::GameFS(); ++ GameFS(); + + void clear() { entries.clear(); } + +diff -ur enigma-0.92/src/stones_simple.cc enigma-0.92.new/src/stones_simple.cc +--- enigma-0.92/src/stones_simple.cc 2005-03-02 21:33:36.000000000 +0100 ++++ enigma-0.92.new/src/stones_simple.cc 2006-01-23 08:39:51.000000000 +0100 +@@ -1672,7 +1672,7 @@ + KillStone(p); + SetItem(p, it_explosion1); + } +- void BombStone::message(const string &msg, const Value &) { ++ void message(const string &msg, const Value &) { + if (msg =="expl" || msg =="bombstone") + change_state(BREAK); + } diff --git a/enigma.spec b/enigma.spec index 702b03d..ae932e4 100644 --- a/enigma.spec +++ b/enigma.spec @@ -1,12 +1,13 @@ Name: enigma Version: 0.92 -Release: 1%{?dist} +Release: 2%{?dist} 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-0.92.tar.gz +Patch0: enigma-gcc41.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.4 @@ -23,6 +24,7 @@ innumerable puzzles blocking your direct way to the Oxyd stones... %prep %setup -q +%patch0 -p1 %build %configure --enable-optimize @@ -63,6 +65,9 @@ gtk-update-icon-cache -qf %{_datadir}/icons/hicolor 2>/dev/null || : %{_datadir}/applications/*enigma.desktop %changelog +* Mon Jan 23 2006 Adrian Reber - 0.92-2 +- Added patch to build with gcc 4.1 + * Sat May 07 2005 Thorsten Leemhuis - 0.92-1 - Update to 0.92 - Use disttag