summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c60d605)
raw | patch | inline | side by side (parent: c60d605)
author | TerminalHash <lyashuk.voxx@gmail.com> | |
Tue, 15 Jun 2021 09:56:43 +0000 (12:56 +0300) | ||
committer | TerminalHash <lyashuk.voxx@gmail.com> | |
Tue, 15 Jun 2021 09:56:43 +0000 (12:56 +0300) |
rpm/d2dforever.spec | [new file with mode: 0755] | patch | blob |
rpm/res/doom2df.desktop | [new file with mode: 0755] | patch | blob |
rpm/res/doom2df.png | [new file with mode: 0644] | patch | blob |
diff --git a/rpm/d2dforever.spec b/rpm/d2dforever.spec
--- /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 <lyashuk.voxx@gmail.com>
+#
+# 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 <http://www.gnu.org/licenses/>.
+#
+
+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
--- /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 (file)
index 0000000..c1c8724
Binary files /dev/null and b/rpm/res/doom2df.png differ
index 0000000..c1c8724
Binary files /dev/null and b/rpm/res/doom2df.png differ