A new user interface for you!

File opentyrian.spec of Package opentyrian

# spec file for package opentyrian
# 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/

%define hgrev 1002

Name:           opentyrian
Version:        2.1.%{hgrev}
Release:        1
URL:		http://code.google.com/p/opentyrian/
License:        GNU General Public License (GPL) - all versions
Group:          Amusements/Games/Action/Arcade
Summary:        An arcade-style vertical scrolling shooter
Source:         %{name}-hg-r%{hgrev}.tar.xz
Source1:        http://camanis.net/tyrian/tyrian21.zip
Source2:        opentyrian.png
Source3:        opentyrian.desktop
Source4:        opentyrian.sh
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  SDL-devel SDL_mixer-devel SDL_net-devel unzip
BuildRequires:  boost-devel gcc-c++

Tyrian is an arcade-style vertical scrolling shooter. The story is set
in 20,031 where you play as Trent Hawkins, a skilled fighter-pilot
employed to fight MicroSol and save the galaxy.
Tyrian features a story mode, one- and two-player arcade modes, and
networked multiplayer.

%setup -q -n opentyrian -a 1

make %{?_smp_mflags} STRIP=/bin/true

# install binaries
install -D -m 0755 opentyrian $RPM_BUILD_ROOT%{_prefix}/lib/%{name}/opentyrian
# install wrapper
install -D -m 0755 %{SOURCE4} $RPM_BUILD_ROOT%{_bindir}/%{name}
# install icon and desktop file
install -D -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/pixmaps/opentyrian.png
install -D -m 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/applications/opentyrian.desktop
# install tyrian 2.1 data
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
cd tyrian21
rm -f *.bin *.diz *.doc *.ini *.int *.exe *.ovl
cp -a * $RPM_BUILD_ROOT%{_datadir}/%{name}