LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File lacewing.spec of Package lacewing (Project games)

#
# 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 http://bugs.opensuse.org/
#


Name:           lacewing
Version:        1.10
Release:        0
Summary:        Asteroid like game with many different ships
License:        GPL-2.0+
Group:          Amusements/Games/Action/Arcade
Url:            http://users.olis.net.au/zel/
Source0:        http://users.olis.net.au/zel/lwsrc.zip
Source1:        http://users.olis.net.au/zel/lwdata.zip
Source2:        lacewing.desktop
Source3:        lacewing.png
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch0:         lacewing.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch1:         lacewing-fullscreen.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch2:         lacewing-nicecpu.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch3:         lacewing-warn.patch
BuildRequires:  allegro-devel
BuildRequires:  unzip
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
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
(split-screen).

%prep
%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

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

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

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

%files
%defattr(-,root,root,-)
%doc readme.txt licence.txt
%{_bindir}/lacewing
%{_datadir}/lacewing
%{_datadir}/applications/lacewing.desktop
%{_datadir}/pixmaps/lacewing.png

%changelog