commit fba03dd6ef53073d1a0e37938b082b1d7e9d472980c3cd1cb79a8d9617b43c85 Author: Dirk Stoecker Date: Wed Mar 29 14:17:42 2023 +0000 Accepting request 1074744 from home:jengelh:branches:games OBS-URL: https://build.opensuse.org/request/show/1074744 OBS-URL: https://build.opensuse.org/package/show/games/crispy-doom?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/chdoom-iwaddir.diff b/chdoom-iwaddir.diff new file mode 100644 index 0000000..09e2c53 --- /dev/null +++ b/chdoom-iwaddir.diff @@ -0,0 +1,29 @@ +From: Jan Engelhardt +Date: 2013-05-02 09:45:54.544886176 +0200 +Upstream: maybe - this patch is quite specific to openSUSE + +Make sure we always scan /usr paths for IWADs too, even if +XDG_DATA_DIRS is set. + +prboom-plus and doomsday (in openSUSE) look in /usr/share/doom for +IWADs, and so should chocolate-doom. + +--- + src/d_iwad.c | 4 ++++ + 1 file changed, 4 insertions(+) + +Index: crispy-doom-crispy-doom-5.12.0/src/d_iwad.c +=================================================================== +--- crispy-doom-crispy-doom-5.12.0.orig/src/d_iwad.c ++++ crispy-doom-crispy-doom-5.12.0/src/d_iwad.c +@@ -691,6 +691,10 @@ static void AddXdgDirs(void) + // Edition into this directory, under which includes the Doom + // Classic WADs. + AddIWADPath(env, "/games/doom3bfg/base/wads"); ++ ++ env = "/usr/local/share:/usr/share"; ++ AddIWADPath(env, "/games/doom"); ++ AddIWADPath(env, "/doom"); + } + + #ifndef __MACOSX__ diff --git a/crispy-doom-5.12.0.tar.gz b/crispy-doom-5.12.0.tar.gz new file mode 100644 index 0000000..ea5192d --- /dev/null +++ b/crispy-doom-5.12.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d85d6e76aa949385458b7702e6fb594996745b94032ffb13e1790376eeecb462 +size 2425206 diff --git a/crispy-doom.changes b/crispy-doom.changes new file mode 100644 index 0000000..18fc166 --- /dev/null +++ b/crispy-doom.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Mar 27 14:20:45 UTC 2023 - Jan Engelhardt + +- Initial package (version 5.12.0) for build.opensuse.org diff --git a/crispy-doom.spec b/crispy-doom.spec new file mode 100644 index 0000000..73489d0 --- /dev/null +++ b/crispy-doom.spec @@ -0,0 +1,87 @@ +# +# spec file for package crispy-doom +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: crispy-doom +Version: 5.12.0 +Release: 0 +Summary: Higher resolution DOOM/Heretic/Hexen/Strife source port +License: GPL-2.0-or-later +Group: Amusements/Games/3D/Shoot +URL: https://github.com/fabiangreffrath/crispy-doom +Source: https://github.com/fabiangreffrath/crispy-doom/archive/refs/tags/crispy-doom-%version.tar.gz +Patch1: chdoom-iwaddir.diff +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: fdupes +BuildRequires: python3-Pillow +BuildRequires: python3-base +BuildRequires: update-desktop-files +BuildRequires: pkgconfig(SDL2_mixer) >= 2.0.0 +BuildRequires: pkgconfig(SDL2_net) >= 2.0.0 +BuildRequires: pkgconfig(libpng) >= 1.6.10 +BuildRequires: pkgconfig(samplerate) +BuildRequires: pkgconfig(sdl2) >= 2.0.1 +Provides: crispy-heretic = %version +Provides: crispy-hexen = %version +Provides: crispy-strife = %version + +%description +Crispy Doom is a limit-removing enhanced-resolution Doom source port +based on Chocolate Doom. + +%package bash-completion +Summary: Crispy Doom command line completion support for bash +Group: System/Shells +BuildArch: noarch +Supplements: packageand(crispy-doom:bash-completion) + +%description bash-completion +Additions for bash-completion to support crispy-doom. + +%prep +%autosetup -p1 -n %name-%name-%version + +%build +autoreconf -fi +%configure +%make_build + +%install +b="%buildroot" +%make_install iconsdir="%_datadir/icons/hicolor/64x64/apps" \ + docdir="%_docdir/%name" +mkdir -p "$b/%_bindir" +rm -f "$b/%_docdir/%name/INSTALL" +#rm -f "$b/%_datadir/applications/chocolate-setup.desktop" # has wrong paths +%fdupes %buildroot/%_prefix + +%post +echo "INFO: %name: The global IWAD directory is %_datadir/doom." + +%files +%_bindir/crispy-* +%_mandir/man*/* +%_datadir/metainfo/ +%_datadir/applications/* +%_datadir/icons/* +%_docdir/crispy-*/ + +%files bash-completion +%_datadir/bash-completion/ + +%changelog