File ZGloom.spec of Package ZGloom

#
# spec file for package ZGloom
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2020, 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:           ZGloom
Version:        0.3.0
Release:        0
Summary:        Reimplementation of the Amiga FPS Gloom
License:        Unlicense
Group:          Amusements/Games/3D/Shoot
URL:            https://github.com/Swizpig/ZGloom
#Git-Clone:     https://github.com/Swizpig/ZGloom.git
Source:         https://github.com/Swizpig/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1:        https://github.com/earok/GloomAmiga/blob/master/LICENSE
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(SDL2_mixer)
BuildRequires:  pkgconfig(libxmp)
BuildRequires:  pkgconfig(sdl2)

%description
ZGloom is an re-implementation of Amiga FPS Gloom.

This package only includes the binary files. You still need the
data files from the original "Gloom" game.
See: %{_docdir}/ZGloom/README.md for details.

%prep
%setup -q
cp %{SOURCE1} .

%build
%make_build

%install
install -D -m0755 ZGloom %{buildroot}/%{_bindir}/%{name}

%post
echo "Please create a directory with the original data files from the Amiga  game Gloom"
echo "See %{_docdir}/ZGloom/README.md for the needed data files directory structure."
echo "You then have to run the ZGloom from this directory."

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}

%changelog
openSUSE Build Service is sponsored by