File luola.spec of Package luola
#
# spec file for package luola
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright Vincent Petry <PVince81@yahoo.fr>
#
# 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: luola
Version: 1.3.2
Release: 0
Summary: Fly a small V shaped ship in different kind of levels
License: GPL-2.0
Group: Amusements/Games/Action/Other
URL: https://luolamies.org/software/luola/
Source: %{url}/luola-%{version}.tar
Source1: %{name}.desktop
# Repacked as tar.bz2
Source2: stdlevels-6.0.tar.bz2
# Repacked as tar.bz2
Source3: nostalgia-1.2.tar.bz2
Patch0: fix-build.patch
BuildRequires: libSDL-devel
BuildRequires: libSDL_gfx-devel
BuildRequires: libSDL_image-devel
BuildRequires: libSDL_mixer-devel
BuildRequires: libSDL_ttf-devel
BuildRequires: zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
%description
Luola is a 2D arcade game where you fly a small V shaped ship in different kinds of levels. It's genre "Luolalentely" (Cave-flying) is (or was) very popular here in Finland. Though cavern-flying games are not originally Finnish, nowdays most of them are.
Luola is largely inspired by V-Wing, my favourite cave-flying game. While V-Wing's graphics might not have been flashy, they were crisp and clear, and the playability and choice of weapons was superb. This is also my aim with Luola, not too much eye-candy, but solid playability.
Features:
* 2-4 players
* Team play
* Ability to eject the pilot and walk around the level as a human
* Supports truecolor level artwork and over a dozen terrain types ranging from watercurrents to explosives
* Supports custom level palettes thus can load levels from practically any caveflying game such as V-Wing or Wings
* Level specials such as snowfall, critters, auto-turrets and jump-gates
* Supports keyboard and gamepad input
* Sound effects and background music thru SDL_mixer library
* Transparency and antialiasing effects thru SDL_gfx library
* Can use Truetype fonts thru SDL_ttf library
This package contains the level packs "stdlevels-6.0" and "nostalgia-1.2".
%prep
%autosetup -p1
cd data/levels
tar -xjf %{SOURCE2}
tar -xjf %{SOURCE3}
%build
%configure LIBS=-lm --enable-sound
%make_build
%install
%make_install
install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -d -D -m 755 %{buildroot}%{_datadir}/pixmaps/
install -D -m 644 %{name}.png %{buildroot}%{_datadir}/pixmaps/
install -D -m 644 data/levels/* %{buildroot}%{_datadir}/%{name}/levels/
%suse_update_desktop_file %{name}
%files
%license COPYING
%doc README NEWS AUTHORS RELEASENOTES.txt TODO FAQ
%attr(0755,root,root) %{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog