commit bb05919db709d0469c2b4ee02b24d1877e527a1348999139a181635eedf25ae9 Author: Jan Engelhardt Date: Thu Aug 15 16:48:26 2024 +0000 [info=29552b330e2d8b8b7f442064b5533a41124003e5633921bad4411cce94339d21] OBS-URL: https://build.opensuse.org/package/show/games/prboom-plus?expand=0&rev=54 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/_scmsync.obsinfo b/_scmsync.obsinfo new file mode 100644 index 0000000..1f3800f --- /dev/null +++ b/_scmsync.obsinfo @@ -0,0 +1,4 @@ +mtime: 1712764154 +commit: 29552b330e2d8b8b7f442064b5533a41124003e5633921bad4411cce94339d21 +url: https://src.opensuse.org/jengelh/prboom-plus +revision: master diff --git a/build.specials.obscpio b/build.specials.obscpio new file mode 100644 index 0000000..1a07fc6 --- /dev/null +++ b/build.specials.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:44586489e8d1e08a40a8230c6bf7ce9141dd3d7f273336aca3ef781bb5b97ea3 +size 256 diff --git a/prboom-hbar-all.diff b/prboom-hbar-all.diff new file mode 100644 index 0000000..c84f7ea --- /dev/null +++ b/prboom-hbar-all.diff @@ -0,0 +1,80 @@ +From f8dc397539f27c601aa6f1f3ea0f6c1f177efd97 Mon Sep 17 00:00:00 2001 +From: Jan Engelhardt +Date: Wed, 1 May 2013 09:53:49 +0200 +Subject: [PATCH 1/2] Add option to show health bar for all destructible mobjs +References: https://github.com/coelckers/prboom-plus/pull/274 + +The current health bar fails to show for Lost Souls. +In addition, showing it for other destructible objects (such as +barrels - or DEH modifications in that spirit) can be used to gauge +the objects' remaining life. +--- + prboom2/src/gl_main.c | 10 +++++++++- + prboom2/src/m_misc.c | 2 ++ + prboom2/src/r_things.c | 1 + + prboom2/src/r_things.h | 1 + + 4 files changed, 13 insertions(+), 1 deletion(-) + +diff --git prboom2/src/gl_main.c prboom2/src/gl_main.c +index 20712b7e..763bcbae 100644 +--- prboom2/src/gl_main.c ++++ prboom2/src/gl_main.c +@@ -2326,9 +2326,17 @@ static void gld_DrawSprite(GLSprite *sprite) + } + } + ++static int gld_EvaluateShowBar(mobj_t* thing) ++{ ++ if (health_bar_shootables) ++ return thing->flags & MF_SHOOTABLE; ++ return (thing->flags & (MF_COUNTKILL | MF_CORPSE)) == MF_COUNTKILL; ++} ++ + static void gld_AddHealthBar(mobj_t* thing, GLSprite *sprite) + { +- if (((thing->flags & (MF_COUNTKILL | MF_CORPSE)) == MF_COUNTKILL) && (thing->health > 0)) ++ if (thing->info->spawnhealth > 0 && thing->health > 0 && ++ gld_EvaluateShowBar(thing)) + { + GLHealthBar hbar; + int health_percent = thing->health * 100 / thing->info->spawnhealth; +diff --git prboom2/src/m_misc.c prboom2/src/m_misc.c +index 0bf3f5b9..e819ad61 100644 +--- prboom2/src/m_misc.c ++++ prboom2/src/m_misc.c +@@ -1045,6 +1045,8 @@ default_t defaults[] = + def_bool,ss_stat}, + {"health_bar_full_length", {&health_bar_full_length}, {1},0,1, + def_bool,ss_stat}, ++ {"health_bar_shootables", {&health_bar_shootables}, {0},0,1, ++ def_bool,ss_stat}, + {"health_bar_red", {&health_bar_red}, {50},0,100, + def_int,ss_stat}, + {"health_bar_yellow", {&health_bar_yellow}, {99},0,100, +diff --git prboom2/src/r_things.c prboom2/src/r_things.c +index c537dd5e..fd1215fd 100644 +--- prboom2/src/r_things.c ++++ prboom2/src/r_things.c +@@ -73,6 +73,7 @@ int sprites_doom_order; + + int health_bar; + int health_bar_full_length; ++int health_bar_shootables; + int health_bar_red; + int health_bar_yellow; + int health_bar_green; +diff --git prboom2/src/r_things.h prboom2/src/r_things.h +index 2267cb83..52e5beea 100644 +--- prboom2/src/r_things.h ++++ prboom2/src/r_things.h +@@ -75,6 +75,7 @@ extern int sprites_doom_order; + + extern int health_bar; + extern int health_bar_full_length; ++extern int health_bar_shootables; + extern int health_bar_red; + extern int health_bar_yellow; + extern int health_bar_green; +-- +2.31.1 + diff --git a/prboom-hbar-gradient.diff b/prboom-hbar-gradient.diff new file mode 100644 index 0000000..0ef45d5 --- /dev/null +++ b/prboom-hbar-gradient.diff @@ -0,0 +1,85 @@ +From be1128c66a342ca381532ac3c6bcd286d871fdc3 Mon Sep 17 00:00:00 2001 +From: Jan Engelhardt +Date: Wed, 1 May 2013 09:53:49 +0200 +Subject: [PATCH 2/2] Implement color gradient for health bar +References: https://github.com/coelckers/prboom-plus/pull/274 + +--- + prboom2/src/gl_intern.h | 2 +- + prboom2/src/gl_main.c | 31 +++++++++++++++++-------------- + 2 files changed, 18 insertions(+), 15 deletions(-) + +diff --git prboom2/src/gl_intern.h prboom2/src/gl_intern.h +index b4be8d56..8c44d9a7 100644 +--- prboom2/src/gl_intern.h ++++ prboom2/src/gl_intern.h +@@ -219,7 +219,7 @@ typedef struct + + typedef struct + { +- int cm; ++ float r,g; + + float x1, x2, x3; + float z1, z2, z3; +diff --git prboom2/src/gl_main.c prboom2/src/gl_main.c +index 763bcbae..8dcb03fd 100644 +--- prboom2/src/gl_main.c ++++ prboom2/src/gl_main.c +@@ -2340,16 +2340,24 @@ static void gld_AddHealthBar(mobj_t* thing, GLSprite *sprite) + { + GLHealthBar hbar; + int health_percent = thing->health * 100 / thing->info->spawnhealth; ++ int yr = health_bar_yellow - health_bar_red; + +- hbar.cm = -1; +- if (health_percent <= health_bar_red) +- hbar.cm = CR_RED; +- else if (health_percent <= health_bar_yellow) +- hbar.cm = CR_YELLOW; +- else if (health_percent <= health_bar_green) +- hbar.cm = CR_GREEN; ++ hbar.r = hbar.g = -1.0f; ++ if (health_percent <= 0) { ++ hbar.r = 1.0f; ++ hbar.g = 0.0f; ++ } else if (health_percent <= health_bar_red) { ++ hbar.r = 1.0f; ++ hbar.g = yr == 0 ? 0 : (float)health_percent / yr; ++ } else if (health_percent <= health_bar_yellow) { ++ hbar.r = yr == 0 ? 1 : (float)(health_bar_yellow - health_percent) / yr; ++ hbar.g = 1.0f; ++ } else if (health_percent <= health_bar_green) { ++ hbar.r = 0.0f; ++ hbar.g = 1.0f; ++ } + +- if (hbar.cm >= 0) ++ if (hbar.r >= 0 && hbar.g >= 0) + { + float sx2 = (float)thing->radius / 2.0f / MAP_SCALE; + float sx1 = sx2 - (float)health_percent * (float)thing->radius / 100.0f / MAP_SCALE; +@@ -2373,7 +2381,6 @@ static void gld_AddHealthBar(mobj_t* thing, GLSprite *sprite) + static void gld_DrawHealthBars(void) + { + int i, count; +- int cm = -1; + + count = gld_drawinfo.num_items[GLDIT_HBAR]; + if (count > 0) +@@ -2384,11 +2391,7 @@ static void gld_DrawHealthBars(void) + for (i = count - 1; i >= 0; i--) + { + GLHealthBar *hbar = gld_drawinfo.items[GLDIT_HBAR][i].item.hbar; +- if (hbar->cm != cm) +- { +- cm = hbar->cm; +- glColor4f(cm2RGB[cm][0], cm2RGB[cm][1], cm2RGB[cm][2], 1.0f); +- } ++ glColor4f(hbar->r, hbar->g, 0.0f, 1.0f); + + glVertex3f(hbar->x1, hbar->y, hbar->z1); + glVertex3f(hbar->x2, hbar->y, hbar->z2); +-- +2.31.1 + diff --git a/prboom-nodatetime.diff b/prboom-nodatetime.diff new file mode 100644 index 0000000..a4e7d3e --- /dev/null +++ b/prboom-nodatetime.diff @@ -0,0 +1,30 @@ +From 2bf8068e0cd916b39fd2c57f3c9bf582b0fc45d8 Mon Sep 17 00:00:00 2001 +From: Jan Engelhardt +Date: Sun, 19 Feb 2012 07:16:45 +0100 +Subject: [PATCH] Drop __DATE__/__TIME__ / enable reproducible builds + +--- + prboom2/src/version.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git prboom2/src/version.c prboom2/src/version.c +index 1f5401f2..2cc173f6 100644 +--- prboom2/src/version.c ++++ prboom2/src/version.c +@@ -37,11 +37,11 @@ + #include "version.h" + + #ifndef BUILD_DATE +-#define BUILD_DATE __DATE__ ++#define BUILD_DATE "" + #endif + + #ifndef BUILD_TIME +-#define BUILD_TIME __TIME__ ++#define BUILD_TIME "" + #endif + + const char version_date[] = BUILD_DATE " " BUILD_TIME; +-- +2.30.2 + diff --git a/prboom-plus.changes b/prboom-plus.changes new file mode 100644 index 0000000..cd7f608 --- /dev/null +++ b/prboom-plus.changes @@ -0,0 +1,253 @@ +------------------------------------------------------------------- +Tue Apr 9 16:25:32 UTC 2024 - Jan Engelhardt + +- Avoid making /usr/share/doc/packages itself part of the RPM + following a change in the %cmake macro + +------------------------------------------------------------------- +Tue Apr 2 09:16:13 UTC 2024 - Jan Engelhardt + +- Make filelist stricter, because it packaged + /usr/share/doc/packages, a result of the %configure macro + changing in TW from ``--docdir=/usr/share/doc`` to + ``--docdir=/usr/share/doc/packages``. + +------------------------------------------------------------------- +Fri Nov 3 07:38:08 UTC 2023 - Jan Engelhardt + +- Update to release 2.6.66 + * Move default data directory to XDG_DATA_HOME on Linux + * Fix integer overflow during multiplication with + realtic_clock_rate + * Fix mid-texture vibrations when upper and middle textures + overlap + * Fixing wall texture bleed when a sector is inside the sky + * Adjust music volume slider to match vanilla Doom + * Use non-linear scaling for high volume levels +- Delete 0001-Fix-integer-overflow-during-multiplication-with-real.patch + (merged) + +------------------------------------------------------------------- +Wed Mar 2 12:24:56 UTC 2022 - Jan Engelhardt + +- Add 0001-Fix-integer-overflow-during-multiplication-with-real.patch + to resolve jaggy motion when gamespeed!=100 and when the + program has run for 25+ minutes. + +------------------------------------------------------------------- +Sat Feb 19 16:19:14 UTC 2022 - Jan Engelhardt + +- Drop prboom-enable-tessellation.diff, this is enabled + automatically when pkgconfig(GLU) is available (which we have). + +------------------------------------------------------------------- +Sun Feb 13 11:30:29 UTC 2022 - Jan Engelhardt + +- Update to release 2.6.2 + * added a prospective fix for OpenGL rendering: don't bleed + walls through sky floors + * no more crashes at textscreens (e.g. after MAP06, MAP11 or + MAP20) after viewing finale picture upon finishing a level + with UMAPINFO 'endpic' property + * fixed freezing at TITLEPIC while using mousewheel in menus + * fixed looping forever in G_NextWeapon() + * UMAPINFO: fix 'entering' and 'enterpic' shown on exit levels + * GL: adjust sky offsets for non-standard FOVs + * fixed stuttering with uncapped framerate + * added support for widescreen low resolutions + * added REKKR to launcher string list + * Portmidi: fix freeze after song change * fixed scaled time interpolation when changing game speed + * fixed wrong pitch of SFX when MIDI Player is set to SDL + * UMAPINFO: fixed par times not showing + * fixed demo playback warp consistency + * added SKILL cheat to display current skill level + * fixed calculation of interpolation frac value + * added 'run' as a mouse-settable control (mouseb_speed) + +------------------------------------------------------------------- +Mon Aug 16 09:27:59 UTC 2021 - Jan Engelhardt + +- Update to release 2.6.1um + * Allow colored blood to get set/overridden by DEHACKED + * Made the Ouch Face fix available on all complevels + * Added the autoload folder feature from Chocolate Doom + * Made Doom sound quirk fixes available on all complevels + * UMAPINFO: introduce the new 'label' field (#308) + * Fixed a levelstat crash + * Added a "-coop_spawns" parameter for using "coop in single-player" mode + * UMAPINFO: entries without defined 'levelname' fall back to default + +------------------------------------------------------------------- +Sat May 1 13:01:20 UTC 2021 - Jan Engelhardt + +- Update to snapshot 2.6um+git81 (15431b3a9aac) + * Fix sky scaling for non-standard sky sizes + * Support widescreen assets + * Add OpenGL sprite fuzz options +- Update prboom-hbar-all.diff, prboom-hbar-gradient.diff + from project. + +------------------------------------------------------------------- +Fri Apr 9 23:53:06 UTC 2021 - Jan Engelhardt + +- Switch to Oelcker's prboom-plus-um code base +- Update to release 2.6um and snapshot 2.6um+git69 (07925d634) + * Support for UMAPINFO lump, customizable intermissions, + customizable episode menu. + * It is now possible to set individual key bindings to + unassigned (completely disable a hotkey function) + * Support for Compressed ZDoom BSP nodes. + * 100 extra sprites (SP00..SP99) for use in DEH/BEX, + 200 extra sounds for use in DEH/BEX. + * Add -statdump parameter from Chocolate Doom. + * Add -stroller parameter. + * Added new BEX property "Dropped item" for mobjs. + * New demo format with "PR+UM" signature. + * Add a "-pistolstart" command line parameter. + * Add ALSA sequencer API backend for ALSA MIDI support. + * Now defaults to ffmpeg for video encoding + (switched from previous oggenc2 & x264). +- Drop 0001-fix-heap-buffer-overflows-in-UDP-code-CVE-2019-20797.patch + (merged), prboom-types1.diff (obsolete), + prboom-types2.diff (obsolete), prboom-hbar-color.diff (folded + into prboom-hbar-gradient.diff) + +------------------------------------------------------------------- +Tue Jun 9 20:32:48 UTC 2020 - Jan Engelhardt + +- Add 0001-fix-heap-buffer-overflows-in-UDP-code-CVE-2019-20797.patch + [CVE-2019-20797, boo#1171974] + +------------------------------------------------------------------- +Sun Jun 7 22:32:17 UTC 2020 - Jan Engelhardt + +- Set CFLAGS+=-fcommon. + +------------------------------------------------------------------- +Fri Aug 23 16:21:12 UTC 2019 - Jan Engelhardt + +- Disable DUMB backend because of its removal from Factory + +------------------------------------------------------------------- +Wed Jan 23 15:32:18 UTC 2019 - Jan Engelhardt + +- Enable DUMB music backend + +------------------------------------------------------------------- +Wed Nov 14 08:55:03 UTC 2018 - Jan Engelhardt + +- Update to snapshot 2.5.1.5 SVN4532 + * Move to SDL2 + * Added the "cap_fps" config variable + * The Del key can be used to clear key bindings in the setup menu. + * Added "Weapon Attack Alignment" option to align the weapon while + shooting. Possible values: "off" (doom behavior), "horizontal", + "centered" and "bobbing" for bobbing during fire. + * Removed the "Strafe 50 on Turns" and "Two-key strafe50: + StrafeOn + MoveLR = strafe50" feature. + +------------------------------------------------------------------- +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 + +- Avoid strange inequality in Provides tag + +------------------------------------------------------------------- +Mon Nov 11 05:06:31 UTC 2013 - jengelh@inai.de + +- Update to snapshot 2.5.1.4 SVN4355 +* Added "Fix clipping problems in large levels" option. +* Added "gl_finish" config variable. +* Added a "Health Bar Above Monsters" option (health_bar* config + variables; GL only). +* Added a "Things appearance" automap option. Possible values: + "classic", "scaled" and "icons". +* Added "notarget" and "fly" cheat codes. +* Added MBF's "-beta" codepointers. +* Added a new HUD. +* Added "shaders" sector light mode. +* Support "Classic Doom" WAD files of Doom 3 BFG Edition and HACX + 1.2 IWAD +* Restricted mouse look (Heretic-style Y-shearing) now is available + in software mode. +* Added a crosshair. Three different crosshair graphics are for + choice: cross, angle and dot. Extra features are changing + crosshair colors according to the player's health and/or on sight + of a target. +* "Use GL surface for software mode" mode now works much faster if + gl_finish is 0 in config. +* Ability to use e.g. doom1.wad as a resource for a doom2 IWAD, + e.g. freedoom (prboom-plus -iwad freedoom.wad -file doom1.wad). + +------------------------------------------------------------------- +Sun Mar 24 13:35:18 UTC 2013 - jengelh@inai.de + +- Update to new upstream release 2.5.1.3 +* Added device selection to portmidi player. Controlled by the + snd_mididev config variable. See stdout.txt for list of + available devices. +* Added a progress bar for demo skipping during re-recording. +* Added key binding options for start/stop and fast-forward when + watching demos. +* Added a key binding option to restart the current map. +* Added a "Default compatibility level" GUI entry. +* Support for 16 sprite rotations. http://zdoom.org/wiki/Sprite#Angles +* New HUDs. HUDs definitions are moved to the + "prboom-plus.wad/-prbhud-" lump. +- Remove prboom-protos.diff, merged upstream + +------------------------------------------------------------------- +Fri May 25 20:32:53 UTC 2012 - joop.boonen@opensuse.org + +- Corrected typo in spec file + +------------------------------------------------------------------- +Fri May 25 16:13:06 UTC 2012 - joop.boonen@opensuse.org + +- Added BuildRequires automake + +------------------------------------------------------------------- +Wed Aug 3 16:38:07 UTC 2011 - jengelh@medozas.de + +- Enable missing USE_GLU_TESS for the self-referencing sector hack + to be rendered. + +------------------------------------------------------------------- +Mon Jun 20 11:25:36 UTC 2011 - jengelh@medozas.de + +- Update to new upstream release 2.5.1.1: +* Support was added for sound fonts, OPL2 emulation, mouse wheel, + changing resolution on the fly, interpolation of automap, and the + "use GL surface for software mode" video option for the ability + to use hardware vsync in software mode. + +------------------------------------------------------------------- +Tue Nov 16 14:03:31 UTC 2010 - jengelh@medozas.de + +- Update to new upstream release 2.5.0.8a: +* Support for textured automap was added. Compatibility with Doom + 1.2 was improved. New HUDs and bugs were fixed. + +------------------------------------------------------------------- +Mon Aug 23 09:31:11 UTC 2010 - jengelh@medozas.de + +- Update to new upstream release 2.5.0.7: +* A lot of compatibility and improvements, many bug fixes, and + several new features were added, including support for DeePBSP and + uncompressed ZDBSP nodes and dynamic music changing... through the + new MUSINFO lump. On the GLBoom+ front, there is support for GZDoom + skyboxes, custom detail texture definitions, and blending of + animated flats and wall textures. + + diff --git a/prboom-plus.spec b/prboom-plus.spec new file mode 100644 index 0000000..151a95b --- /dev/null +++ b/prboom-plus.spec @@ -0,0 +1,107 @@ +# +# spec file for package prboom-plus +# +# Copyright (c) 2024 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: prboom-plus +Version: 2.6.66 +Release: 0 +Summary: DOOM source port with demo compatibility +License: GPL-2.0-or-later +Group: Amusements/Games/3D/Shoot +URL: http://prboom-plus.sf.net/ + +#Git-Clone: https://github.com/coelckers/prboom-plus +Source: https://github.com/coelckers/prboom-plus/archive/refs/tags/v%version.tar.gz +Patch1: prboom-nodatetime.diff +Patch3: prboom-hbar-all.diff +Patch4: prboom-hbar-gradient.diff +BuildRequires: Mesa-devel +BuildRequires: c++_compiler +BuildRequires: cmake +BuildRequires: fluidsynth-devel +BuildRequires: hicolor-icon-theme +BuildRequires: libpng-devel +BuildRequires: libvorbis-devel +BuildRequires: pcre-devel +BuildRequires: portmidi-devel +BuildRequires: update-desktop-files +BuildRequires: pkgconfig(SDL2_image) +BuildRequires: pkgconfig(SDL2_mixer) +BuildRequires: pkgconfig(SDL2_net) +BuildRequires: pkgconfig(sdl2) +Suggests: freedoom +Provides: prboom = 2.6um +Obsoletes: prboom <= 2.6 + +%description +PrBoom+ is a conservative Doom source port. It features: + +* The removal of engine limits and bugs, like the visplane limit, + savegame size limit, the tutti-frutti and medusa visual effects, + and others. +* BOOM editing extensions, e.g. configurable animated/switch + textures, deep water effect, scrolling walls/floors/ceilings, + conveyor belts, translucent walls and sprites, friction effects, + and generic linedef actions. +* Focus on retaining compatibility with the original Doom engines + for the purpose of demo recording and playback. +* High resolution rendering of map geometry, optionally in OpenGL + mode. + +%prep +%autosetup -p0 + +%build +pushd prboom2/ +%cmake -DDOOMWADDIR="%_datadir/doom" -DPRBOOMDATADIR="%_datadir/doom" +%cmake_build +popd + +%install +s="$PWD" +pushd prboom2/ +%cmake_install +# convenience symlink +b="%buildroot" +ln -s prboom-plus "$b/%_bindir/prboom" +install -Dm0644 ICONS/prboom-plus.svg "$b/%_datadir/icons/hicolor/scalable/apps/prboom-plus.svg" +install -Dm0644 ICONS/prboom-plus.desktop "$b/%_datadir/applications/prboom-plus.desktop" +install -Dm0644 ICONS/prboom-plus.bash "$b/%_datadir/bash-completion/completions/prboom-plus.bash" +popd +# TW switched doc location in %%cmake +(cd "%buildroot"; find "./%_datadir/doc" -type d -name prboom-plus | cut -b2-) >"$s/doc.files" +ls -al "$s/doc.files" + +%if 0%{?suse_version} && 0%{?suse_version} < 1550 +%post +%desktop_database_post +%icon_theme_cache_post + +%postun +%desktop_database_postun +%icon_theme_cache_postun +%endif + +%files -f doc.files +%_bindir/* +%_datadir/doom/ +%_mandir/*/* +%_datadir/applications/prboom-plus.desktop +%_datadir/icons/hicolor/scalable/apps/prboom-plus.svg +%_datadir/bash-completion/ + +%changelog diff --git a/v2.6.66.tar.gz b/v2.6.66.tar.gz new file mode 100644 index 0000000..e006966 --- /dev/null +++ b/v2.6.66.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4b647b4b14c3fac00711e6bf19f996bbfe37754a3b9bb5be6791f0c3fd993438 +size 1558712