1
0

Search extra IWAD directory

OBS-URL: https://build.opensuse.org/package/show/games/chocolate-doom?expand=0&rev=7
This commit is contained in:
Jan Engelhardt 2013-05-02 07:56:27 +00:00 committed by Git OBS Bridge
parent b2c23ed351
commit 0a7dc6e31e
3 changed files with 30 additions and 2 deletions

19
chdoom-iwaddir.diff Normal file
View File

@ -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

View File

@ -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

View File

@ -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