File tr2norigins.spec of Package tr2norigins
# spec file for package tr2norigins (Version 0.4.1_beta)
#
# Copyright 2008 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. sax2-libsax-python
#
# norootforbuild
Name: tr2norigins
BuildRequires: libstdc++-devel, zlib-devel, libpng-devel, libjpeg-devel
BuildRequires: SDL_image-devel, SDL_mixer-devel, SDL-devel, esound-devel, pyxml
BuildRequires: libxml2-devel, unzip, gcc-c++, python, libxml2-devel, libxml++-devel
BuildRequires: xorg-x11-devel, MesaGLw-devel, Mesa-devel
Version: 0.4.1_beta
Release: 23
License: GPLv3
Group: Amusements/Games/3D/Race
Summary: Multiplayer 'Tron' 3D racing game
URL: http://tr2norigins.net/
Source: %{name}-%{version}.src.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The rules are simple: you ride a light cycle that can only turn 90 degrees at a time,
leaves a wall behind and cannot be stopped, you have to avoid running into walls
while at the same time trying to get your opponent to run into them.
The idea is based on the Disney "Tron" movies from 1982 and 2010.
An active community provides servers with additional game modes such as Fortress
and Capture The Flag.
Authors:
--------
Manta <originsteam@tr2norigins.net>
%prep
%setup -q
%build
%configure \
--enable-music \
--disable-desktop \
--disable-uninstall \
--disable-dependency-tracking \
--disable-games \
--docdir=%{_docdir}
make
%install
make DESTDIR=%buildroot install uninstall_location=foobar
mkdir -p %{buildroot}%{_datadir}/applications/
install %{buildroot}%{_datadir}/tr2norigins/desktop/*.desktop %{buildroot}%{_datadir}/applications/
mkdir -p %{buildroot}%{_datadir}/pixmaps/
pushd %buildroot
ln -s %{_datadir}/tr2norigins/desktop/icons/large/tr2norigins.png usr/share/pixmaps/%{name}.png
popd
# some cleanups
chmod 644 %{buildroot}%{_sysconfdir}/tr2norigins/rc.config
rm %{buildroot}%{_datadir}/tr2norigins/language/update.py
rm %{buildroot}%{_datadir}/tr2norigins/scripts/relocate
rm %{buildroot}%{_datadir}/tr2norigins/desktop/*.desktop
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%doc tr2norigins_doc/*
%config %{_sysconfdir}/armagetronad
%{_bindir}/tr2norigins
%{_datadir}/tr2norigins
/usr/local/share/doc/tr2norigins/*
%attr(644,root,root) %{_datadir}/applications/*
%{_datadir}/pixmaps/%{name}.png