File triplane.spec of Package triplane

#
# spec file for package triplane
#
# Copyright (c) 2022 SUSE LLC
#
# 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:           triplane
Version:        1.0.8
Release:        0
Summary:        Port of the original Triplane Turmoil game
License:        GPL-3.0
Group:          Amusements/Games/Action/Arcade
URL:            http://triplane.sourceforge.net/
Source:         https://github.com/vranki/triplane/archive/refs/tags/v%{version}.tar.gz
Patch0:         reproducible.patch
BuildRequires:  gcc-c++
BuildRequires:  SDL-devel
BuildRequires:  libSDL_mixer-devel

%description
Triplane Classic is a side-scrolling dogfighting game featuring solo missions
and multiplayer mode with up to four players. It is a port of the original
Triplane Turmoil game for DOS and aims to match the original game exactly
so that high scores remain comparable to the original.

%prep
%autosetup -p1

%build
make depend
%make_build PREFIX=%{_prefix}

%install
%make_install PREFIX=%{_prefix}
mkdir -p  %{buildroot}%{_bindir}
mv %{buildroot}%{_prefix}/games/triplane %{buildroot}%{_bindir}/triplane

%files
%license COPYING
%doc README
%{_bindir}/triplane
%{_datadir}/games/triplane
%{_mandir}/man6/triplane.*

%changelog
openSUSE Build Service is sponsored by