From eeb9e698ce72c329a0f9a54d8f43217854846704670381a3eae5a53df97cca9e Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 4 Jul 2017 15:43:03 +0000 Subject: [PATCH 1/4] chocolate-doom-2.3.0 OBS-URL: https://build.opensuse.org/package/show/games/chocolate-doom?expand=0&rev=26 --- chdoom-date.diff | 20 ------------- chdoom-iwaddir.diff | 10 +++---- chdoom-sdlsound.diff | 53 --------------------------------- chocolate-doom-2.2.1.tar.gz | 3 -- chocolate-doom-2.2.1.tar.gz.asc | 17 ----------- chocolate-doom-2.3.0.tar.gz | 3 ++ chocolate-doom-2.3.0.tar.gz.asc | 17 +++++++++++ chocolate-doom.changes | 21 +++++++++++++ chocolate-doom.spec | 24 ++++++++++----- 9 files changed, 63 insertions(+), 105 deletions(-) delete mode 100644 chdoom-date.diff delete mode 100644 chdoom-sdlsound.diff delete mode 100644 chocolate-doom-2.2.1.tar.gz delete mode 100644 chocolate-doom-2.2.1.tar.gz.asc create mode 100644 chocolate-doom-2.3.0.tar.gz create mode 100644 chocolate-doom-2.3.0.tar.gz.asc diff --git a/chdoom-date.diff b/chdoom-date.diff deleted file mode 100644 index df5434a..0000000 --- a/chdoom-date.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- - src/hexen/h2def.h | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -Index: chocolate-doom-2.1.0/src/hexen/h2def.h -=================================================================== ---- chocolate-doom-2.1.0.orig/src/hexen/h2def.h -+++ chocolate-doom-2.1.0/src/hexen/h2def.h -@@ -67,9 +67,9 @@ - //#define HEXEN_VERSIONTEXT "DVL BETA 10 07 95" // Just an update for Romero - //#define HEXEN_VERSIONTEXT "FINAL 1.0 (10 13 95)" // Just an update for Romero - #ifdef RANGECHECK --#define HEXEN_VERSIONTEXT "Version 1.1 +R "__DATE__" ("VER_ID")" -+#define HEXEN_VERSIONTEXT "Version 1.1 +R "" ("VER_ID")" - #else --#define HEXEN_VERSIONTEXT "Version 1.1 "__DATE__" ("VER_ID")" -+#define HEXEN_VERSIONTEXT "Version 1.1 "" ("VER_ID")" - #endif - - // all exterior data is defined here diff --git a/chdoom-iwaddir.diff b/chdoom-iwaddir.diff index cfee62c..947124c 100644 --- a/chdoom-iwaddir.diff +++ b/chdoom-iwaddir.diff @@ -12,11 +12,11 @@ IWADs, and so should chocolate-doom. src/d_iwad.c | 4 ++++ 1 file changed, 4 insertions(+) -Index: chocolate-doom-2.2.1/src/d_iwad.c +Index: chocolate-doom-2.3.0/src/d_iwad.c =================================================================== ---- chocolate-doom-2.2.1.orig/src/d_iwad.c -+++ chocolate-doom-2.2.1/src/d_iwad.c -@@ -633,6 +633,10 @@ static void AddXdgDirs(void) +--- chocolate-doom-2.3.0.orig/src/d_iwad.c ++++ chocolate-doom-2.3.0/src/d_iwad.c +@@ -650,6 +650,10 @@ static void AddXdgDirs(void) // source ports is /usr/share/games/doom - we support this through the // XDG_DATA_DIRS mechanism, through which it can be overridden. AddIWADPath(env, "/games/doom"); @@ -25,5 +25,5 @@ Index: chocolate-doom-2.2.1/src/d_iwad.c + AddIWADPath(env, "/games/doom"); + AddIWADPath(env, "/doom"); } + #endif - // diff --git a/chdoom-sdlsound.diff b/chdoom-sdlsound.diff deleted file mode 100644 index e484022..0000000 --- a/chdoom-sdlsound.diff +++ /dev/null @@ -1,53 +0,0 @@ -From ffb5656588db391889890c65c206b5e170c084e7 Mon Sep 17 00:00:00 2001 -From: Fabian Greffrath -Date: Mon, 24 Oct 2016 15:30:18 +0200 -Subject: [PATCH] i_sdlsound.c: fix compilation with libsamplerate 0.1.9 - -This new version has const-corrected the data_in field, fixes #788 ---- - src/i_sdlsound.c | 8 +++++--- - 1 file changed, 5 insertions(+), 3 deletions(-) - -diff --git a/src/i_sdlsound.c b/src/i_sdlsound.c -index 79a15db..2d7a620 100644 ---- a/src/i_sdlsound.c -+++ b/src/i_sdlsound.c -@@ -339,6 +339,7 @@ static boolean ExpandSoundData_SRC(sfxinfo_t *sfxinfo, - int length) - { - SRC_DATA src_data; -+ float *data_in; - uint32_t i, abuf_index=0, clipped=0; - // uint32_t alen; - int retn; -@@ -346,7 +347,8 @@ static boolean ExpandSoundData_SRC(sfxinfo_t *sfxinfo, - Mix_Chunk *chunk; - - src_data.input_frames = length; -- src_data.data_in = malloc(length * sizeof(float)); -+ data_in = malloc(length * sizeof(float)); -+ src_data.data_in = data_in; - src_data.src_ratio = (double)mixer_freq / samplerate; - - // We include some extra space here in case of rounding-up. -@@ -362,7 +364,7 @@ static boolean ExpandSoundData_SRC(sfxinfo_t *sfxinfo, - // Unclear whether 128 should be interpreted as "zero" or whether a - // symmetrical range should be assumed. The following assumes a - // symmetrical range. -- src_data.data_in[i] = data[i] / 127.5 - 1; -+ data_in[i] = data[i] / 127.5 - 1; - } - - // Do the sound conversion -@@ -430,7 +432,7 @@ static boolean ExpandSoundData_SRC(sfxinfo_t *sfxinfo, - expanded[abuf_index++] = cvtval_i; - } - -- free(src_data.data_in); -+ free(data_in); - free(src_data.data_out); - - if (clipped > 0) --- -2.10.2 - diff --git a/chocolate-doom-2.2.1.tar.gz b/chocolate-doom-2.2.1.tar.gz deleted file mode 100644 index 6db1f16..0000000 --- a/chocolate-doom-2.2.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ad11e2871667c6fa0658abf2dcba0cd9b26fbd651ee8df55adfdc18ad8fd674a -size 2127538 diff --git a/chocolate-doom-2.2.1.tar.gz.asc b/chocolate-doom-2.2.1.tar.gz.asc deleted file mode 100644 index 2f8a0b8..0000000 --- a/chocolate-doom-2.2.1.tar.gz.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Comment: GPGTools - http://gpgtools.org - -iQIcBAABCAAGBQJV8jh/AAoJEPbC7pwjNUNEfX8P/18kvHoYwXlguTUbDmhGnVf4 -MLKBAR1Wr6LbDYVzSaq/fSU0JqZC0BYeFq/TUJUzVVmjaRytfJVc5Ik28SCXSTZn -8x3jxrlWbSL17infZapPalICPbWY/Fky9TDW7nYRy8KZyjnWGkctvgjywd/FmPMF -9bZHmJeR6l74nrXdrWHNX/kDNA8sH9nfriDEyxxnl8Dnlde+w+acbD68boIcZ4Qy -7nfRr0Mhz3SDZ3qgLr6RUbo+S43Y6kChaeyBUuvWd6P4enZjV08kUkSoPlLURkHv -7w6LRUW1V9b2MuUqU9zG1gPoHK16OVBQ5aLTjJMW/HeyEwZTMVOFGrVbJYgE7Q3m -FA2E37hpH9evPAB1T+r65xeds4CObWLJUpMvwRxxx+nkUg9VSyVwbNyo/nfLbPQM -RiNC3wOi3jOavNfjU19+0Cod7K4bp7iXJmUGXkRIxTYPKfczBMj0ze3ymYWF7v3q -7LFdIA59qh+GCFN1VFPrOXeF5UYt/8Endn28pOheuCn/OnvP4JRH/Dqf3jb/JYm0 -1vF2g4RlYxnYIvXpHMGC1Zk6780D2kHNmRAhpuNmF1HidyjgwgNKT0U8CbQVFbrS -R4r6dvoUvDNi/iuVxuD/jDOmyVaKI0LXT2bNRt5xrHEjxq7G75F4B7RflflkEN3F -jQWwy+BjG3G6wbXDa5Ng -=klKm ------END PGP SIGNATURE----- diff --git a/chocolate-doom-2.3.0.tar.gz b/chocolate-doom-2.3.0.tar.gz new file mode 100644 index 0000000..06cde31 --- /dev/null +++ b/chocolate-doom-2.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3e6d1a82ac5c8b025a9695ce1e47d0dc6ed142ebb1129b1e4a70e2740f79150c +size 2190744 diff --git a/chocolate-doom-2.3.0.tar.gz.asc b/chocolate-doom-2.3.0.tar.gz.asc new file mode 100644 index 0000000..4ba64e0 --- /dev/null +++ b/chocolate-doom-2.3.0.tar.gz.asc @@ -0,0 +1,17 @@ +-----BEGIN PGP SIGNATURE----- +Comment: GPGTools - http://gpgtools.org + +iQIcBAABCAAGBQJYZUOFAAoJEPbC7pwjNUNEQoAP/2HORtVU9REgswO5OkTil+3G +9xLlrExCEzgAiFbE8RvSlypQbGxzdNNEpHeKKhwtNrHGMwF58Io3HNEcoPWy/dcD +wfkgsBSJayeVEg0soJED0vqOMX+MTSeBYp2OCFPvwqPNMTc08N7sXt83liFiKORr +xNs5uj5e7+rLoLbzrgzJZURrS6WTV8vXUR8ghzO52vAGwGbI0TsQSkfN7SuQGb0y +hw4a/nudeYpqgACWKhTlc2pxw3NyrkMdJTKK5NVKQPlXZDOJ9YOrO/WP9x9L3Jxo +P5sYome3/eTncJSydbSP/AixKUXNyufbcYb6Zc32qYY8r2GEek+29c37xhVyD14y +mlN/ujcbx7aYCH5Ts2dgFcdMc/1+pcDXSOXJep8c+ejHuiLSGZbLsG5IbiFb7YcX +rM9Q3Db3TuiOXf/053nPbM7d2pjaKCrHN8lZWn/TRUyf9IOU8upR4as5c+3s9whq +r+8LXBDFlZULDX5k28z6WLVz/CbVUGffEsVYKlHAeW7G+IAmE3Nw8a+iNf8oGAQ4 +Swc3iQ1+whfCLAMsJCHAXdYgAlJuxzS5plIzYFr96p09x3o81R1PrzOohnYr6T/3 +kapiXQUHRjKqyybBpViKSck8EfK9BKPot/+otgorWwseBUQ1EK8BCwSqJRItkM6j +AkC7aGFdK9MH/3DXQvvm +=V74t +-----END PGP SIGNATURE----- diff --git a/chocolate-doom.changes b/chocolate-doom.changes index 582076c..e45a0ac 100644 --- a/chocolate-doom.changes +++ b/chocolate-doom.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Tue Jul 4 15:33:15 UTC 2017 - jengelh@inai.de + +- Update to new upstream release 2.3.0 (2016-12-29) + * Pitch-shifting from early versions of Doom, Heretic, and Hexen + is now supported. + * Aspect ratio-corrected 1600×1200 PNGs are now written. + * OPL emulation is more accurate. + * DMX bugs with GUS cards are now better emulated. + * Checksum calculations are fixed on big endian systems, allowing + multiplayer games to be played in mixed little/big-endian + environments. + * The vanilla limit of 4046 lumps per WAD is now enforced. + * Solidsegs overflow is emulated like in vanilla. + * It is now possible to start multiplayer Chex Quest games. + * Versions 1.666, 1.7, and 1.8 are emulated. + * An issue was fixed where the game crashed while killing the + Wraithverge in 64-bit builds. +- Drop chdoom-date.diff (no longer needed), drop + chdoom-sdlsound.diff (merged upstream). + ------------------------------------------------------------------- Wed Nov 16 00:18:05 UTC 2016 - jengelh@inai.de diff --git a/chocolate-doom.spec b/chocolate-doom.spec index caf9a34..2e9b91f 100644 --- a/chocolate-doom.spec +++ b/chocolate-doom.spec @@ -1,7 +1,7 @@ # # spec file for package chocolate-doom # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,9 +17,9 @@ Name: chocolate-doom -Version: 2.2.1 +Version: 2.3.0 Release: 0 -%define rversion 2.2.1 +%define rversion 2.3.0 Summary: Conservative DOOM/Heretic/Hexen/Strife source port License: GPL-2.0+ Group: Amusements/Games/3D/Shoot @@ -31,8 +31,6 @@ Source: http://www.chocolate-doom.org/downloads/%rversion/%name-%rversio Source2: http://www.chocolate-doom.org/downloads/%rversion/%name-%rversion.tar.gz.asc Source3: %name.keyring Patch1: chdoom-iwaddir.diff -Patch4: chdoom-date.diff -Patch5: chdoom-sdlsound.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf BuildRequires: automake @@ -62,9 +60,17 @@ Chocolate Doom's aims are: * To provide an accurate retro "feel" (display and input should behave the same). +%package bash-completion +Summary: Chocolate Doom command line completion support for bash +Group: System/Shells +BuildArch: noarch + +%description bash-completion +Additions for bash-completion to support chocolate-doom. + %prep %setup -Tqb0 -n %name-%rversion -%patch -P 1 -P 4 -P 5 -p1 +%patch -P 1 -p1 %build autoreconf -fi @@ -76,7 +82,7 @@ b="%buildroot" %make_install iconsdir="%_datadir/icons/hicolor/64x64/apps" \ docdir="%_docdir/%name" mkdir -p "$b/%_bindir" -mv "$b/%_prefix/games"/* "$b/%_bindir/" +#mv "$b/%_prefix/games"/* "$b/%_bindir/" rm -f "$b/%_docdir/%name/INSTALL" %suse_update_desktop_file -r chocolate-setup chocolate-setup Game ActionGame %fdupes %buildroot/%_prefix @@ -93,4 +99,8 @@ echo "INFO: %name: The global IWAD directory is %_datadir/doom." %_datadir/icons/* %_docdir/chocolate-*/ +%files bash-completion +%defattr(-,root,root) +%_datadir/bash-completion/ + %changelog From 0fe7b5b69f6183f3830451ecd8f577df919120bd3c941fa414d6f33b98a48ddf Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 4 Jul 2017 16:04:58 +0000 Subject: [PATCH 2/4] OBS-URL: https://build.opensuse.org/package/show/games/chocolate-doom?expand=0&rev=27 --- chocolate-doom.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/chocolate-doom.spec b/chocolate-doom.spec index 2e9b91f..2d84761 100644 --- a/chocolate-doom.spec +++ b/chocolate-doom.spec @@ -82,7 +82,6 @@ b="%buildroot" %make_install iconsdir="%_datadir/icons/hicolor/64x64/apps" \ docdir="%_docdir/%name" mkdir -p "$b/%_bindir" -#mv "$b/%_prefix/games"/* "$b/%_bindir/" rm -f "$b/%_docdir/%name/INSTALL" %suse_update_desktop_file -r chocolate-setup chocolate-setup Game ActionGame %fdupes %buildroot/%_prefix From baa86698c66185e04f3efd2cd09d299378e1cea19d5dd99dba72cca0fdcad6aa Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 13 Jul 2017 08:09:21 +0000 Subject: [PATCH 3/4] drop broken .desktop file OBS-URL: https://build.opensuse.org/package/show/games/chocolate-doom?expand=0&rev=28 --- chocolate-doom.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chocolate-doom.spec b/chocolate-doom.spec index 2d84761..926d756 100644 --- a/chocolate-doom.spec +++ b/chocolate-doom.spec @@ -83,7 +83,7 @@ b="%buildroot" docdir="%_docdir/%name" mkdir -p "$b/%_bindir" rm -f "$b/%_docdir/%name/INSTALL" -%suse_update_desktop_file -r chocolate-setup chocolate-setup Game ActionGame +rm -f "$b/%_datadir/applications/chocolate-setup.desktop" # has wrong paths %fdupes %buildroot/%_prefix %post From 2bb43e93d3211bc95c697953bc78f796b551d5166f6e4581afe526d41566edd5 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 13 Jul 2017 14:03:17 +0000 Subject: [PATCH 4/4] OBS-URL: https://build.opensuse.org/package/show/games/chocolate-doom?expand=0&rev=29 --- chocolate-doom.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/chocolate-doom.spec b/chocolate-doom.spec index 926d756..19bb11e 100644 --- a/chocolate-doom.spec +++ b/chocolate-doom.spec @@ -64,6 +64,7 @@ Chocolate Doom's aims are: Summary: Chocolate Doom command line completion support for bash Group: System/Shells BuildArch: noarch +Supplements: packageand(chocolate-doom:bash-completion) %description bash-completion Additions for bash-completion to support chocolate-doom.