forked from pool/prboom-plus
Accepting request 390690 from games
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/390690 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/prboom-plus?expand=0&rev=7
This commit is contained in:
commit
7bc8aaf179
@ -1,19 +1,17 @@
|
|||||||
#!/bin/sh -ex
|
#!/bin/sh -ex
|
||||||
# Remove Wolfenstein dogs from source
|
# Remove Wolfenstein dogs from source; they belong to another game
|
||||||
|
# with incompatible licensing.
|
||||||
|
|
||||||
: ${DOOMWADDIR:=/usr/share/doom};
|
: ${DOOMWADDIR:=/usr/share/doom};
|
||||||
|
|
||||||
version=$(perl -lne 'if(/^Version\s*:\s*(\S+)/){print$1;exit}' <prboom-plus.spec);
|
version=$(perl -lne 'if(/^Version\s*:\s*(\S+)/){print$1;exit}' <prboom-plus.spec)
|
||||||
tar -xf "prboom-plus-$version.tar.xz";
|
rm -Rf "prboom-plus-$version"
|
||||||
pushd "prboom-plus-$version/data/";
|
tar -xf "prboom-plus-$version.tar.gz"
|
||||||
deutex -doom2 "$DOOMWADDIR" -extract prboom-plus.wad;
|
pushd "prboom-plus-$version/"
|
||||||
touch lumps/{b,c}_{start,end}.lmp;
|
# retain files so automake won't complain
|
||||||
grep -Ev '^DOG|^DSDG' <prboom.txt >wadinfo.txt;
|
for i in data/sounds/dsdg*.wav data/sprites/dogs*.ppm; do
|
||||||
rm -f prboom-plus.wad;
|
>"$i"
|
||||||
deutex -doom2 "$DOOMWADDIR" -create wadinfo.txt prboom-plus.wad;
|
done
|
||||||
find . -mindepth 1 -type d -print0 | xargs -0 rm -Rf;
|
popd
|
||||||
mv wadinfo.txt prboom.txt;
|
|
||||||
rm -f error.txt output.txt;
|
|
||||||
popd;
|
|
||||||
find "prboom-plus-$version" -print0 | sort -z | \
|
find "prboom-plus-$version" -print0 | sort -z | \
|
||||||
tar -T- --null --use=xz -cvf "prboom-plus-$version+.tar.xz";
|
tar --no-r --null --use=xz -T- -cvf "prboom-plus-$version+.tar.xz"
|
||||||
|
@ -11,17 +11,17 @@ be rendered.
|
|||||||
src/gl_main.c | 3 +++
|
src/gl_main.c | 3 +++
|
||||||
1 file changed, 3 insertions(+)
|
1 file changed, 3 insertions(+)
|
||||||
|
|
||||||
Index: prboom-plus-2.5.1.3/src/gl_main.c
|
Index: prboom-plus-2.5.1.4/src/gl_main.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- prboom-plus-2.5.1.3.orig/src/gl_main.c
|
--- prboom-plus-2.5.1.4.orig/src/gl_main.c
|
||||||
+++ prboom-plus-2.5.1.3/src/gl_main.c
|
+++ prboom-plus-2.5.1.4/src/gl_main.c
|
||||||
@@ -73,6 +73,9 @@
|
@@ -36,6 +36,9 @@
|
||||||
#ifdef USE_CUSTOM_QSORT
|
#ifdef HAVE_CONFIG_H
|
||||||
#include "qsort.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
+#ifndef USE_GLU_TESS
|
+#ifndef USE_GLU_TESS
|
||||||
+# define USE_GLU_TESS 1
|
+# define USE_GLU_TESS 1
|
||||||
+#endif
|
+#endif
|
||||||
|
|
||||||
// All OpenGL extentions will be disabled in gl_compatibility mode
|
#include "gl_opengl.h"
|
||||||
int gl_compatibility = 0;
|
|
||||||
|
@ -11,12 +11,12 @@ This makes the health bar above shootables use gradiented color.
|
|||||||
src/gl_main.c | 44 +++++++++++++++++---------------------------
|
src/gl_main.c | 44 +++++++++++++++++---------------------------
|
||||||
3 files changed, 20 insertions(+), 30 deletions(-)
|
3 files changed, 20 insertions(+), 30 deletions(-)
|
||||||
|
|
||||||
Index: prboom2/src/gl_drawinfo.c
|
Index: prboom-plus-2.5.1.4/src/gl_drawinfo.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- prboom2.orig/src/gl_drawinfo.c
|
--- prboom-plus-2.5.1.4.orig/src/gl_drawinfo.c
|
||||||
+++ prboom2/src/gl_drawinfo.c
|
+++ prboom-plus-2.5.1.4/src/gl_drawinfo.c
|
||||||
@@ -111,10 +111,10 @@ static void gld_AddDrawRange(int size)
|
@@ -112,10 +112,10 @@ static void gld_AddDrawRange(int size)
|
||||||
#define NEWSIZE (MAX(64 * 1024, itemsize))
|
#define SIZEOF8(type) ((sizeof(type)+7)&~7)
|
||||||
void gld_AddDrawItem(GLDrawItemType itemtype, void *itemdata)
|
void gld_AddDrawItem(GLDrawItemType itemtype, void *itemdata)
|
||||||
{
|
{
|
||||||
- int itemsize = 0;
|
- int itemsize = 0;
|
||||||
@ -26,13 +26,13 @@ Index: prboom2/src/gl_drawinfo.c
|
|||||||
- static int itemsizes[GLDIT_TYPES] = {
|
- static int itemsizes[GLDIT_TYPES] = {
|
||||||
+ static const unsigned int itemsizes[GLDIT_TYPES] = {
|
+ static const unsigned int itemsizes[GLDIT_TYPES] = {
|
||||||
0,
|
0,
|
||||||
sizeof(GLWall), sizeof(GLWall), sizeof(GLWall), sizeof(GLWall), sizeof(GLWall),
|
SIZEOF8(GLWall), SIZEOF8(GLWall), SIZEOF8(GLWall), SIZEOF8(GLWall), SIZEOF8(GLWall),
|
||||||
sizeof(GLWall), sizeof(GLWall),
|
SIZEOF8(GLWall), SIZEOF8(GLWall),
|
||||||
Index: prboom2/src/gl_intern.h
|
Index: prboom-plus-2.5.1.4/src/gl_intern.h
|
||||||
===================================================================
|
===================================================================
|
||||||
--- prboom2.orig/src/gl_intern.h
|
--- prboom-plus-2.5.1.4.orig/src/gl_intern.h
|
||||||
+++ prboom2/src/gl_intern.h
|
+++ prboom-plus-2.5.1.4/src/gl_intern.h
|
||||||
@@ -220,7 +220,7 @@ typedef struct
|
@@ -218,7 +218,7 @@ typedef struct
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
@ -41,11 +41,11 @@ Index: prboom2/src/gl_intern.h
|
|||||||
|
|
||||||
float x1, x2, x3;
|
float x1, x2, x3;
|
||||||
float z1, z2, z3;
|
float z1, z2, z3;
|
||||||
Index: prboom2/src/gl_main.c
|
Index: prboom-plus-2.5.1.4/src/gl_main.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- prboom2.orig/src/gl_main.c
|
--- prboom-plus-2.5.1.4.orig/src/gl_main.c
|
||||||
+++ prboom2/src/gl_main.c
|
+++ prboom-plus-2.5.1.4/src/gl_main.c
|
||||||
@@ -2405,15 +2405,20 @@ static void gld_AddHealthBar(mobj_t* thi
|
@@ -2339,15 +2339,20 @@ static void gld_AddHealthBar(mobj_t* thi
|
||||||
GLHealthBar hbar;
|
GLHealthBar hbar;
|
||||||
int health_percent = thing->health * 100 / thing->info->spawnhealth;
|
int health_percent = thing->health * 100 / thing->info->spawnhealth;
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ Index: prboom2/src/gl_main.c
|
|||||||
{
|
{
|
||||||
float sx2 = (float)thing->radius / 2.0f / MAP_SCALE;
|
float sx2 = (float)thing->radius / 2.0f / MAP_SCALE;
|
||||||
float sx1 = sx2 - (float)health_percent * (float)thing->radius / 100.0f / MAP_SCALE;
|
float sx1 = sx2 - (float)health_percent * (float)thing->radius / 100.0f / MAP_SCALE;
|
||||||
@@ -2437,7 +2442,6 @@ static void gld_AddHealthBar(mobj_t* thi
|
@@ -2371,7 +2376,6 @@ static void gld_AddHealthBar(mobj_t* thi
|
||||||
static void gld_DrawHealthBars(void)
|
static void gld_DrawHealthBars(void)
|
||||||
{
|
{
|
||||||
int i, count;
|
int i, count;
|
||||||
@ -82,7 +82,7 @@ Index: prboom2/src/gl_main.c
|
|||||||
|
|
||||||
count = gld_drawinfo.num_items[GLDIT_HBAR];
|
count = gld_drawinfo.num_items[GLDIT_HBAR];
|
||||||
if (count > 0)
|
if (count > 0)
|
||||||
@@ -2448,31 +2452,17 @@ static void gld_DrawHealthBars(void)
|
@@ -2382,31 +2386,17 @@ static void gld_DrawHealthBars(void)
|
||||||
for (i = count - 1; i >= 0; i--)
|
for (i = count - 1; i >= 0; i--)
|
||||||
{
|
{
|
||||||
GLHealthBar *hbar = gld_drawinfo.items[GLDIT_HBAR][i].item.hbar;
|
GLHealthBar *hbar = gld_drawinfo.items[GLDIT_HBAR][i].item.hbar;
|
||||||
|
3
prboom-plus-2.5.1.4+.tar.xz
Normal file
3
prboom-plus-2.5.1.4+.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e5554c6690677886fc976182f03e2f4cc16d9b3ffb8e039c839065d082031bbe
|
||||||
|
size 1118052
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:d6d109705df868105df44a4fe7c30f7ffb33e8bcdd05f611e767f90c3628a41b
|
|
||||||
size 1202216
|
|
@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 29 23:57:18 UTC 2016 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Update to version 2.5.1.4
|
||||||
|
* Added "Allow Jump" and "Allow Vertical Aiming" option on
|
||||||
|
Prboom-plus 'bad' compatibility settings" page.
|
||||||
|
* Added a "Backpack Changes Thresholds" option
|
||||||
|
* "Use GL surface for software mode" mode now works much faster
|
||||||
|
if gl_finish is 0 in config.
|
||||||
|
* Better support for Chex Quest,
|
||||||
|
* Fixed the classic "Long Wall" rendering error.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Mar 29 19:19:54 UTC 2015 - jengelh@inai.de
|
Sun Mar 29 19:19:54 UTC 2015 - jengelh@inai.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package prboom-plus
|
# spec file for package prboom-plus
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,16 +17,17 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: prboom-plus
|
Name: prboom-plus
|
||||||
Version: 2.5.1.4~test4355
|
Version: 2.5.1.4
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Open source port of the DOOM game engine
|
Summary: Open source port of the DOOM game engine
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
Group: Amusements/Games/3D/Shoot
|
Group: Amusements/Games/3D/Shoot
|
||||||
Url: http://prboom-plus.sourceforge.net/
|
Url: http://prboom-plus.sf.net/
|
||||||
|
|
||||||
#SVN-Clone: https://svn.prboom.org/repos/branches/prboom-plus-24/prboom2
|
#SVN-Clone: https://svn.prboom.org/repos/branches/prboom-plus-24/prboom2
|
||||||
#DL-URL: http://downloads.sf.net/prboom-plus/prboom-plus-2.5.1.3.tar.gz
|
#DL-URL: http://downloads.sf.net/prboom-plus/prboom-plus-2.5.1.4.tar.gz
|
||||||
Source: %name-%version.tar.xz
|
Source: %name-%version+.tar.xz
|
||||||
|
Source2: clean_source.sh
|
||||||
Patch1: prboom-nodatetime.diff
|
Patch1: prboom-nodatetime.diff
|
||||||
Patch2: prboom-types1.diff
|
Patch2: prboom-types1.diff
|
||||||
Patch3: prboom-types2.diff
|
Patch3: prboom-types2.diff
|
||||||
@ -34,17 +35,20 @@ Patch5: prboom-enable-tessellation.diff
|
|||||||
Patch6: prboom-hbar-color.diff
|
Patch6: prboom-hbar-color.diff
|
||||||
Patch7: prboom-hbar-all.diff
|
Patch7: prboom-hbar-all.diff
|
||||||
Patch8: prboom-hbar-gradient.diff
|
Patch8: prboom-hbar-gradient.diff
|
||||||
Source2: clean_source.sh
|
|
||||||
BuildRequires: Mesa-devel
|
BuildRequires: Mesa-devel
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: fluidsynth-devel
|
BuildRequires: fluidsynth-devel
|
||||||
|
BuildRequires: hicolor-icon-theme
|
||||||
BuildRequires: libSDL_image-devel
|
BuildRequires: libSDL_image-devel
|
||||||
BuildRequires: libSDL_mixer-devel
|
BuildRequires: libSDL_mixer-devel
|
||||||
BuildRequires: libSDL_net-devel
|
BuildRequires: libSDL_net-devel
|
||||||
BuildRequires: libpng-devel
|
BuildRequires: libpng-devel
|
||||||
BuildRequires: libvorbis-devel
|
BuildRequires: libvorbis-devel
|
||||||
BuildRequires: pcre-devel
|
BuildRequires: pcre-devel
|
||||||
BuildRequires: xz
|
%if 0%{?suse_version} >= 1320
|
||||||
|
BuildRequires: portmidi-devel
|
||||||
|
%endif
|
||||||
|
BuildRequires: update-desktop-files
|
||||||
Suggests: freedoom
|
Suggests: freedoom
|
||||||
Provides: prboom = 2.5.0plus
|
Provides: prboom = 2.5.0plus
|
||||||
Obsoletes: prboom <= 2.5.0
|
Obsoletes: prboom <= 2.5.0
|
||||||
@ -52,52 +56,51 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|||||||
|
|
||||||
%description
|
%description
|
||||||
PrBoom+ is a Doom source port developed from the original PrBoom
|
PrBoom+ is a Doom source port developed from the original PrBoom
|
||||||
project.
|
project, an open-source port of Doom, the classic 3D first-person
|
||||||
|
shooter game which outclassed any 3D world games that preceded
|
||||||
|
it, with amazing speed, flexibility, and outstanding gameplay.
|
||||||
|
|
||||||
prboom is an open-source port of Doom, the classic 3D first-person
|
prboom(-plus) focuses heavily on retaining compatibility with the
|
||||||
shooter game. It totally outclassed any 3D world games that preceded
|
original Doom engines, which plays a big role in demo recording and
|
||||||
it, with amazing speed, flexibility, and outstanding gameplay. The
|
playback.
|
||||||
specs to the game were released, and thousands of extra levels were
|
|
||||||
written by fans of the game; even today new levels are written for
|
|
||||||
Doom faster then any one person could play them.
|
|
||||||
|
|
||||||
The target of the prboom-plus project is to extend the original port
|
|
||||||
with features that are necessary or useful to the developers and all
|
|
||||||
those interested in their work. It is worth noting that all changes
|
|
||||||
introduced in no way break PrBoom's compatibility with the original
|
|
||||||
Doom/Doom2 engines, and it is possible to be confident this will
|
|
||||||
never happen in the future since compatibility is as important.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qn prboom2
|
%setup -q
|
||||||
%patch -P 1 -P 2 -P 3 -P 5 -P 6 -P 7 -P 8 -p1
|
%patch -P 1 -P 2 -P 3 -P 5 -P 6 -P 7 -P 8 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./bootstrap;
|
|
||||||
# rpm has its own optimizations, so turn off shipped defaults
|
# rpm has its own optimizations, so turn off shipped defaults
|
||||||
%configure --enable-gl --disable-cpu-opt --program-prefix='' \
|
%configure --enable-gl --disable-cpu-opt --program-prefix="" \
|
||||||
--with-waddir=%_datadir/doom --disable-dogs
|
--with-waddir="%_datadir/doom" --disable-dogs
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
b="%buildroot";
|
%make_install gamesdir="%_bindir"
|
||||||
make install DESTDIR="$b";
|
|
||||||
# Will manually package docs (see %%files)
|
# convenience symlink
|
||||||
rm -Rf "$b/%_datadir/doc";
|
ln -s prboom-plus "%buildroot/%_bindir/prboom"
|
||||||
mkdir -p "$b/%_bindir";
|
|
||||||
mv "$b/%_prefix/games"/* "$b/%_bindir/";
|
install -Dm0644 ICONS/prboom-plus.svg "%buildroot/%_datadir/icons/hicolor/scalable/apps/prboom-plus.svg"
|
||||||
# Convenience symlink
|
install -Dm0644 ICONS/prboom-plus.desktop "%buildroot/%_datadir/applications/prboom-plus.desktop"
|
||||||
ln -s prboom-plus "$b/%_bindir/prboom";
|
|
||||||
|
install -Dm0644 ICONS/prboom-plus.bash "%buildroot/%_datadir/bash-completion/completions/prboom-plus.bash"
|
||||||
|
|
||||||
%post
|
%post
|
||||||
echo "INFO: %name: The global IWAD directory is %_datadir/doom.";
|
%desktop_database_post
|
||||||
|
%icon_theme_cache_post
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%desktop_database_postun
|
||||||
|
%icon_theme_cache_postun
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc NEWS AUTHORS README
|
|
||||||
%doc doc/MBF.txt doc/MBFFAQ.txt doc/README.compat doc/README.demos doc/boom.txt
|
|
||||||
%_bindir/*
|
%_bindir/*
|
||||||
%_datadir/doom
|
%_datadir/doom/
|
||||||
|
%_datadir/doc/%name-%version/
|
||||||
%_mandir/*/*
|
%_mandir/*/*
|
||||||
|
%_datadir/applications/prboom-plus.desktop
|
||||||
|
%_datadir/icons/hicolor/scalable/apps/prboom-plus.svg
|
||||||
|
%_datadir/bash-completion/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user