From 4ccbf11728e4791e277d8d2c5e6a9b3ef55d4ec5 Mon Sep 17 00:00:00 2001 From: TerminalHash Date: Tue, 15 Jun 2021 12:56:43 +0300 Subject: [PATCH] Other: add RPM spec. --- rpm/d2dforever.spec | 96 ++++++++++++++++++++++++++++++++++++++++ rpm/res/doom2df.desktop | 11 +++++ rpm/res/doom2df.png | Bin 0 -> 6203 bytes 3 files changed, 107 insertions(+) create mode 100755 rpm/d2dforever.spec create mode 100755 rpm/res/doom2df.desktop create mode 100644 rpm/res/doom2df.png diff --git a/rpm/d2dforever.spec b/rpm/d2dforever.spec new file mode 100755 index 0000000..342ea25 --- /dev/null +++ b/rpm/d2dforever.spec @@ -0,0 +1,96 @@ +# +# Doom2D Forever spec file. It's a official build of game for Linux. +# Maintainer: Dmitry Lyashuk +# +# Copyright (C) Doom 2D: Forever Developers +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, version 3 of the License ONLY. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + +Name: d2dforever +Version: v0.667 +Release: %mkrel 1 +Summary: Doom-themed platformer with network play +Source0: doom2df.png +Source1: doom2df.desktop +Source2: d2df.1 +URL: http://doom2d.org + +BuildRequires: fpc libenet-devel libvorbis-devel libopus-devel libopusfile-devel libgme-devel libxmp-devel libopenal-devel libsdl2.0-devel + +Group: Games/Arcade +License: GPLv3 +Requires: libenet7 libsdl2.0_0 openal libvorbis0 libopus0 libopusfile0 libgme0 libxmp4 +Provides: d2dforever + +%description +Doom-themed platformer with network play, modern port of the 1996 Doom 2D by Prikol Software. Package contains main binary, headless binary and editor binary with icons and desktop files. Manual (man d2df) included. + +%prep + +# Game sources. +git clone http://repo.or.cz/d2df-sdl.git +cd d2df-sdl +mkdir bin +mkdir tmp + +%build +cd d2df-sdl/src/game + +# Main bin. +export D2DF_BUILD_HASH="$(git rev-parse HEAD)" +fpc -g -gl -FE../../bin -FU../../tmp -dUSE_SDL2 -dUSE_OPENGL -dUSE_OPENAL -dUSE_SDL2 -dUSE_XMP -dUSE_VORBIS -dUSE_OPUS -dUSE_GME Doom2DF.lpr + +# Headless bin. +cd ../.. +rm -R tmp +mkdir tmp +cd src/game +fpc -g -gl -FE../../bin -FU../../tmp -dUSE_SYSSTUB -dUSE_OPENAL -dUSE_XMP -dUSE_VORBIS -dUSE_MODPLUG -dUSE_OPUS -dUSE_GME -dUSE_HEADLESS -oDoom2DF_H Doom2DF.lpr + +%install + +# Create directories. +install -dm755 %{buildroot}/{usr/{bin,share/pixmaps}} +install -dm755 %{buildroot}/usr/share/doom2df + +# Installing files. +# Game. +cd d2df-sdl/bin +install -D -m755 Doom2DF %{buildroot}%{_bindir}/Doom2DF +install -D -m755 Doom2DF_H %{buildroot}%{_bindir}/Doom2DF_H + +# Other. +install -D -m644 %{SOURCE0} %{buildroot}/usr/share/pixmaps/doom2df.png +install -D -m644 %{SOURCE2} %{buildroot}/usr/share/applications/doom2df.desktop +install -D -m644 %{SOURCE4} %{buildroot}%{_mandir}/man1/d2df.1 + +%clean +rm -Rf d2df-sdl +rm -Rf %{buildroot} + +%files +%defattr(0755,root,root) + +# Binaries. +%{_bindir}/Doom2DF +%{_bindir}/Doom2DF_H + +# Icons. +/usr/share/pixmaps/doom2df.png + +# Desktop files. +/usr/share/applications/doom2df.desktop + +# Man pages. +%{_mandir}/man1/d2df.1* diff --git a/rpm/res/doom2df.desktop b/rpm/res/doom2df.desktop new file mode 100755 index 0000000..e3ed261 --- /dev/null +++ b/rpm/res/doom2df.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=1.0 +Name=Doom 2D Forever +Exec=Doom2DF +Icon=doom2df +Terminal=false +Type=Application +Categories=Game;Shooter;ActionGame +Comment=Doom-themed platformer with network play, modern port of the 1996 Doom 2D by Prikol Software +Comment[ru]=Платформер с сетевой игрой во вселенной классического Doom, современный порт игры Doom 2D от Prikol Software +Keywords=Doom;Doom2D;Doom2D Forever;Forever;Shooter;Doom 2D; diff --git a/rpm/res/doom2df.png b/rpm/res/doom2df.png new file mode 100644 index 0000000000000000000000000000000000000000..c1c8724ee09b7b0395df585b21bd13272cb21d57 GIT binary patch literal 6203 zcmbuEXCPd`x4`dOR$W$&60BYl3DNs1A-W(D(OZyU5uydFMhzi^5G`s%ON6M4=p|~j z#VQHW!s>PR?f<>c?|pe+?#w-N=gjY(Gc$M2xpBsZ+E6NXDgXeWI`=e9002a+f&dB# zv9R(fdqOPOeD6N;HAO!0^|$wN2GpF84$g2L4|^A96K8v;K<|EMB>=d#prff~7BIK{ z!6T7*I67&qj3#{!VsGCnb*HslG zZ@*JK`8lM#J{0)#GHm?U!n7iCouE2$FeLAylnhg+;EDR*FT4>|=g63tj1l>lpBeGb zP8y$c>pNWmgiH5htk&hUE~vMuTXm}cZSN~bjPqITgU&6v#T7aII>+rFuH+sYJcOO# zz#K#v8oAkK2LFm#Lccy0!jDK=eeN*6u1y-NsxXyzcG1!yfeT(f>-C$@I|x&h193hHqTYd~0u|J$4 z4Kdtmyv>)6TsiNX_CG@IZ_^!oO@9-fs5H0bVavCA>RrioTIq>g346L2UD1&oI->eB z9q%1#`{k4`V{wdmdn?R3=U}l_?$y?5@6q%a;haIAi=Mmcqz7y4zpxkBi_J?Y>>oMB zTw?0-mUpoYqj)=q5qzk{p#1rH_Af-k@TLY{g*#pk1o<)QRD(nRLzn(;ZTZ^!JX}yj zt>wW*D?WE*P(OT>dRtM6aT=C$?||JTLNMaU^3wbwF>1;!Fz8vMM4@pH5x2UhDaS#t8RNjW=08t2C{G(>oBD*C|Ea ze@7EikFIs)b&VQ)%a&4V`RS_cCg(Y%zHM_#sKJJD98u7F{#8H>gf~5!iglh)?xC@h zn*8!^04S^pH;7O9UM89yYmjBe0Bul;sMFA)6v+S;jjZBMEX}heQ7_nU;qEYuXHou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