File heroes-tron.spec of Package heroes-tron
#
# spec file for package heroes-tron (Version 0.21)
#
# Copyright (c) 2010 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/
#
# norootforbuild
Name: heroes-tron
BuildRequires: SDL_mixer-devel xorg-x11
%define myname heroes
%define data_version 1.5
License: GPLv2+
Group: Amusements/Games/Action/Race
AutoReqProv: on
PreReq: %install_info_prereq
Version: 0.21
Release: 873
Source0: %{myname}-%{version}.tar.bz2
Source1: %{myname}-data-%{data_version}.tar.bz2
Source2: %{myname}-sound-effects-1.0.tar.bz2
Source3: %{myname}-sound-tracks-1.0.tar.bz2
Patch: %{myname}-%{version}.diff
Patch1: %{myname}-%{version}-menus.diff
Patch2: %{myname}-%{version}-gcc4.diff
Patch3: %{myname}-%{version}-gcc_warning.diff
Url: http://heroes.sourceforge.net/download.html
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Game Like Tron and Nibbles Games
%description
Heroes is similar to the "Tron" and "Nibbles" games of yore, but
includes many graphical improvements and new game features. In it, you
must maneuver a small vehicle around a world and collect powerups while
avoiding obstacles, your opponents' trails, and even your own trail.
Several modes of play are available, including "get-all-the-bonuses",
death match, and "squish-the-pedestrians".
Authors:
--------
Alexandre Duret-Lutz (Pollux) <duret_g@epita.fr> -Wrote the original source
code, ported it to GNU/Linux and created a few levels.
Romual Genevois (Guen) <rgenevois@besancon.net> -Had the idea of that game,
designed most of it, drew the graphics, created most of the levels.
Alexandre Liverneaux (Alexel) <alex.livernaux@wanadoo.fr> -Composed the soundtracks.
Philippe Meisburger (TNK) <philmeis@mail.dotcom.fr> -Composed the soundtracks
and created some levels.
%prep
%setup -q -n %{myname}-%{version} -b 1 -b 2 -b 3
%patch
%patch1
%patch2 -p1
%patch3
%build
%define sharedir %{_prefix}/share
%define datadir %{sharedir}/games
%{?suse_update_config:%{suse_update_config}}
export CFLAGS="$RPM_OPT_FLAGS"
./configure \
--datadir=%{datadir} \
--prefix=%{_prefix} \
--mandir=%{sharedir}/man \
--infodir=%{sharedir}/info \
--bindir=%{_prefix}/games \
--without-ggi \
--without-gii \
--without-mikmod \
--with-sdl \
--with-sdl-mixer \
--disable-joystick
make
cd ../%{myname}-data-%{data_version}
./configure \
--prefix=%{_prefix} \
--datadir=%{datadir}
cd ../%{myname}-sound-effects-1.0
./configure \
--prefix=%{_prefix} \
--datadir=%{datadir}
cd ../%{myname}-sound-tracks-1.0
./configure \
--prefix=%{_prefix} \
--datadir=%{datadir}
%install
make DESTDIR=$RPM_BUILD_ROOT install
#mv $RPM_BUILD_ROOT%{datadir}/locale $RPM_BUILD_ROOT%{sharedir}/locale
pushd ../%{myname}-data-%{data_version}
make DESTDIR=$RPM_BUILD_ROOT install
popd
pushd ../%{myname}-sound-effects-1.0
make DESTDIR=$RPM_BUILD_ROOT install
popd
pushd ../%{myname}-sound-tracks-1.0
make DESTDIR=$RPM_BUILD_ROOT install
popd
%find_lang heroes
%clean
rm -rf $RPM_BUILD_ROOT
%post
%install_info --info-dir=%{_infodir} %{_infodir}/heroes.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/heroes.info.gz
%files -f heroes.lang
%defattr(-, root, root)
%doc COPYING NEWS README THANKS TODO AUTHORS
%{_prefix}/games/heroes
%{_prefix}/games/heroeslvl
%{sharedir}/info/heroes.info*
%{sharedir}/man/man6/heroes.6*
%{sharedir}/man/man6/heroeslvl.6*
#%{sharedir}/heroes
%{datadir}/heroes
%changelog