From 0a7dc6e31eec474b9032786f70599a869373ff9b034a62e19f3826461e377c78 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 2 May 2013 07:56:27 +0000 Subject: [PATCH] Search extra IWAD directory OBS-URL: https://build.opensuse.org/package/show/games/chocolate-doom?expand=0&rev=7 --- chdoom-iwaddir.diff | 19 +++++++++++++++++++ chocolate-doom.changes | 5 +++++ chocolate-doom.spec | 8 ++++++-- 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 chdoom-iwaddir.diff diff --git a/chdoom-iwaddir.diff b/chdoom-iwaddir.diff new file mode 100644 index 0000000..9a2f04f --- /dev/null +++ b/chdoom-iwaddir.diff @@ -0,0 +1,19 @@ +--- + src/d_iwad.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +Index: chocolate-doom-1.7.0/src/d_iwad.c +=================================================================== +--- chocolate-doom-1.7.0.orig/src/d_iwad.c ++++ chocolate-doom-1.7.0/src/d_iwad.c +@@ -556,8 +556,9 @@ static void BuildIWADDirList(void) + + // Standard places where IWAD files are installed under Unix. + +- AddIWADDir("/usr/share/games/doom"); + AddIWADDir("/usr/local/share/games/doom"); ++ AddIWADDir("/usr/share/games/doom"); ++ AddIWADDir("/usr/share/doom"); + + #endif + diff --git a/chocolate-doom.changes b/chocolate-doom.changes index 5f87f6c..e509424 100644 --- a/chocolate-doom.changes +++ b/chocolate-doom.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 2 07:45:59 UTC 2013 - jengelh@inai.de + +- Search /usr/share/doom for IWADs as well (bnc#818102) + ------------------------------------------------------------------- Mon Jun 11 20:58:25 UTC 2012 - jengelh@inai.de diff --git a/chocolate-doom.spec b/chocolate-doom.spec index bc94d73..2939dd9 100644 --- a/chocolate-doom.spec +++ b/chocolate-doom.spec @@ -1,7 +1,7 @@ # # spec file for package chocolate-doom # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -14,6 +14,8 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + + Name: chocolate-doom Version: 1.7.0 Release: 0 @@ -25,6 +27,7 @@ Url: http://chocolate-doom.org/ #Freecode-URL: https://freecode.com/projects/chocolate-doom #DL-URL: http://downloads.sf.net/chocolate-doom/chocolate-doom-1.7.0.tar.gz Source: chocolate-doom-%version.tar.xz +Patch1: chdoom-iwaddir.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libSDL-devel >= 1.1.3 BuildRequires: libSDL_mixer-devel @@ -47,6 +50,7 @@ as possible to the original DOS Doom executables. It aims to: %prep %setup -q +%patch -P 1 -p1 %build %configure @@ -66,6 +70,6 @@ mv "$b/%_prefix/games"/* "$b/%_bindir/"; %_mandir/man*/* %_datadir/applications/* %_datadir/icons/* -%_docdir/%name +%_docdir/%name/ %changelog