rpms/trophy/devel trophy-1.1.5-rounding-error.patch, NONE, 1.1 trophy.desktop, NONE, 1.1 trophy.png, NONE, 1.1 trophy.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Hans de Goede (jwrdegoede)
fedora-extras-commits at redhat.com
Sun Jun 1 19:26:28 UTC 2008
- Previous message: rpms/kdebindings/F-9 .cvsignore, 1.39, 1.40 kdebindings.spec, 1.97, 1.98 sources, 1.43, 1.44
- Next message: rpms/guidance-power-manager/F-9 guidance-power-manager.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: jwrdegoede
Update of /cvs/extras/rpms/trophy/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv9348/devel
Modified Files:
.cvsignore sources
Added Files:
trophy-1.1.5-rounding-error.patch trophy.desktop trophy.png
trophy.spec
Log Message:
initial trophy import
trophy-1.1.5-rounding-error.patch:
--- NEW FILE trophy-1.1.5-rounding-error.patch ---
--- trophy-1.1.5/src/caplayer.cpp 2007-08-07 12:48:37.000000000 +0200
+++ trophy-1.1.5.new/src/caplayer.cpp 2008-03-01 20:15:13.000000000 +0100
@@ -179,10 +179,13 @@
CAPlayer::setDirection( float dir )
{
newDirection=dir;
- if( newDirection >= 360.0 ) newDirection-=360.0;
- if( newDirection < 0.0 ) newDirection+=360.0;
+ while( newDirection >= 360.0 ) newDirection-=360.0;
+ while( newDirection < 0.0 ) newDirection+=360.0;
int newFrame = (int)(newDirection/360.0*CA_FPR);
+ /* all hail rounding errors (not) */
+ if (newFrame == CA_FPR)
+ newFrame = 0;
setFrame( newFrame );
}
--- NEW FILE trophy.desktop ---
[Desktop Entry]
Name=Trophy
Comment=Car racing game with special features
Exec=trophy
Icon=trophy
Terminal=false
StartupNotify=false
Type=Application
Categories=Game;SportsGame;
--- NEW FILE trophy.spec ---
Name: trophy
Version: 1.1.5
Release: 2%{?dist}
Summary: Car racing game with special features
Group: Amusements/Games
License: GPL+
URL: http://trophy.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1: %{name}.desktop
Source2: %{name}.png
Patch0: trophy-1.1.5-rounding-error.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ClanLib-devel desktop-file-utils
Requires: hicolor-icon-theme
%description
TROPHY is a car racing game with some special features
like shooting and dropping bombs.
%prep
%setup -q
%patch0 -p1
%build
export LDFLAGS=-L%{_libdir}/ClanLib-0.8
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
# below is the desktop file and icon stuff.
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
desktop-file-install --vendor fedora \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
%{SOURCE1}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/96x96/apps
install -p -m 644 %{SOURCE2} \
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/96x96/apps
%clean
rm -rf $RPM_BUILD_ROOT
%post
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
%postun
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog README TODO
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/fedora-%{name}.desktop
%{_datadir}/icons/hicolor/96x96/apps/%{name}.png
%changelog
* Sat May 31 2008 Hans de Goede <j.w.r.degoede at hhs.nl> 1.1.5-2
- Add missing BuildRequires: ClanLib-devel (bz 448422)
* Mon May 26 2008 Hans de Goede <j.w.r.degoede at hhs.nl> 1.1.5-1
- Initial Fedora Package
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/trophy/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 1 Jun 2008 17:32:40 -0000 1.1
+++ .cvsignore 1 Jun 2008 19:25:48 -0000 1.2
@@ -0,0 +1 @@
+trophy-1.1.5.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/trophy/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 1 Jun 2008 17:32:40 -0000 1.1
+++ sources 1 Jun 2008 19:25:48 -0000 1.2
@@ -0,0 +1 @@
+bf62269cacf794e087ac88f0e39f54c1 trophy-1.1.5.tar.gz
- Previous message: rpms/kdebindings/F-9 .cvsignore, 1.39, 1.40 kdebindings.spec, 1.97, 1.98 sources, 1.43, 1.44
- Next message: rpms/guidance-power-manager/F-9 guidance-power-manager.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list