File nredneck.spec of Package nredneck

#
# spec file for package nredneck
#
# 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:           nredneck
Version:        1.0
Release:        0
Summary:        Redneck Rampage port based on EDuke32
License:        GPL-2.0-only
Group:          Amusements/Games/3D/Shoot
URL:            https://github.com/nukeykt/NRedneck
Source0:        https://github.com/nukeykt/NRedneck/archive/release%{version}.tar.gz
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(SDL2_mixer)
BuildRequires:  pkgconfig(flac)
BuildRequires:  pkgconfig(glu)
BuildRequires:  pkgconfig(sdl2)
BuildRequires:  pkgconfig(vorbis)
BuildRequires:  pkgconfig(vpx)

%description
NRedneck is a fork of EDuke32 that adds support for Redneck Rampage.
Redneck Rampage is a 1997 first-person shooter game developed by Xatrix
Entertainment and published by Interplay. The game is a first person
shooter with a variety of weapons and levels, but has a hillbilly theme,
primarily taking place in a fictional Arkansas town. Many of the weapons
and power-ups border on nonsensical, and in some ways it is a parody of
both first shooter games and rural American life.

NOTE: To play Rednack Rampage with NRedneck you need REDNECK.GRP file
from your GOG/Steam/CD-ROM installation of the game.
Demo files are not supported.
You can put them under '%{_datadir}/games/eduke32/' for all users
or '~/.config/rednukem/' only for yourself.

%prep
%setup -q -n NRedneck-release%{version}

%build
export CFLAGS='%{optflags} -Wno-format'
make PACKAGE_REPOSITORY=1 \
     PRETTY_OUTPUT=1 \
     RELEASE=1 \
     SDL_TARGET=2 \
%if 0%{?suse_version} > 1500
     LTO=1 \
%else
     LTO=0 \
%endif
     %{?_smp_mflags} \
     VC_REV=%{version} \
     rednukem

%install
install -Dm 0755 rednukem %{buildroot}%{_bindir}/rednukem

%files
%{_bindir}/rednukem

%changelog
openSUSE Build Service is sponsored by