tuxracer/tuxracer.spec

95 lines
2.8 KiB
RPMSpec

Name: tuxracer
Version: 0.61
Release: 4mamba
Summary: A simple OpenGL-based racing game featuring Tux
Group: Applications/Games
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://tuxracer.sourceforge.net/
Source: http://download.sourceforge.net/tuxracer/tuxracer-%{version}.tar.bz2
Source1: http://download.sourceforge.net/tuxracer/tuxracer-data-%{version}.tar.bz2
Source2: tuxracer.png
Source3: tuxracer.desktop
Patch: tuxracer-0.60.1-GL.patch
Patch1: tuxracer-0.61-config.patch
Patch2: tuxracer-0.61-ia64.patch
Patch3: tuxracer-0.61-gcc33.patch
License: GPL
BuildRequires: libtcl-devel >= 8.4.7
BuildRequires: libSDL_mixer-devel >= 1.2.5
BuildRequires: libSDL-devel >= 1.2.7
BuildRequires: libGL-devel
BuildRequires: libICE-devel
BuildRequires: libSM-devel
BuildRequires: libogg-devel
Obsoletes: tuxracer-data
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Tux Racer is a simple OpenGL-based racing game featuring Tux.
The object of the game is to slide down a snow- and ice-covered mountain as quickly as possible, avoiding the trees and rocks that will slow you down.
%prep
%setup -q
%patch -p1 -b .GL
%patch1 -p1 -b .config
%patch3 -p1 -b .gcc33
%build
CFLAGS="-DGLX_GLXEXT_LEGACY $RPM_OPT_FLAGS" \
%configure \
--with-data-dir=%{_datadir}/tuxracer \
--with-tcl-lib-name=tcl8.4
#--prefix=%{_prefix} \
#--with-gl-inc=/usr/X11R6/include \
#--with-gl-libs=/usr/X11R6/lib \
#--with-glut-inc=/usr/X11R6/include \
#--with-glut-libs=/usr/X11R6/lib \
make %{?_smp_mflags}
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
#make install \
# prefix=%{buildroot}%{_prefix} \
# datadir=%{buildroot}%{_datadir}/tuxracer
mkdir -p %{buildroot}%{_datadir}
pushd %{buildroot}%{_datadir}
bzip2 -dc %{SOURCE1} | tar xf -
mv tuxracer-data-0.61 tuxracer
cp %{SOURCE2} tuxracer/
find . -type f | xargs chmod 644
popd
mkdir -p %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE3} %{buildroot}%{_datadir}/applications/tuxracer.desktop
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr (-, root, root, 755)
%{_bindir}/tuxracer
%dir %{_datadir}/tuxracer
%{_datadir}/tuxracer/*
%{_datadir}/applications/tuxracer.desktop
%doc AUTHORS COPYING ChangeLog README contrib
%changelog
* Tue Jul 02 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.61-4mamba
- rebuilt with libtcl 8.6
* Sun Sep 02 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 0.61-3mamba
- fixed desktop menu link
* Sun Nov 28 2004 Silvan Calarco <silvan.calarco@qilinux.it> 0.61-2qilnx
- rebuilt and moved from devel-contrib to devel repository
* Thu Nov 11 2004 Matteo Bernasconi <voyagernm@virgilio.it> 0.61-1qilnx
- First Build