114 lines
3.3 KiB
RPMSpec
114 lines
3.3 KiB
RPMSpec
Name: tuxracer
|
|
Version: 0.61
|
|
Release: 5mamba
|
|
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
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libGL-devel
|
|
BuildRequires: libGLU-devel
|
|
BuildRequires: libICE-devel
|
|
BuildRequires: libSDL-devel
|
|
BuildRequires: libSDL_mixer-devel
|
|
BuildRequires: libSM-devel
|
|
BuildRequires: libX11-devel
|
|
BuildRequires: libXext-devel
|
|
BuildRequires: libXi-devel
|
|
BuildRequires: libXmu-devel
|
|
BuildRequires: libXt-devel
|
|
BuildRequires: libgcc
|
|
BuildRequires: libstdc++6-devel
|
|
BuildRequires: libtcl-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: libtcl-devel >= 8.4.7
|
|
BuildRequires: libSDL_mixer-devel >= 1.2.5
|
|
BuildRequires: libSDL-devel >= 1.2.7
|
|
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
|
|
TCLVER=`pkg-config --modversion tcl | cut -d. -f1-2`
|
|
CFLAGS="-DGLX_GLXEXT_LEGACY $RPM_OPT_FLAGS" \
|
|
%configure \
|
|
--with-data-dir=%{_datadir}/tuxracer \
|
|
--with-tcl-lib-name=tcl${TCLVER}
|
|
|
|
#--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
|
|
* Fri Sep 26 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.61-5mamba
|
|
- really rebuilt with libtcl 8.6
|
|
|
|
* 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 |