From 98a098acbe901a52df0f55ea6d71c1cf143a290a Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Feb 14 2011 12:03:29 +0000 Subject: - New upstream version 1.18 - From new sf.net upstream by the Debian and Fedora blobwars packagers - With new Free music - Sound effects are back! (and Free this time) --- diff --git a/.gitignore b/.gitignore index f90b64d..187378e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ blobwars-1.09b2-music.tar.bz2 blobwars-1.11.tar.bz2 +/blobwars-1.18.tar.gz diff --git a/0001-Fix-new-compiler-warnings-thrown-by-gcc-4.6.patch b/0001-Fix-new-compiler-warnings-thrown-by-gcc-4.6.patch new file mode 100644 index 0000000..1995571 --- /dev/null +++ b/0001-Fix-new-compiler-warnings-thrown-by-gcc-4.6.patch @@ -0,0 +1,77 @@ +From 2e0e38f70b6f8843b474db20da5ea828b31d52b3 Mon Sep 17 00:00:00 2001 +From: Hans de Goede +Date: Sun, 13 Feb 2011 21:05:03 +0100 +Subject: [PATCH 1/2] Fix new compiler warnings thrown by gcc-4.6 + +--- + src/game.cpp | 6 ++++-- + src/map.cpp | 2 +- + src/mapData.cpp | 4 ++-- + 3 files changed, 7 insertions(+), 5 deletions(-) + +diff --git a/src/game.cpp b/src/game.cpp +index 281fa54..785758b 100644 +--- a/src/game.cpp ++++ b/src/game.cpp +@@ -569,11 +569,11 @@ int doGame() + SDL_FillRect(graphics.screen, NULL, graphics.black); + graphics.delay(1000); + +- Uint32 then, frames, frameLimit, millis, frameCounter; ++ Uint32 then, frames, frameLimit, millis; + Uint32 start, cur; + + #if DEBUG +- Uint32 now; ++ Uint32 now, frameCounter; + char fps[10]; + strlcpy(fps, "fps", sizeof fps); + #endif +@@ -619,7 +619,9 @@ int doGame() + frameLimit = SDL_GetTicks() + 16; + frames = millis = 0; + start = then = SDL_GetTicks(); ++#ifdef DEBUG + frameCounter = SDL_GetTicks(); ++#endif + + if ((strcmp(map.name, "Space Station") == 0) && (!game.continueFromCheckPoint)) + { +diff --git a/src/map.cpp b/src/map.cpp +index 048e2db..f31c978 100644 +--- a/src/map.cpp ++++ b/src/map.cpp +@@ -649,7 +649,7 @@ void parseMapDataLine(const char *line, int y) + + while (true) + { +- *line++; ++ line++; + + if (*line == ' ') + break; +diff --git a/src/mapData.cpp b/src/mapData.cpp +index 994446e..660cf24 100644 +--- a/src/mapData.cpp ++++ b/src/mapData.cpp +@@ -273,7 +273,7 @@ void getMapTokens() + else if (strcmp("ALPHATILES", mapEntity) == 0) + { + for (int i = 0 ; i < 15 ; i++) +- *token++; ++ token++; + + while (true) + { +@@ -288,7 +288,7 @@ void getMapTokens() + + while (true) + { +- *token++; ++ token++; + + if (*token == ' ') + break; +-- +1.7.3.2 + diff --git a/0002-Fix-Wunused-result-compiler-warnings.patch b/0002-Fix-Wunused-result-compiler-warnings.patch new file mode 100644 index 0000000..d057e1e --- /dev/null +++ b/0002-Fix-Wunused-result-compiler-warnings.patch @@ -0,0 +1,414 @@ +From 39f27126609c9c80dea1ab3d95240f4de6c240f9 Mon Sep 17 00:00:00 2001 +From: Hans de Goede +Date: Mon, 14 Feb 2011 12:22:07 +0100 +Subject: [PATCH 2/2] Fix -Wunused-result compiler warnings + +Fedora uses -Wunused-result when building packages, combined with the -Werror +from the makefile, this causes compile errors in various places because +of not properly error checking various file io actions. This patch fixes this. +--- + src/CConfig.cpp | 29 ++++++++++++++++++++--------- + src/CEngine.cpp | 22 ++++++++++++++++------ + src/CPak.cpp | 18 +++++++++++++++--- + src/CReplayData.cpp | 17 +++++++++++++++-- + src/headers.h | 1 + + src/init.cpp | 18 +++++++++++++++--- + src/loadSave.cpp | 36 ++++++++++++++++++++++++++---------- + src/pak.cpp | 33 +++++++++++++++++++++++++++++---- + 8 files changed, 137 insertions(+), 37 deletions(-) + +diff --git a/src/CConfig.cpp b/src/CConfig.cpp +index ef997bd..5121c7f 100644 +--- a/src/CConfig.cpp ++++ b/src/CConfig.cpp +@@ -113,6 +113,7 @@ bool Config::loadJoystickConfig() + + bool Config::saveJoystickConfig() + { ++ bool ret = true; + char filename[PATH_MAX]; + snprintf(filename, sizeof filename, "%sjoystick.cfg", engine->userHomeDirectory); + +@@ -122,15 +123,19 @@ bool Config::saveJoystickConfig() + + if (!fp) + { +- debug(("WARNING: Couldn't save joystick config\n")); ++ debug(("WARNING: Couldn't save joystick config: %s\n", strerror(errno))); + return false; + } +- +- fwrite(&joystick, sizeof(Joystick), 1, fp); +- ++ ++ if (fwrite(&joystick, sizeof(Joystick), 1, fp) != 1) ++ { ++ debug(("WARNING: Couldn't save joystick config: %s\n", strerror(errno))); ++ ret = false; ++ } ++ + fclose(fp); + +- return true; ++ return ret; + } + + bool Config::loadKeyConfig() +@@ -163,6 +168,7 @@ bool Config::loadKeyConfig() + + bool Config::saveKeyConfig() + { ++ bool ret = true; + char filename[PATH_MAX]; + snprintf(filename, sizeof filename, "%skeyboard.cfg", engine->userHomeDirectory); + +@@ -172,14 +178,19 @@ bool Config::saveKeyConfig() + + if (!fp) + { ++ debug(("WARNING: Couldn't save keyboard config: %s\n", strerror(errno))); + return false; + } +- +- fwrite(&keyboard, sizeof(keyboard), 1, fp); +- ++ ++ if (fwrite(&keyboard, sizeof(keyboard), 1, fp) != 1) ++ { ++ debug(("WARNING: Couldn't save keyboard config: %s\n", strerror(errno))); ++ ret = false; ++ } ++ + fclose(fp); + +- return true; ++ return ret; + } + + void Config::restoreKeyDefaults() +diff --git a/src/CEngine.cpp b/src/CEngine.cpp +index 7017039..a0deaaf 100644 +--- a/src/CEngine.cpp ++++ b/src/CEngine.cpp +@@ -330,6 +330,8 @@ since SDL currently provides no means to load music directly from memory + */ + bool Engine::unpack(const char *filename, int fileType) + { ++ bool ret = true; ++ + if (fileType == PAK_DATA) + { + delete[] dataBuffer; +@@ -396,17 +398,23 @@ bool Engine::unpack(const char *filename, int fileType) + return false; + } + +- fwrite(binaryBuffer, 1, pak.getUncompressedSize(), fp); ++ if (fwrite(binaryBuffer, 1, pak.getUncompressedSize(), fp) != pak.getUncompressedSize()) ++ { ++ printf("Fatal Error: could not write to %s: %s", tempPath, strerror(errno)); ++ ret = false; ++ } + fclose(fp); + } + +- debug(("unpack() : Loaded %s (%d)\n", filename, pak.getUncompressedSize())); ++ debug(("unpack() : Loaded %s (%d), ret: %d\n", filename, pak.getUncompressedSize(), (int)ret)); + +- return true; ++ return ret; + } + + bool Engine::loadData(const char *filename) + { ++ bool ret = true; ++ + delete[] dataBuffer; + dataBuffer = NULL; + +@@ -427,14 +435,16 @@ bool Engine::loadData(const char *filename) + + dataBuffer = new unsigned char[fSize + 1]; + +- fread(dataBuffer, 1, fSize, fp); ++ if (fread(dataBuffer, 1, fSize, fp) != (size_t)fSize) ++ ret = false; ++ + dataBuffer[fSize] = 0; + + fclose(fp); + +- debug(("loadData() : Loaded %s (%d)\n", filename, fSize)); ++ debug(("loadData() : Loaded %s (%d), ret: %d\n", filename, fSize, (int)ret)); + +- return true; ++ return ret; + } + + void Engine::reportFontFailure() +diff --git a/src/CPak.cpp b/src/CPak.cpp +index ff29cef..f630867 100644 +--- a/src/CPak.cpp ++++ b/src/CPak.cpp +@@ -66,8 +66,16 @@ void Pak::setPakFile(const char *pakFilename) + } + + fseek(pak, (-sizeof(Uint32)) * 2, SEEK_END); +- fread(&listPos, sizeof(Uint32), 1, pak); +- fread(&numberOfFiles, sizeof(Uint32), 1, pak); ++ if (fread(&listPos, sizeof(Uint32), 1, pak) != 1) ++ { ++ fclose(pak); ++ showPakErrorAndExit(); ++ } ++ if (fread(&numberOfFiles, sizeof(Uint32), 1, pak) != 1) ++ { ++ fclose(pak); ++ showPakErrorAndExit(); ++ } + + debug(("Pak : File list resides at %d\n", (int)listPos)); + debug(("Pak : Number of files are %d\n", (int)numberOfFiles)); +@@ -130,7 +138,11 @@ bool Pak::unpack(const char *filename, unsigned char **buffer) + input = new unsigned char[(int)(currentFile->cSize * 1.01) + 12]; + *buffer = new unsigned char[currentFile->fSize + 1]; + +- fread(input, 1, currentFile->cSize, pak); ++ if (fread(input, 1, currentFile->cSize, pak) != currentFile->cSize) ++ { ++ fclose(pak); ++ showPakErrorAndExit(); ++ } + + uLongf fSize = (uLongf)currentFile->fSize; + +diff --git a/src/CReplayData.cpp b/src/CReplayData.cpp +index 6af8492..51c1834 100644 +--- a/src/CReplayData.cpp ++++ b/src/CReplayData.cpp +@@ -22,7 +22,12 @@ ReplayData::~ReplayData() + { + save(); + rewind(fp); +- fwrite(&header, sizeof(ReplayDataHeader), 1, fp); ++ int size = fwrite(&header, sizeof(ReplayDataHeader), 1, fp); ++ if (size != 1) ++ { ++ printf("Error saving replay data: %s\n", strerror(errno)); ++ exit(1); ++ } + } + + if (replayMode != REPLAY_MODE::NONE) +@@ -98,7 +103,15 @@ void ReplayData::setMode(REPLAY_MODE::TYPE replayMode) + + swapHeaderEndians(); + +- fwrite(&header, sizeof(ReplayDataHeader), 1, fp); ++ int size = fwrite(&header, sizeof(ReplayDataHeader), 1, fp); ++ if (size != 1) ++ { ++ printf("Error writing replay data header: %s\n", strerror(errno)); ++ replayMode = REPLAY_MODE::NONE; ++ fclose(fp); ++ fp = NULL; ++ return; ++ } + + reset(); + } +diff --git a/src/headers.h b/src/headers.h +index be31931..d679809 100644 +--- a/src/headers.h ++++ b/src/headers.h +@@ -18,6 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + */ + ++#include + #include + #include + #include +diff --git a/src/init.cpp b/src/init.cpp +index 46ac381..b12cba6 100644 +--- a/src/init.cpp ++++ b/src/init.cpp +@@ -144,7 +144,10 @@ bool loadConfig() + return true; + } + +- fscanf(fp, "%10f %10d", &version, &release); ++ if (fscanf(fp, "%10f %10d", &version, &release) != 2) ++ { ++ rtn = true; ++ } + + debug(("Version = %.2f - Expected %.2f\n", version, VERSION)); + debug(("Release = %d - Expected %d\n", release, RELEASE)); +@@ -154,7 +157,10 @@ bool loadConfig() + rtn = true; + } + +- fscanf(fp, "%10d %10d %10d %10d %10d %10d %10d", &engine.fullScreen, &game.musicVol, &game.soundVol, &game.output, &game.brightness, &engine.extremeAvailable, &game.gore); ++ if (fscanf(fp, "%10d %10d %10d %10d %10d %10d %10d", &engine.fullScreen, &game.musicVol, &game.soundVol, &game.output, &game.brightness, &engine.extremeAvailable, &game.gore) != 7) ++ { ++ rtn = true; ++ } + + fclose(fp); + +@@ -223,7 +229,13 @@ int initMedalService(void *data) + return 0; + } + +- fscanf(fp, "%19s", privateKey); ++ if (fscanf(fp, "%19s", privateKey) != 1) ++ { ++ graphics.showMedalMessage(-1, "Medal Key file corrupt - Online functions disabled"); ++ SDL_mutexV(medalServer.lock); ++ fclose(fp); ++ return 0; ++ } + + fclose(fp); + +diff --git a/src/loadSave.cpp b/src/loadSave.cpp +index 73f5384..9489f5e 100644 +--- a/src/loadSave.cpp ++++ b/src/loadSave.cpp +@@ -122,8 +122,11 @@ bool loadGame(int slot) + + while (true) + { +- fgets(line, 1024, fp); +- ++ if (!fgets(line, 1024, fp)) { ++ fclose(fp); ++ graphics.showErrorAndExit("Unexpected end of file reading save data", ""); ++ } ++ + sscanf(line, "%*c %[^\"] %*c %*c %[^\"] %*c %d %d", string[0], string[1], ¶m[0], ¶m[1]); + + data = new Data(); +@@ -160,8 +163,11 @@ bool loadGame(int slot) + + while (true) + { +- fgets(line, 1024, fp); +- ++ if (!fgets(line, 1024, fp)) { ++ fclose(fp); ++ graphics.showErrorAndExit("Unexpected end of file reading save data", ""); ++ } ++ + sscanf(line, "%[^\n\r]", string[0]); + strlcpy(stageName, string[0], sizeof stageName); + +@@ -169,8 +175,11 @@ bool loadGame(int slot) + { + break; + } +- +- fgets(line, 1024, fp); ++ ++ if (!fgets(line, 1024, fp)) { ++ fclose(fp); ++ graphics.showErrorAndExit("Unexpected end of file reading save data", ""); ++ } + sscanf(line, "%d", &numberOfLines); + + debug(("Read %s with %d lines.\n", stageName, numberOfLines)); +@@ -180,9 +189,12 @@ bool loadGame(int slot) + for (int i = 0 ; i < numberOfLines ; i++) + { + persistData = new PersistData(); +- +- fgets(line, 1024, fp); +- ++ ++ if (!fgets(line, 1024, fp)) { ++ fclose(fp); ++ graphics.showErrorAndExit("Unexpected end of file reading save data", ""); ++ } ++ + strlcpy(persistData->data, line, sizeof persistData->data); + + //debug(("Read %d: %s", i, persistData->data)); +@@ -346,7 +358,11 @@ void saveGame() + graphics.showErrorAndExit("File write error whilst saving game", ""); + } + +- fwrite(&game, sizeof(Game), 1, fp); ++ if (fwrite(&game, sizeof(Game), 1, fp) != 1) ++ { ++ fclose(fp); ++ graphics.showErrorAndExit("File write error whilst saving game", strerror(errno)); ++ } + + fclose(fp); + +diff --git a/src/pak.cpp b/src/pak.cpp +index d70fe57..226afe4 100644 +--- a/src/pak.cpp ++++ b/src/pak.cpp +@@ -154,7 +154,12 @@ void recurseDirectory(const char *dirName) + + fileData[files].set(filename, fSize, cSize, ftell(pak)); + +- fwrite(output, 1, cSize, pak); ++ if (fwrite(output, 1, cSize, pak) != cSize) ++ { ++ fprintf(stderr, "Error writing to pakfile: %s\n", strerror(errno)); ++ fclose(pak); ++ exit(1); ++ } + + files++; + +@@ -183,6 +188,11 @@ int main(int argc, char *argv[]) + } + + pak = fopen(argv[argc - 1], "wb"); ++ if (!pak) ++ { ++ fprintf(stderr, "Error opening %s: %s\n", argv[argc - 1], strerror(errno)); ++ return 1; ++ } + + for (int i = 1 ; i < (argc - 1) ; i++) + { +@@ -211,13 +221,28 @@ int main(int argc, char *argv[]) + break; + } + +- fwrite(&fileData[i], sizeof(FileData), 1, pak); ++ if (fwrite(&fileData[i], sizeof(FileData), 1, pak) != 1) ++ { ++ fprintf(stderr, "Error writing to %s: %s\n", argv[argc - 1], strerror(errno)); ++ fclose(pak); ++ return 1; ++ } + } + + unsigned int numberOfFiles = totalFiles; + +- fwrite(&pos, sizeof(unsigned int), 1, pak); +- fwrite(&numberOfFiles, sizeof(unsigned int), 1, pak); ++ if (fwrite(&pos, sizeof(unsigned int), 1, pak) != 1) ++ { ++ fprintf(stderr, "Error writing to %s: %s\n", argv[argc - 1], strerror(errno)); ++ fclose(pak); ++ return 1; ++ } ++ if (fwrite(&numberOfFiles, sizeof(unsigned int), 1, pak) != 1) ++ { ++ fprintf(stderr, "Error writing to %s: %s\n", argv[argc - 1], strerror(errno)); ++ fclose(pak); ++ return 1; ++ } + + fclose(pak); + +-- +1.7.3.2 + diff --git a/blobwars-1.05-debian.patch b/blobwars-1.05-debian.patch index dd98ac6..51e67ef 100644 --- a/blobwars-1.05-debian.patch +++ b/blobwars-1.05-debian.patch @@ -1,7 +1,8 @@ ---- blobwars-1.06/makefile.debian 2007-04-06 18:16:35.000000000 +0200 -+++ blobwars-1.06/makefile 2007-04-10 21:10:10.000000000 +0200 -@@ -9,8 +9,8 @@ - DEMO = 0 +diff -up blobwars-1.18/makefile.orig blobwars-1.18/makefile +--- blobwars-1.18/makefile.orig 2011-02-13 18:22:20.000000000 +0100 ++++ blobwars-1.18/makefile 2011-02-13 23:08:14.657851020 +0100 +@@ -8,8 +8,8 @@ RELEASE = 1 + USEPAK = 0 PREFIX=$(DESTDIR)/usr -BINDIR = $(PREFIX)/games/ @@ -11,7 +12,7 @@ DOCDIR = $(PREFIX)/share/doc/$(PROG)/ ICONDIR = $(PREFIX)/share/icons/hicolor/ DESKTOPDIR = $(PREFIX)/share/applications/ -@@ -78,9 +78,8 @@ +@@ -107,9 +107,8 @@ install: mkdir -p $(ICONDIR)64x64/apps mkdir -p $(DESKTOPDIR) diff --git a/blobwars-1.05-desktop.patch b/blobwars-1.05-desktop.patch index 10a2257..3bd09a8 100644 --- a/blobwars-1.05-desktop.patch +++ b/blobwars-1.05-desktop.patch @@ -1,16 +1,14 @@ --- blobwars-1.06/icons/blobwars.desktop.dsktop 2007-04-06 18:16:35.000000000 +0200 +++ blobwars-1.06/icons/blobwars.desktop 2007-04-10 21:01:28.000000000 +0200 -@@ -1,9 +1,9 @@ +@@ -1,8 +1,8 @@ [Desktop Entry] Encoding=UTF-8 --Categories=Application;Game; +-Categories=ArcadeGame;Game; -X-Desktop-File-Install-Version=1.0 -Name=Metal Blob Solid --Icon=blobwars +Categories=Game;ActionGame; +Name=Blob Wars : Metal Blob Solid +Comment=Mission and Objective based 2D Platform Game -+Icon=blobwars.png + Icon=blobwars Exec=blobwars Terminal=false - Type=Application diff --git a/blobwars-1.07-es.patch b/blobwars-1.07-es.patch deleted file mode 100644 index 7c4a82e..0000000 --- a/blobwars-1.07-es.patch +++ /dev/null @@ -1,357 +0,0 @@ ---- locale/es.po.old 2007-06-03 16:27:27.000000000 +0200 -+++ locale/es.po 2007-06-04 09:33:51.000000000 +0200 -@@ -1,7 +1,7 @@ - msgid "" - msgstr "" - "Project-Id-Version: blobwars 1.06\n" --"PO-Revision-Date: 2007-04-13 12:47+0100\n" -+"PO-Revision-Date: 2007-06-04 09:33+0100\n" - "Last-Translator: Pacho Ramos \n" - "Language-Team: Catalan Localization \n" - "MIME-Version: 1.0\n" -@@ -166,7 +166,7 @@ - msgstr "Activar 4 Puntos de Seguridad" - - msgid "Battle Galdov" --msgstr "Combate contra Galdov" -+msgstr "Lucha contra Galdov" - - msgid "Collect 10 Cherry Plants" - msgstr "Recolectar 10 Plantas de Cerezas" -@@ -187,28 +187,28 @@ - msgstr "Desactivar Sistemas de Seguridad" - - msgid "Defeat 10 Hard Hide Blobs" --msgstr "Derrotar 10 Blobs de Piel Dura" -+msgstr "Derrotar a 10 Blobs de Piel Dura" - - msgid "Defeat 15 Machine Gun Droids" --msgstr "Derrotar 15 Androides con Ametralladora" -+msgstr "Derrotar a 15 Androides con Ametralladora" - - msgid "Defeat 25 Machine Gun Droids" --msgstr "Derrotar 25 Androides con Ametralladora" -+msgstr "Derrotar a 25 Androides con Ametralladora" - - msgid "Defeat 30 enemies" --msgstr "Derrotar 30 enemigos" -+msgstr "Derrotar a 30 enemigos" - - msgid "Defeat 50 Enemies" --msgstr "Derrotar 50 Enemigos" -+msgstr "Derrotar a 50 Enemigos" - - msgid "Defeat 100 Enemies" --msgstr "Derrotar 100 Enemigos" -+msgstr "Derrotar a 100 Enemigos" - - msgid "Defeat 200 Enemies" --msgstr "Derrotar 200 Enemigos" -+msgstr "Derrotar a 200 Enemigos" - - msgid "Defeat BioMech Jetpack Blob" --msgstr "Derrotar Blob BioMec con la Mochila a Propulsión" -+msgstr "Derrotar a Blob BioMec con la Mochila a Propulsión" - - msgid "Defeat Galdov" - msgstr "Derrotar a Galdov" -@@ -247,7 +247,7 @@ - msgstr "Inhabilitar el Cañón Automático" - - msgid "Enter Ancient Tomb" --msgstr "Entrar a la Tumba Antigua" -+msgstr "Entrar en la Tumba Antigua" - - msgid "Exit the Ice Caves" - msgstr "Salir de las Cuevas de Hielo" -@@ -268,7 +268,7 @@ - msgstr "Encontrar 2 cartuchos de dinamita" - - msgid "Find 2nd Cypher Piece" --msgstr "encontrar la segunda Pieza Clave" -+msgstr "Encontrar la segunda Pieza Clave" - - msgid "Find 3 Ancient Cogs" - msgstr "Encontrar 3 Antiguas Ruedas Dentadas" -@@ -314,25 +314,25 @@ - msgstr "Encontrar Fragmentos de la Esfera del Agua" - - msgid "Get the Ancient Fire Crystal" --msgstr "Toma el Antiguo Cristal de Fuego" -+msgstr "Consigue el Antiguo Cristal de Fuego" - - msgid "Get the Ancient Reality Crystal" --msgstr "Toma el Antiguo Cristal de la Realidad" -+msgstr "Consigue el Antiguo Cristal de la Realidad" - - msgid "Get the Ancient Space Crystal" --msgstr "Toma el Antiguo Cristal del Espacio" -+msgstr "Consigue el Antiguo Cristal del Espacio" - - msgid "Get the Ancient Time Crystal" --msgstr "Toma el Antiguo Cristal del Tiempo" -+msgstr "Consigue el Antiguo Cristal del Tiempo" - - msgid "Get the Aqua Lung" --msgstr "Toma el Pulmón Acuático" -+msgstr "Consigue el Pulmón Acuático" - - msgid "Get the Jetpack" --msgstr "Toma la Mochila a Propulsión" -+msgstr "Consigue la Mochila a Propulsión" - - msgid "Get the Reality Crystal" --msgstr "Toma el Cristal de la Realidad" -+msgstr "Consigue el Cristal de la Realidad" - - msgid "Get to the Exit" - msgstr "Llega a la Salida" -@@ -375,16 +375,16 @@ - - # Picked up... - msgid "Picked up an Ancient Cog" --msgstr "Has tomado una Rueda Dentada" -+msgstr "Has adquirido una Rueda Dentada" - - msgid "Picked up an Ancient Key" --msgstr "Has tomado una Llave Antigua" -+msgstr "Has adquirido una Llave Antigua" - - msgid "Picked up a Blue Keycard" --msgstr "Has tomado una Tarjeta Azul" -+msgstr "Has adquirido una Tarjeta Azul" - - msgid "Picked up a Bronze Key" --msgstr "Has tomado una Llave de Bronce" -+msgstr "Has adquirido una Llave de Bronce" - - msgid "Picked up a bunch of Cherries" - msgstr "Has tomado un racimo de Cerezas" -@@ -393,28 +393,28 @@ - msgstr "Has tomado una Cereza" - - msgid "Picked up a Crystal Shard" --msgstr "Has tomado un Fragmento de Cristal" -+msgstr "Has adquirido un Fragmento de Cristal" - - msgid "Picked up a Cyan Keycard" --msgstr "Has tomado una Tarjeta Cian" -+msgstr "Has adquirido una Tarjeta Cian" - - msgid "Picked up a Gold Key" --msgstr "Has tomado una Llave de Oro" -+msgstr "Has adquirido una Llave de Oro" - - msgid "Picked up a Green Keycard" --msgstr "Has tomado una Tarjeta Verde" -+msgstr "Has adquirido una Tarjeta Verde" - - msgid "Picked up a Grenades" - msgstr "Has conseguido Granadas" - - msgid "Picked up a Keycard" --msgstr "Has tomado una Tarjeta" -+msgstr "Has adquirido una Tarjeta" - - msgid "Picked up a Laser Gun" - msgstr "Has conseguido un Cañón Láser" - - msgid "Picked up a Machine Gun" --msgstr "Has aconseguido una Ametralladora" -+msgstr "Has conseguido una Ametralladora" - - msgid "Picked up a pair of Cherries" - msgstr "Has tomado un par de Cerezas" -@@ -423,16 +423,16 @@ - msgstr "Has conseguido una Pistola" - - msgid "Picked up a Purple Keycard" --msgstr "Has tomado una Tarjeta Morada" -+msgstr "Has adquirido una Tarjeta Morada" - - msgid "Picked up a Red Keycard" --msgstr "Has tomado una Tarjeta Roja" -+msgstr "Has adquirido una Tarjeta Roja" - - msgid "Picked up a set of Grenades" - msgstr "Has conseguido un juego de Granadas" - - msgid "Picked up a Silver Key" --msgstr "Has tomado una Llave de Plata" -+msgstr "Has adquirido una Llave de Plata" - - msgid "Picked up a Three Way Spread" - msgstr "Has conseguido un Rifle a Tres Bandas" -@@ -506,7 +506,7 @@ - msgstr "¡¿qué era eso?!" - - msgid "Galdov: And this is the best the Blob Army can offer?" --msgstr "Galdov: Y esto es lo mejor que la Armada Blob puede ofrecer?" -+msgstr "Galdov: ¿Y esto es lo mejor que la Armada Blob puede ofrecer?" - - msgid "Galdov: Stupid creature!! Give up and join us!" - msgstr "Galdov: ¡¡Criatura estúpida!! ¡¡Abandona y únete a nosotros!!" -@@ -531,7 +531,7 @@ - msgstr "Precisión" - - msgid "All Required Objectives Met - Mission Complete" --msgstr "Todos los Objeticos requeridos alcanzados - Misión Completada" -+msgstr "Todos los Objetivos requeridos alcanzados - Misión Completada" - - msgid "Ammo Used" - msgstr "Munición Usada" -@@ -564,7 +564,7 @@ - msgstr "Tanque BioMec V2.6" - - msgid "Blob Wars : Episode I" --msgstr "Blob Wars : Episodio II" -+msgstr "Blob Wars : Episodio I" - - msgid "Bonuses Picked Up:" - msgstr "Bonificaciones Obtenidas:" -@@ -670,7 +670,7 @@ - msgstr "El Cuarto Piso ya es accesible" - - msgid "Galdov has dropped the crystal! Quick! Get it!!" --msgstr "¡¡Galdov ha perdido el cristal!! ¡Rápido! ¡A cogerlo!" -+msgstr "¡¡Galdov ha perdido el cristal!! ¡Rápido! ¡Hay que conseguirlo!" - - msgid "Got the Aqua Lung! You can now swim forever!" - msgstr "¡Ya tienes el Pulmón Acuático! ¡Podrás nadar para siempre¡" -@@ -703,13 +703,13 @@ - msgstr "++ Inventario ++" - - msgid "Items" --msgstr "Objectos" -+msgstr "Objetos" - - msgid "Items Collected" --msgstr "Objectos Recolectados" -+msgstr "Objetos Recolectados" - - msgid "Items Collected:" --msgstr "Objectos Recolectados:" -+msgstr "Objetos Recolectados:" - - msgid "Jetpack" - msgstr "Mochila a Propulsión" -@@ -763,7 +763,7 @@ - msgstr "Metal Blob Solid : Estadísticas" - - msgid "MIA Statistics" --msgstr "Estadísicadas de Perdidos En Acción" -+msgstr "Estadísticas de Perdidos En Acción" - - msgid "MIAs" - msgstr "PEAs" -@@ -820,7 +820,7 @@ - msgstr "%s - Objectivo Completado - ¡Punto de Control Alcanzado!" - - msgid "Objectives Completed:" --msgstr "Objectivos Completados:" -+msgstr "Objetivos Completados:" - - msgid "Obstacles Reset" - msgstr "Obstáculos Reiniciados" -@@ -850,7 +850,7 @@ - msgstr "Presenta" - - msgid "Press Button to Continue..." --msgstr "Presiona Botón para Continuar..." -+msgstr "Presiona Tabulador para Continuar..." - - msgid "Press Fire to Continue" - msgstr "Presiona Fuego para Continuar" -@@ -862,16 +862,16 @@ - msgstr "Rescatar %d PEAs - Objectivo Completado - ¡Punto de Control Alcanzado!" - - msgid "Rescued %s!" --msgstr "¡Has rescatado %s!" -+msgstr "¡Has rescatado a %s!" - - msgid "Rescued %s - Checkpoint Reached!" --msgstr "¡Has rescatado %s - Punto de Control Alcanzado!" -+msgstr "¡Has rescatado a %s - Punto de Control Alcanzado!" - - msgid "Save Complete" - msgstr "Salvado Completado" - - msgid "Saving Game to Save Slot #%d. Please Wait..." --msgstr "Salvando el Juego a la Ranura #%d. Un Momento..." -+msgstr "Salvando el Juego en la Ranura #%d. Un Momento..." - - msgid "Score:" - msgstr "Puntuación:" -@@ -991,7 +991,7 @@ - msgstr "¡Ya tienes la Mochila a Propulsión!" - - msgid "You'll need to 'Kill Two Birds with One Stone' here..." --msgstr "Aquí necesitarás \"Matar Dos Pájaros de Una Pedrada\"..." -+msgstr "Aquí necesitarás \"Matar Dos Pájaros de Una Tiro\"..." - - # Keys - msgid "backspace" ---- data/es/introText.old 2007-06-02 11:27:48.000000000 +0200 -+++ data/es/introText 2007-06-03 16:54:22.000000000 +0200 -@@ -8,7 +8,9 @@ - - 0 0 10 - @none@ --Los Blobs eran una raza feliz y amigable. No necesitaban nada más. Pasaban sus días criando los hijos, recogiendo Cerezas y estudiando astrofísica y física cuántica. -+Los Blobs eran una raza feliz y amigable. No necesitaban nada más. -+Pasaban sus días criando a sus hijos, recogiendo Cerezas y -+estudiando astrofísica y física cuántica. - - 600 0 1 - @none@ -@@ -18,7 +20,9 @@ - - 0 0 10 - @none@ --Las guerras y conflictos eran leyendas para los Blobs. Muchos de ellos nunca habían visto un arma y algunos incluso dudaban de su existencia. Eran vidas felices, más todavía por su mundo limpio, climas excelentes y lugares de vacaciones. -+Las guerras y conflictos eran leyendas para los Blobs. Muchos de ellos nunca -+habían visto un arma y algunos incluso dudaban de su existencia. Eran vidas -+felices, aún más por su mundo limpio, climas excelentes y lugares de vacaciones. - - -600 0 1 - @none@ -@@ -40,7 +44,8 @@ - - 300 0 0 - @none@ --Las bombas de los invasores alienígenas llovieron sobre su mundo, los peores temores de los Blobs se hicieron realidad... -+Las bombas de los invasores alienígenas llovieron sobre su mundo, -+los peores temores de los Blobs se hicieron realidad... - @none@ - - 200 0 0 ---- data/es/titleWidgets.old 2007-06-03 17:39:49.000000000 +0200 -+++ data/es/titleWidgets 2007-06-03 17:40:02.000000000 +0200 -@@ -5,8 +5,8 @@ - BUTTON help mainMenu "Ayuda" "*" -1 360 0 0 - BUTTON quit mainMenu "Salir" "*" -1 390 0 0 - --LABEL label help "Para las instrucciones del juego, mira el manual de" "*" -1 260 0 0 --LABEL label help "instalado en la siguiente localización," "*" -1 290 0 0 -+LABEL label help "Para las instrucciones del juego, mira el manual del" "*" -1 260 0 0 -+LABEL label help "juego instalado en la siguiente localización," "*" -1 290 0 0 - LABEL labelManual help "/usr/share/doc/blobwars/manual.html" "*" -1 320 0 0 - LABEL labelManual help "(actualmente sólo en inglés)" "*" -1 350 0 0 - ---- data/es/optionWidgets.old 2007-06-03 17:03:59.000000000 +0200 -+++ data/es/optionWidgets 2007-06-03 17:09:07.000000000 +0200 -@@ -1,11 +1,11 @@ - RADIO fullscreen options "Pantalla Completa" "No|Sí" 100 65 0 1 - SMOOTH_SLIDER soundvol options "Volumen de Sonido" "*" 100 100 0 128 - SMOOTH_SLIDER musicvol options "Volumen de Música" "*" 100 135 0 128 --RADIO output options "Tipus de Sortida" "Mudo|Mono|Estéreo" 100 170 0 2 -+RADIO output options "Tipo de Sonido" "Mudo|Mono|Estéreo" 100 170 0 2 - SLIDER gamma options "Brillo" "*" 100 205 1 20 - RADIO gore options "Derramamiento de Sangre" "No|Sí" 100 240 0 1 --BUTTON keys options "Configura Teclas..." "*" 100 275 0 100 --BUTTON joysticks options "Configura JoyStick..." "*" 100 310 0 100 -+BUTTON keys options "Configura las Teclas..." "*" 100 275 0 100 -+BUTTON joysticks options "Configura el JoyStick..." "*" 100 310 0 100 - - BUTTON cheats options "Trucos..." "*" 100 345 0 100 - diff --git a/blobwars-1.09b2-font_error.patch b/blobwars-1.09b2-font_error.patch deleted file mode 100644 index 4bbd076..0000000 --- a/blobwars-1.09b2-font_error.patch +++ /dev/null @@ -1,49 +0,0 @@ -diff -u blobwars-1.09b2/src/game.cpp blobwars-1.09b2-new/src/game.cpp ---- blobwars-1.09b2/src/game.cpp 2008-02-29 19:07:01.000000000 +0100 -+++ blobwars-1.09b2-new/src/game.cpp 2008-08-30 00:57:19.000000000 +0200 -@@ -407,8 +407,7 @@ - if (map.totalMIAs > 0) - { - graphics.setFontColor(0xff, 0xff, 0xff, 0x00, 0x00, 0x00); -- sprintf(message, "%s", _("Rescue %d MIAs")); -- sprintf(message, message, map.requiredMIAs); -+ sprintf(message, _("Rescue %d MIAs"), map.requiredMIAs); - graphics.drawString(message, col1, y, TXT_LEFT, panel); - - if (map.foundMIAs < map.requiredMIAs) -diff -u blobwars-1.09b2/src/info.cpp blobwars-1.09b2-new/src/info.cpp ---- blobwars-1.09b2/src/info.cpp 2008-02-29 19:07:01.000000000 +0100 -+++ blobwars-1.09b2-new/src/info.cpp 2008-08-30 01:00:48.000000000 +0200 -@@ -233,8 +233,7 @@ - graphics.drawString(string, col2, y, TXT_LEFT, graphics.screen); - - graphics.drawString(_("Best Combo"), col1, y += 20, TXT_RIGHT, graphics.screen); -- sprintf(string, "%s", _("%d Hits")); -- sprintf(string, string, game.maxComboHits); -+ sprintf(string, _("%d Hits"), game.maxComboHits); - graphics.drawString(string, col2, y, TXT_LEFT, graphics.screen); - - graphics.drawString(_("++ Inventory ++"), 320, y += 40, TXT_CENTERED, graphics.screen); -@@ -249,8 +248,7 @@ - if (map.totalMIAs > 0) - { - graphics.setFontColor(0xff, 0xff, 0xff, 0x00, 0x00, 0x00); -- sprintf(message, "%s", _("Rescue %d MIAs")); -- sprintf(message, message, map.requiredMIAs); -+ sprintf(message, _("Rescue %d MIAs"), map.requiredMIAs); - graphics.drawString(message, col1, y, TXT_RIGHT, graphics.screen); - - if (map.foundMIAs < map.requiredMIAs) -diff -u blobwars-1.09b2/src/mission.cpp blobwars-1.09b2-new/src/mission.cpp ---- blobwars-1.09b2/src/mission.cpp 2008-02-29 19:07:01.000000000 +0100 -+++ blobwars-1.09b2-new/src/mission.cpp 2008-08-30 01:00:39.000000000 +0200 -@@ -220,8 +220,7 @@ - if (map.totalMIAs > 0) - { - graphics.setFontColor(0xff, 0xff, 0xff, 0x00, 0x00, 0x00); -- sprintf(message, "%s", _("Rescue %d MIAs")); -- sprintf(message, message, map.requiredMIAs); -+ sprintf(message, _("Rescue %d MIAs"), map.requiredMIAs); - graphics.drawString(message, col1, y, TXT_RIGHT, graphics.background); - - if (map.foundMIAs < map.requiredMIAs) diff --git a/blobwars-1.09b2-makefile.patch b/blobwars-1.09b2-makefile.patch deleted file mode 100644 index fb5b8f0..0000000 --- a/blobwars-1.09b2-makefile.patch +++ /dev/null @@ -1,43 +0,0 @@ ---- makefile.orig 2008-02-29 19:07:01.000000000 +0100 -+++ makefile 2008-08-29 20:30:32.000000000 +0200 -@@ -8,8 +8,8 @@ - USEPAK = 1 - - PREFIX=$(DESTDIR)/usr --BINDIR = $(PREFIX)/games/ --DATADIR = $(PREFIX)/share/games/blobwars/ -+BINDIR = $(PREFIX)/bin/ -+DATADIR = $(PREFIX)/share/blobwars/ - DOCDIR = $(PREFIX)/share/doc/$(PROG)/ - ICONDIR = $(PREFIX)/share/icons/hicolor/ - DESKTOPDIR = $(PREFIX)/share/applications/ -@@ -18,7 +18,7 @@ - CXXFLAGS += `sdl-config --cflags` -DVERSION=$(VERSION) -DRELEASE=$(RELEASE) -DUSEPAK=$(USEPAK) - CXXFLAGS += -DPAKNAME=\"$(PAKNAME)\" -DPAKLOCATION=\"$(DATADIR)\" -DUNIX -DGAMEPLAYMANUAL=\"$(DOCDIR)index.html\" -Wall - CXXFLAGS += -DLOCALEDIR=\"$(LOCALEDIR)\" --CXXFLAGS += $(CFLAGS) -pg -Werror -+CXXFLAGS += $(CFLAGS) -pg - LIBS = `sdl-config --libs` -lSDL_mixer -lSDL_image -lSDL_ttf -lz - - OBJS += CAudio.o -@@ -105,13 +105,13 @@ - mkdir -p $(ICONDIR)64x64/apps - mkdir -p $(DESKTOPDIR) - -- install -o root -g games -m 755 $(PROG) $(BINDIR)$(PROG) -- install -o root -g games -m 644 $(PAKNAME) $(DATADIR)$(PAKNAME) -- install -o root -g games -m 644 $(DOCS) $(DOCDIR) -- cp $(ICONS)$(PROG).png $(ICONDIR)32x32/apps/ -- cp $(ICONS)$(PROG)-mini.png $(ICONDIR)16x16/apps/$(PROG).png -- cp $(ICONS)$(PROG)-large.png $(ICONDIR)64x64/apps/$(PROG).png -- cp $(ICONS)$(PROG).desktop $(DESKTOPDIR) -+ install -m 755 $(PROG) $(BINDIR)$(PROG) -+ install -m 644 $(PAKNAME) $(DATADIR)$(PAKNAME) -+ install -m 644 $(DOCS) $(DOCDIR) -+ cp -p $(ICONS)$(PROG).png $(ICONDIR)32x32/apps/ -+ cp -p $(ICONS)$(PROG)-mini.png $(ICONDIR)16x16/apps/$(PROG).png -+ cp -p $(ICONS)$(PROG)-large.png $(ICONDIR)64x64/apps/$(PROG).png -+ cp -p $(ICONS)$(PROG).desktop $(DESKTOPDIR) - - @for f in $(LOCALE_MO); do \ - lang=`echo $$f | sed -e 's/^locale\///;s/\.mo$$//'`; \ diff --git a/blobwars-1.11-es-title.patch b/blobwars-1.11-es-title.patch deleted file mode 100644 index d7b1b6d..0000000 --- a/blobwars-1.11-es-title.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- data/es/titleWidgets~ 2009-02-01 12:34:45.000000000 +0100 -+++ data/es/titleWidgets 2009-03-02 09:52:35.000000000 +0100 -@@ -6,7 +6,7 @@ - BUTTON quit mainMenu "Salir" "*" -1 390 0 0 - - LABEL label help "Para las instrucciones del juego, mira el manual del" "*" -1 260 0 0 --LABEL label help "juego instalado en la siguiente localización," "*" -1 290 0 0 -+LABEL label help "juego instalado en la siguiente localización:" "*" -1 290 0 0 - LABEL labelManual help "/usr/share/doc/blobwars/manual.html" "*" -1 320 0 0 - LABEL labelManual help "(actualmente sólo en inglés)" "*" -1 350 0 0 - diff --git a/blobwars-1.11-es.patch b/blobwars-1.11-es.patch deleted file mode 100644 index 4225889..0000000 --- a/blobwars-1.11-es.patch +++ /dev/null @@ -1,136 +0,0 @@ ---- locale/es.po.orig 2009-03-02 09:07:32.000000000 +0100 -+++ locale/es.po 2009-03-02 09:08:24.000000000 +0100 -@@ -1,9 +1,9 @@ - msgid "" - msgstr "" --"Project-Id-Version: blobwars 1.06\n" --"PO-Revision-Date: 2007-06-04 09:33+0100\n" -+"Project-Id-Version: blobwars 1.11\n" -+"PO-Revision-Date: 2009-03-02 09:08+0100\n" - "Last-Translator: Pacho Ramos \n" --"Language-Team: Catalan Localization \n" -+"Language-Team: \n" - "MIME-Version: 1.0\n" - "Content-Type: text/plain; charset=UTF-8\n" - "Content-Transfer-Encoding: 8bit\n" -@@ -169,10 +169,10 @@ - msgstr "Lucha contra Galdov" - - msgid "Collect 10 Cherry Plants" --msgstr "Recolectar 10 Plantas de Cerezas" -+msgstr "Recolectar 10 Cerezos" - - msgid "Collect 20 Cherry Plants" --msgstr "Recolectar 20 Plantas de Cerezas" -+msgstr "Recolectar 20 Cerezos" - - msgid "Collect 25 Boxes of Orichalcum Beads" - msgstr "Recolectar 25 Cajas de Bolas de Oricalc" -@@ -344,7 +344,7 @@ - msgstr "Llega al Bosque" - - msgid "Get to the Main Pump Room" --msgstr "Llega al la Sala Principal de la Bomba" -+msgstr "Llega a la Sala Principal de la Bomba" - - msgid "Get to the Maintenance Room" - msgstr "Llega a la Sala de Mantenimiento" -@@ -437,6 +437,49 @@ - msgid "Picked up a Three Way Spread" - msgstr "Has conseguido un Rifle a Tres Bandas" - -+#missing Picked up... -+msgid "Picked up a Transmitter" -+msgstr "Has conseguido un Transmisor" -+ -+msgid "Picked up a Cherry Plant" -+msgstr "Has tomado un Cerezo" -+ -+msgid "Picked up a Fire Crystal" -+msgstr "Has conseguido un Cristal de Fuego" -+ -+msgid "Picked up a Time Crystal" -+msgstr "Has conseguido un Cristal del Tiempo" -+ -+msgid "Picked up a Space Crystal" -+msgstr "Has conseguido un Cristal del Espacio" -+ -+msgid "Picked up a Reality Crystal" -+msgstr "Has conseguido un Cristal de la realidad" -+ -+msgid "Picked up a Sword" -+msgstr "Has conseguido una Espada" -+ -+msgid "Picked up a Pack of Dynamite" -+msgstr "Has conseguido un Cartucho de Dinamita" -+ -+msgid "Picked up a Diamond" -+msgstr "Has adquirido un Diamante" -+ -+msgid "Picked up a Set of Blueprints" -+msgstr "Has adquirido los Planos" -+ -+msgid "Picked up a Map Piece" -+msgstr "Has conseguido una pieza del Mapa" -+ -+msgid "Picked up a Box of Orichalcum" -+msgstr "Has adquirido una caja de Oricalc" -+ -+msgid "Picked up a Cypher Piece #1" -+msgstr "Pieza clave #1 conseguida" -+ -+msgid "Picked up a Cypher Piece #2" -+msgstr "Pieza clave #2 conseguida" -+ - # ... required - msgid "Ancient Cog required" - msgstr "Se requiere una Rueda Dentada Antigua" -@@ -643,7 +686,7 @@ - msgstr "Fácil" - - msgid "Empty" --msgstr "Vacío" -+msgstr "Vacía" - - msgid "Enemies" - msgstr "Enemigos" -@@ -673,10 +716,10 @@ - msgstr "¡¡Galdov ha perdido el cristal!! ¡Rápido! ¡Hay que conseguirlo!" - - msgid "Got the Aqua Lung! You can now swim forever!" --msgstr "¡Ya tienes el Pulmón Acuático! ¡Podrás nadar para siempre¡" -+msgstr "¡Ya tienes el Pulmón Acuático! ¡Podrás nadar sin límite¡" - - msgid "Got the Jetpack! Press SPACE to Activate!" --msgstr "¡Ya tienes la Mochila a Propulsión! ¡Actívalo para volar!" -+msgstr "¡Ya tienes la Mochila a Propulsión! ¡Actívala para volar!" - - msgid "Grenades" - msgstr "Granadas" -@@ -715,7 +758,7 @@ - msgstr "Mochila a Propulsión" - - msgid "Jetpack cannot be used underwater" --msgstr "No puedes usar la Mochila a Propulsión bajo agua" -+msgstr "No puedes usar la Mochila a Propulsión bajo el agua" - - msgid "Jetpack is recharging..." - msgstr "La Mochila a Propulsión está recargándose..." -@@ -991,7 +1034,7 @@ - msgstr "¡Ya tienes la Mochila a Propulsión!" - - msgid "You'll need to 'Kill Two Birds with One Stone' here..." --msgstr "Aquí necesitarás \"Matar Dos Pájaros de Una Tiro\"..." -+msgstr "Aquí necesitarás \"Matar Dos Pájaros de Un Tiro\"..." - - # Keys - msgid "backspace" -@@ -1007,7 +1050,7 @@ - msgstr "abajo" - - msgid "end" --msgstr "fifin" -+msgstr "fin" - - msgid "enter" - msgstr "intro" diff --git a/blobwars.spec b/blobwars.spec index ec00d88..8677bc7 100644 --- a/blobwars.spec +++ b/blobwars.spec @@ -1,20 +1,17 @@ Name: blobwars -Version: 1.11 -Release: 3%{?dist} +Version: 1.18 +Release: 1%{?dist} Summary: Mission and Objective based 2D Platform Game Group: Amusements/Games -License: GPLv2+ and Redistributable, no modification permitted -#see README.fedora-music for details -URL: http://www.parallelrealities.co.uk/blobWars.php -# no full URL as it gets downloaded through a php script, and nonfree sound files has been removed -Source0: %{name}-%{version}.tar.bz2 -Source1: %{name}-1.09b2-music.tar.bz2 -Patch0: blobwars-1.09b2-makefile.patch -#Patch1: blobwars-1.05-desktop.patch -#Patch2: blobwars-1.07-es.patch -#Patch3: blobwars-1.09b2-font_error.patch -Patch4: blobwars-1.11-es.patch -Patch5: blobwars-1.11-es-title.patch +# Code is all GPLv2+. Music is all CC-BY-SA. SFX are a mix, see readme +License: GPLv2+ and CC-BY-SA and CC-BY and BSD and Public Domain +URL: http://www.parallelrealities.co.uk/projects/blobWars.php +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +Patch0: blobwars-1.05-debian.patch +Patch1: blobwars-1.05-desktop.patch +# Compiler warning fixes from upstream git +Patch2: 0001-Fix-new-compiler-warnings-thrown-by-gcc-4.6.patch +Patch3: 0002-Fix-Wunused-result-compiler-warnings.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: SDL_mixer-devel SDL_image-devel SDL_ttf-devel zlib-devel BuildRequires: gettext desktop-file-utils @@ -28,25 +25,15 @@ MIAs as possible. %prep -%setup -q -a 1 -%patch0 -p0 -z .makefile -#%patch1 -p1 -z .dsktop -#%patch2 -p0 -#%patch3 -p1 -z .font_error -%patch4 -p0 -%patch5 -p0 - -# -sed -e "s#Name=Metal Blob Solid#Name=Blob Wars : Metal Blob Solid#" -i icons/blobwars.desktop -echo >> "Comment=Mission and Objective based 2D Platform Game" icons/blobwars.desktop - -chmod a-x src/* doc/* - -cp -p *{.xm,.s3m,.mod} music/ +%setup -q +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 %build -make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" \ +make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" USEPAK=1 \ DOCDIR=%{_docdir}/%{name}-%{version}/ @@ -56,33 +43,30 @@ make install DESTDIR=$RPM_BUILD_ROOT %find_lang %{name} desktop-file-install --vendor fedora --delete-original \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ - --remove-category=Application \ - --add-category=ActionGame \ - --remove-key=X-Desktop-File-Install-Version \ $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop +rm -r $RPM_BUILD_ROOT%{_docdir}/%{name} -rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} %clean rm -rf $RPM_BUILD_ROOT %post -touch --no-create %{_datadir}/icons/hicolor || : -if [ -x %{_bindir}/gtk-update-icon-cache ]; then - %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : -fi +touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun -touch --no-create %{_datadir}/icons/hicolor || : -if [ -x %{_bindir}/gtk-update-icon-cache ]; then - %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +if [ $1 -eq 0 ] ; then + touch --no-create %{_datadir}/icons/hicolor &>/dev/null + gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi +%posttrans +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + %files -f %{name}.lang %defattr(-,root,root,-) -%doc doc/* README.fedora-music +%doc doc/* %{_bindir}/%{name} %{_datadir}/%{name} %{_datadir}/applications/fedora-%{name}.desktop @@ -90,6 +74,12 @@ fi %changelog +* Sun Feb 13 2011 Hans de Goede - 1.18-1 +- New upstream version 1.18 + - From new sf.net upstream by the Debian and Fedora blobwars packagers + - With new Free music + - Sound effects are back! (and Free this time) + * Mon Feb 07 2011 Fedora Release Engineering - 1.11-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild diff --git a/sources b/sources index 7e12d79..aa89948 100644 --- a/sources +++ b/sources @@ -1,2 +1 @@ -d01a343e3c18b817dc3f25224c6e66fb blobwars-1.09b2-music.tar.bz2 -ca356775247db91dea09459aeb6c33f2 blobwars-1.11.tar.bz2 +b6e8b7e628533bf32912587bc6666012 blobwars-1.18.tar.gz