File jfduke3d.spec of Package jfduke3d
#
# spec file for package jfduke3d
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2019, Martin Hauke <mardnh@gmx.de>
#
# 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: jfduke3d
Version: 0.0.0+git.20200116
Release: 0
Summary: A port of the 3D Realms game "Duke Nukem 3D"
License: GPL-2.0-only
Group: Amusements/Games/3D/Shoot
URL: http://www.jonof.id.au/jfduke3d
Source0: %{name}-%{version}.tar.xz
BuildRequires: gcc-c++
BuildRequires: git-core
#BuildRequires: nasm
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(vorbis)
%description
JonoF's Duke Nukem 3D Port.
NOTE: To play Duke Nukem 3D with jfduke3d you need the duke3d.grp file
from your GOG/Steam/CD-ROM installation of the game.
You can put it under '%{_datadir}/games/jfduke3d/' for all users
or '~/.jfduke3d/' only for yourself.
%prep
%setup -q
sed -i 's/\r$//' readme.txt
%build
export CFLAGS="%{optflags}"
make \
PREFIX="%{_datadir}/games/jfduke3d" \
SUPERBUILD=1 \
POLYMOST=1 \
USE_OPENGL=1 \
NOASM=1 \
RELEASE=1 \
%{?_smp_mflags}
%install
install -D -m 0755 duke3d %{buildroot}%{_bindir}/duke3d
install -D -m 0644 rsrc/game.png %{buildroot}/%{_datadir}/pixmaps/%{name}.png
%suse_update_desktop_file -c %{name} %{name} "A port of the 3D Realms game Duke Nukem 3D" duke3d %{name} "Game;ActionGame;"
%if 0%{?suse_version} < 1330
%post
%icon_theme_cache_post
%desktop_database_post
%postun
%icon_theme_cache_postun
%desktop_database_postun
%endif
%files
%license GPL.TXT
%doc readme.txt releasenotes.html
%{_bindir}/duke3d
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%changelog