LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File gl-117.spec of Package gl-117 (Project games)

# spec file for package gl-117
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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 http://bugs.opensuse.org/

Name:           gl-117
Version:        1.3.2
Release:        0
Summary:        Action Flight Simulator
License:        GPL-2.0+
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
BuildRequires:  Mesa-devel
BuildRequires:  SDL_mixer-devel
BuildRequires:  dos2unix
BuildRequires:  fdupes
BuildRequires:  freeglut-devel
BuildRequires:  gcc-c++

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.

%setup -q -n gl-117-%{version}-src
dos2unix AUTHORS FAQ

export CXXFLAGS="%{optflags} -O3 -Wall -fexpensive-optimizations -fomit-frame-pointer -ffast-math -fno-strict-aliasing"
make %{?_smp_mflags}

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}

%doc AUTHORS FAQ README doc/gl-117.pdf
%license COPYING