From bb9d1403cab86aff60fdcba467b0c6ef44c6fd11 Mon Sep 17 00:00:00 2001 From: Karol Trzcionka Date: Dec 30 2007 21:38:02 +0000 Subject: =Update to v2.0.10 --- diff --git a/.cvsignore b/.cvsignore index 50cd577..de07528 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -warzone2100-2.0.8.tar.bz2 +warzone2100-2.0.10.tar.bz2 diff --git a/sources b/sources index 16ff5cc..4924d72 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -e804486bee52e3f6f1f3a7622fd7af1f warzone2100-2.0.8.tar.bz2 +d27b89fde2c8017020756441bdd2a67b warzone2100-2.0.10.tar.bz2 diff --git a/warzone2100-2.0.8.fixsound.patch b/warzone2100-2.0.8.fixsound.patch deleted file mode 100644 index 01627a8..0000000 --- a/warzone2100-2.0.8.fixsound.patch +++ /dev/null @@ -1,67 +0,0 @@ -diff -up ./lib/sound/openal_track.c.fixsound ./lib/sound/openal_track.c ---- ./lib/sound/openal_track.c.fixsound 2007-07-17 22:25:28.000000000 +0200 -+++ ./lib/sound/openal_track.c 2007-12-03 15:46:33.000000000 +0100 -@@ -288,6 +288,11 @@ static size_t ovbuf_read(void *ptr, size - return read_size; - } - -+/* -+ * See http://xiph.org/vorbis/doc/vorbisfile/callbacks.html for what these -+ * functions have to do. -+ */ -+ - static int ovbuf_seek(void *datasource, ogg_int64_t offset, int whence) { - ov_buffer_t* ovbuf = (ov_buffer_t*)datasource; - int new_pos = 0; -@@ -297,19 +302,18 @@ static int ovbuf_seek(void *datasource, - new_pos = offset; - break; - case SEEK_CUR: -- new_pos = ovbuf->pos+offset; -+ new_pos = ovbuf->pos + offset; - break; - case SEEK_END: -- new_pos = ovbuf->size-offset-1; -+ new_pos = ovbuf->size - offset; - break; - } - -- if (new_pos >= 0 && new_pos < ovbuf->size) { -- ovbuf->pos = new_pos; -- return new_pos; -- } else { -- return -1; -- } -+ if (new_pos < 0) -+ new_pos = 0; -+ else if (new_pos > ovbuf->size) -+ new_pos = ovbuf->size; -+ return ovbuf->pos = new_pos; - } - - static int ovbuf_close(void *datasource) { -@@ -325,7 +329,7 @@ static long ovbuf_tell(void *datasource) - static ov_callbacks ovbuf_callbacks = { - ovbuf_read, - ovbuf_seek, -- ovbuf_close, -+ NULL, // close - ovbuf_tell - }; - -@@ -346,11 +350,12 @@ static long ovPHYSFS_tell(void *datasour - return -1; - } - -+// seek/tell/close don't do anything right now, so tell physfs not to bother. - static ov_callbacks ovPHYSFS_callbacks = { - ovPHYSFS_read, -- ovPHYSFS_seek, -- ovPHYSFS_close, -- ovPHYSFS_tell -+ NULL, // seek -+ NULL, // close -+ NULL // tell - }; - - static BOOL sound_ReadTrack( TRACK *psTrack, ov_callbacks callbackFuncs, void* datasource ) diff --git a/warzone2100.spec b/warzone2100.spec index e7ead4c..d73c4e0 100644 --- a/warzone2100.spec +++ b/warzone2100.spec @@ -1,5 +1,5 @@ Name: warzone2100 -Version: 2.0.8 +Version: 2.0.10 Release: 1%{?dist} Summary: Innovative 3D real-time strategy @@ -7,7 +7,6 @@ Group: Amusements/Games License: GPLv2+ URL: http://wz2100.net/ Source0: http://download.gna.org/warzone/releases/2.0/%{name}-%{version}.tar.bz2 -Patch0: warzone2100-2.0.8.fixsound.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) ExcludeArch: x86_64 ppc64 sparc64 alpha @@ -26,13 +25,11 @@ ReDev project was formed to take care of its future. %prep %setup -q -%patch0 %build ./autogen.sh -%configure --disable-mp3 +%configure --disable-mp3 --with-distributor="Fedora" make -sed -i s/"Application;"/""/"" icons/warzone2100.desktop %install rm -rf $RPM_BUILD_ROOT @@ -56,6 +53,10 @@ rm -rf $RPM_BUILD_ROOT %doc AUTHORS ChangeLog COPYING COPYING.README TODO %changelog +* Sun Dec 30 2007 Karol Trzcionka - 2.0.10-1 +- Update to v2.0.10 +* Mon Dec 03 2007 Karol Trzcionka - 2.0.8-2 +- Fix desktop-file for fedora 9 * Mon Dec 03 2007 Karol Trzcionka - 2.0.8-1 - Update to v2.0.8 and apply fixsound * Mon Nov 19 2007 Karol Trzcionka - 2.0.8-0.1.rc1