rpms/ppracer/devel PPRacer-0.1.9-ia64.patch, NONE, 1.1 ppracer-0.3.1-optflags.patch, NONE, 1.1 ppracer.desktop, NONE, 1.1 ppracer.png, NONE, 1.1 ppracer.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Nils Philippsen (nphilipp)
fedora-extras-commits at redhat.com
Fri Mar 4 16:24:55 UTC 2005
Author: nphilipp
Update of /cvs/extras/rpms/ppracer/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv11378/devel
Modified Files:
.cvsignore sources
Added Files:
PPRacer-0.1.9-ia64.patch ppracer-0.3.1-optflags.patch
ppracer.desktop ppracer.png ppracer.spec
Log Message:
auto-import ppracer-0.3.1-1 on branch devel from ppracer-0.3.1-1.src.rpm
PPRacer-0.1.9-ia64.patch:
--- NEW FILE PPRacer-0.1.9-ia64.patch ---
--- PPRacer-0.1.9/src/view.cpp.ia64 2004-10-25 17:40:36.000000000 +0200
+++ PPRacer-0.1.9/src/view.cpp 2004-10-31 17:16:23.718797164 +0100
@@ -359,7 +359,7 @@
( speed - NO_INTERPOLATION_SPEED ) /
( BASELINE_INTERPOLATION_SPEED - NO_INTERPOLATION_SPEED )));
- up_dir = pp::Vec3d( 0, 1, 0 );
+ up_dir = pp::Vec3d( 0.0, 1.0, 0.0 );
vel_dir = plyr.vel;
vel_dir.normalize();
@@ -373,7 +373,7 @@
/* Camera-on-a-string mode */
/* Construct vector from player to camera */
- view_vec = pp::Vec3d( 0,
+ view_vec = pp::Vec3d( 0.0,
sin( ANGLES_TO_RADIANS(
course_angle -
CAMERA_ANGLE_ABOVE_SLOPE +
@@ -408,6 +408,7 @@
}
/* Interpolate view point */
+#if ! defined (__ia64__)
if ( plyr.view.initialized ) {
/* Interpolate twice to get a second-order filter */
int i;
@@ -420,6 +421,7 @@
time_constant_mult );
}
}
+#endif
/* Make sure interpolated view point is above terrain */
ycoord = find_y_coord( view_pt.x, view_pt.z );
@@ -439,6 +441,7 @@
view_dir = -1.0*rot_mat.transformVector( view_vec );
/* Interpolate orientation of camera */
+#if ! defined (__ia64__)
if ( plyr.view.initialized ) {
/* Interpolate twice to get a second-order filter */
int i;
@@ -449,6 +452,7 @@
up_dir = pp::Vec3d( 0.0, 1.0, 0.0 );
}
}
+#endif
break;
}
@@ -457,10 +461,10 @@
{
/* Camera follows player (above and behind) */
- up_dir = pp::Vec3d( 0, 1, 0 );
+ up_dir = pp::Vec3d( 0.0, 1.0, 0.0 );
/* Construct vector from player to camera */
- view_vec = pp::Vec3d( 0,
+ view_vec = pp::Vec3d( 0.0,
sin( ANGLES_TO_RADIANS(
course_angle -
CAMERA_ANGLE_ABOVE_SLOPE +
@@ -494,6 +498,7 @@
view_pt.y = ycoord + MIN_CAMERA_HEIGHT;
}
+#if ! defined (__ia64__)
/* Interpolate view point */
if ( plyr.view.initialized ) {
/* Interpolate twice to get a second-order filter */
@@ -507,6 +512,7 @@
time_constant_mult );
}
}
+#endif
/* Make sure interpolate view point is above terrain */
ycoord = find_y_coord( view_pt.x, view_pt.z );
@@ -525,6 +531,7 @@
view_dir = -1.0*rot_mat.transformVector( view_vec );
/* Interpolate orientation of camera */
+#if ! defined (__ia64__)
if ( plyr.view.initialized ) {
/* Interpolate twice to get a second-order filter */
int i;
@@ -535,6 +542,7 @@
up_dir = pp::Vec3d( 0.0, 1.0, 0.0 );
}
}
+#endif
break;
}
@@ -543,11 +551,11 @@
{
/* Camera always uphill of player */
- up_dir = pp::Vec3d( 0, 1, 0 );
+ up_dir = pp::Vec3d( 0.0, 1.0, 0.0 );
/* Construct vector from player to camera */
- view_vec = pp::Vec3d( 0,
+ view_vec = pp::Vec3d( 0.0,
sin( ANGLES_TO_RADIANS(
course_angle -
CAMERA_ANGLE_ABOVE_SLOPE+
ppracer-0.3.1-optflags.patch:
--- NEW FILE ppracer-0.3.1-optflags.patch ---
--- ppracer-0.3.1/configure.in.optflags 2005-02-27 19:43:18.000000000 +0100
+++ ppracer-0.3.1/configure.in 2005-03-04 17:07:37.482468102 +0100
@@ -35,8 +35,8 @@
dnl General options
dnl --------------------------------------------------------------------------
TR_CPPFLAGS=""
-TR_CFLAGS=""
-TR_CXXFLAGS=""
+TR_CFLAGS="$RPM_OPT_FLAGS"
+TR_CXXFLAGS="$RPM_OPT_FLAGS"
TR_LIBS=""
case "$host" in
@@ -55,8 +55,8 @@
AC_ARG_ENABLE(debug, [ --enable-debug Produce an executable with debugging symbols])
if test "x$enable_debug" = "xyes" ; then
- TR_CFLAGS="-g -Wall"
- TR_CXXFLAGS="-g -Wall"
+ TR_CFLAGS="$RPM_OPT_FLAGS -g -Wall"
+ TR_CXXFLAGS="$RPM_OPT_FLAGS -g -Wall"
else
TR_CPPFLAGS="$TR_CPPFLAGS -DTUXRACER_NO_ASSERT=1"
fi
--- NEW FILE ppracer.desktop ---
[Desktop Entry]
Encoding=UTF-8
Categories=Application;Game;X-Red-Hat-Extra;
X-Desktop-File-Install-Version=0.2
Name=PPRacer
Description=Race your penguin down an alpine slope
Exec=ppracer
Terminal=0
Type=Application
Icon=/usr/share/ppracer/ppracer.png
--- NEW FILE ppracer.spec ---
%define desktop_file_utils_version 0.2.90
#define srcextraversion -2
Summary: A 3D racing game featuring Tux.
Name: ppracer
Version: 0.3.1
Release: 1
License: GPL
Group: Amusements/Games
URL: http://racer.planetpenguin.de
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Source: http://download.berlios.de/ppracer/ppracer-%{version}%{?srcextraversion}.tar.bz2
Source2: ppracer.png
Source3: ppracer.desktop
Patch1: ppracer-0.3.1-optflags.patch
Patch2: PPRacer-0.1.9-ia64.patch
BuildRequires: grep
BuildRequires: xorg-x11-devel
BuildRequires: SDL-devel >= 1.2
BuildRequires: SDL_mixer-devel >= 1.2
BuildRequires: tcl-devel >= 8.0
BuildRequires: autoconf
BuildRequires: freetype-devel
BuildRequires: desktop-file-utils >= %{desktop_file_utils_version}
%description
PPRacer is a simple OpenGL-based racing game featuring Tux. The
objective 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
%patch1 -p1 -b .optflags
%patch2 -p1 -b .ia64
%build
autoconf
%configure --with-data-dir=%{_datadir}/ppracer
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
%makeinstall ppdatadir=%{buildroot}%{_datadir}/ppracer
mkdir -p %{buildroot}%{_datadir}/applications/
install -m 644 %{SOURCE3} %{buildroot}%{_datadir}/applications/net-ppracer.desktop
%clean
rm -rf %{buildroot}
%files
%defattr (-, root, root, 755)
%{_bindir}/ppracer
%{_datadir}/ppracer
%{_datadir}/applications/*
%doc AUTHORS COPYING ChangeLog README contrib
%changelog
* Fri Mar 04 2005 Nils Philippsen <nphilipp at redhat.com>
- version 0.3.1
* Thu Feb 03 2005 Nils Philippsen <nphilipp at redhat.com>
- version 0.3
* Wed Jan 19 2005 Nils Philippsen <nphilipp at redhat.com>
- version 0.2.3
* Thu Dec 30 2004 Nils Philippsen <nphilipp at redhat.com>
- version 0.2.2
* Wed Dec 08 2004 Nils Philippsen <nphilipp at redhat.com>
- version 0.2.1
* Tue Nov 16 2004 Nils Philippsen <nphilipp at redhat.com>
- version 0.2
* Sun Oct 31 2004 Nils Philippsen <nphilipp at redhat.com>
- version 0.1.9
- initial build based on tuxracer spec file
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/ppracer/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 4 Mar 2005 16:21:30 -0000 1.1
+++ .cvsignore 4 Mar 2005 16:24:53 -0000 1.2
@@ -0,0 +1 @@
+ppracer-0.3.1.tar.bz2
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/ppracer/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 4 Mar 2005 16:21:30 -0000 1.1
+++ sources 4 Mar 2005 16:24:53 -0000 1.2
@@ -0,0 +1 @@
+fa80d5dc1e4b63edf05d27b2e86637ec ppracer-0.3.1.tar.bz2
More information about the fedora-extras-commits
mailing list