File lacewing.spec of Package lacewing

# spec file for package lacewing
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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

Name:           lacewing
Version:        1.10
Release:        0
Summary:        Asteroid like game with many different ships
License:        GPL-2.0+
Group:          Amusements/Games/Action/Arcade
Source2:        lacewing.desktop
Source3:        lacewing.png
Patch0:         lacewing.patch
Patch1:         lacewing-fullscreen.patch
Patch2:         lacewing-nicecpu.patch
Patch3:         lacewing-warn.patch
BuildRequires:  allegro-devel
BuildRequires:  unzip
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Asteroid like game where you can choose a type of ship and depending on the
type of ship can pickup a number of upgrades during the game.

Lacewing is an arcade-style shoot-em-up which plays a little bit like a cross
between Spacewar and Centipede. It has a decidedly retro style to it. It has
a single-player mode, and also co-operative and duel modes for two players

%setup -q -c
unzip -qqo %{SOURCE1}
%patch0 -p1 -z .unix
%patch1 -p1 -z .fullscreen
%patch2 -p1 -z .nicecpu
%patch3 -p1 -z .warn
sed -i 's/\r//' readme.txt licence.txt
chmod 644 readme.txt licence.txt

make %{?_smp_mflags} PREFIX=%{_prefix} \
  CFLAGS="%{optflags} -fsigned-char -Wno-deprecated-declarations" \
  LDFLAGS="$LDFLAGS -lm -lalleg"

make install PREFIX=%{buildroot}%{_prefix}

# below is the desktop file and icon stuff.
%suse_update_desktop_file -i %{name} Game ArcadeGame

%doc readme.txt licence.txt