From 80c8bf2d019e6b73c4cad71b9736d75190328892 Mon Sep 17 00:00:00 2001 From: Dmitri Smirnov Date: Apr 18 2019 08:00:41 +0000 Subject: Add gzdoom.spec --- diff --git a/gzdoom.spec b/gzdoom.spec new file mode 100644 index 0000000..c046ba4 --- /dev/null +++ b/gzdoom.spec @@ -0,0 +1,120 @@ +Name: gzdoom +Version: 3.7.2 +Release: 1%{?dist} +Summary: An OpenGL DOOM source port with graphic and modding extensions +License: GPLv3 +URL: https://github.com/coelckers/gzdoom +Source0: %{url}/releases/download/v%{version}/%{name}-g%{version}.tar.gz +Source1: gzdoom.desktop + +Provides: bundled(lzma-sdk) = 17.01 +Provides: bundled(dumb) = 0.9.3 +Provides: bundled(gdtoa) +Provides: bundled(re2c) = 0.16.0 + +Patch1: gzdoom-waddir.patch +Patch2: gzdoom-wadsrc-extra.patch +Patch3: gzdoom-staticlibs.patch +Patch6: gzdoom-asmjit.patch +Patch7: gzdoom-fl2.patch + +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: make +BuildRequires: cmake +BuildRequires: tar +BuildRequires: git +BuildRequires: glew-devel + +# pkgconfig +#BuildRequires: pkgconfig(flac) +BuildRequires: pkgconfig(bzip2) +BuildRequires: pkgconfig(fluidsynth) +BuildRequires: pkgconfig(sdl) +BuildRequires: pkgconfig(sdl2) +BuildRequires: pkgconfig(sndfile) +BuildRequires: pkgconfig(libgme) +BuildRequires: pkgconfig(openal) +BuildRequires: pkgconfig(libmpg123) + +Requires: openal-soft +Requires: fluidsynth +Requires: SDL2 + +%description +ZDoom is a family of enhanced ports (modifications) of the Doom engine for +running on modern operating systems. It runs on Windows, Linux, and OS X, and +adds new features not found in the games as originally published by id Software. + +ZDoom features the following that is not found in the original Doom: + + * Runs on all modern versions of Windows, Mac, and Linux distributions + * Can play all Doom engine games, including Ultimate Doom, Doom II, Heretic, + Hexen, Strife, and more + * Supports all editing features of Hexen + * Supports most of the Boom editing features + * Supports new features such as colored lighting, 3D floors, and much more + * All Doom limits are gone + * Several softsynths for MUS and MIDI playback, including OPL softsynth for an + authentitc "oldschool" flavor + * High resolutions + * Quake-style console and key bindings + * Crosshairs + * Free look + * Jumping, crouching, swimming, and flying + * Up to 8 player network games using UDP/IP, including team-based gameplay + * Support for the Bloodbath announcer from the classic Monolith game Blood + * Walk over/under monsters and other things + +GZDoom provides an OpenGL renderer and HQnX rescaling. + +%prep +%setup -q -n %{name}-g%{version} +%patch -P 1 -P 2 -P 3 -P 6 -P 7 -p1 + +%build +%cmake -DNO_STRIP=1 \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SHARED_LINKER_FLAGS="" \ + -DCMAKE_EXE_LINKER_FLAGS="" \ + -DCMAKE_MODULE_LINKER_FLAGS="" \ + -DINSTALL_DOCS_PATH="%{_docdir}/%{name}" \ + -DINSTALL_PK3_PATH="%{_datadir}/doom" + +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +%make_install + +%{__mkdir} -p ${RPM_BUILD_ROOT}%{_datadir}/applications +%{__install} -m 0644 %{SOURCE1} \ + ${RPM_BUILD_ROOT}%{_datadir}/applications/gzdoom.desktop + +# Don't know why but the XPM isn't put anywhere +%{__mkdir} -p ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/256x256/apps +cp %{_builddir}/%{name}-g%{version}/src/posix/zdoom.xpm \ + ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/256x256/apps/gzdoom.xpm + +# Fallback soundfont +%{__mkdir} ${RPM_BUILD_ROOT}%{_datadir}/doom/soundfonts +cp %{_builddir}/%{name}-g%{version}/soundfont/gzdoom.sf2 \ + ${RPM_BUILD_ROOT}%{_datadir}/doom/soundfonts/gzdoom.sf2 + +%post +echo "INFO: %{name}: The global IWAD directory is %{_datadir}/doom." + +%files +%defattr(-, root, root, -) +%doc docs/console.css docs/console.html docs/rh-log.txt docs/licenses/* +%{_bindir}/%{name} +%{_datadir}/doom/* +%{_docdir}/%{name}/* +%{_datadir}/applications/gzdoom.desktop +%{_datadir}/icons/hicolor/256x256/apps/gzdoom.xpm + + +%changelog +* Sun Apr 14 2019 Dmitri Smirnov - 3.7.2-1 +- Upstream release 3.7.2 \ No newline at end of file