File gl-117.spec of Package gl-117
#
# spec file for package gl-117
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2018 The openSUSE Project.
#
# 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: gl-117
Version: 1.3.2
Release: 0
Summary: Action Flight Simulator
License: GPL-2.0-or-later
Group: Amusements/Games/3D/Simulation
URL: http://www.heptargon.de/gl-117/gl-117.html
Source0: http://downloads.sf.net/gl-117/gl-117-%{version}-src.tar.bz2
Source1: %{name}.desktop
Source2: %{name}.png
# PATCH-FIX-UPSTREAM gl-117-1.3.2-delete.patch -- delete[] should be used when deleting an array
Patch0: gl-117-1.3.2-delete.patch
# PATCH-FIX-OPENSUSE fix-sdl.patch -- libSDLmain was dropped with SDL > 1.2, fixes linking
Patch1: fix-sdl.patch
BuildRequires: Mesa-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: freeglut-devel
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(SDL_mixer)
BuildRequires: pkgconfig(sdl)
%description
This air combat game comes with background music, beautiful generated
landscapes, a tutorial, and many missions to play. It supports
keyboard, mouse, and joystick.
It is tuned for maximum performance and a Celeron 333 Mhz with a Matrox
MGA 400 (390 frames per second for glxgears) is more than enough, but
better cards are also supported and provide better detail.
%prep
%setup -q -n gl-117-%{version}-src
%patch0
%patch1 -p1
dos2unix AUTHORS FAQ
%build
autoreconf -fi
%configure
%make_build
%install
%make_install
install -D -m 644 doc/gl-117.6 %{buildroot}%{_mandir}/man6/gl-117.6
install -D -m 644 %{_sourcedir}/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -D -m 644 %{_sourcedir}/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
%fdupes %{buildroot}%{_datadir}/%{name}
%files
%doc AUTHORS FAQ README doc/gl-117.pdf
%license COPYING
%{_bindir}/gl-117
%{_datadir}/%{name}
%{_mandir}/man6/gl-117.6%{?ext_man}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog