[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/ultimatestunts/F-8 ultimatestunts-0721-make.patch, NONE, 1.1 ultimatestunts-0731-configure.patch, NONE, 1.1 ultimatestunts.desktop, NONE, 1.1 ultimatestunts.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2



Author: sharkcz

Update of /cvs/pkgs/rpms/ultimatestunts/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv32680

Modified Files:
	.cvsignore sources 
Added Files:
	ultimatestunts-0721-make.patch 
	ultimatestunts-0731-configure.patch ultimatestunts.desktop 
	ultimatestunts.spec 
Log Message:
- initial import

ultimatestunts-0721-make.patch:

--- NEW FILE ultimatestunts-0721-make.patch ---
--- trackedit/Makefile.in.orig	2007-07-15 12:57:29.000000000 +0200
+++ trackedit/Makefile.in	2007-09-01 12:36:43.000000000 +0200
@@ -67,7 +67,7 @@
 am_ustuntstrackedit_OBJECTS = main.$(OBJEXT)
 ustuntstrackedit_OBJECTS = $(am_ustuntstrackedit_OBJECTS)
 ustuntstrackedit_DEPENDENCIES =  \
-	$(top_builddir)/trackedit/libtrackedit.a \
+	libtrackedit.a \
 	$(top_builddir)/graphics/libgraphics.a \
 	$(top_builddir)/simulation/libsimulation.a \
 	$(top_builddir)/shared/libshared.a
@@ -217,7 +217,7 @@
 target_vendor = @target_vendor@
 usdatadir = @usdatadir@
 ustuntstrackedit_SOURCES = main.cpp
-ustuntstrackedit_LDADD = $(top_builddir)/trackedit/libtrackedit.a \
+ustuntstrackedit_LDADD = libtrackedit.a \
 	$(top_builddir)/graphics/libgraphics.a $(top_builddir)/simulation/libsimulation.a \
 	$(top_builddir)/shared/libshared.a @sdllibs@ @graphlibs@ @LIBINTL@
 
--- trackedit/Makefile.am.orig	2007-07-15 12:54:15.000000000 +0200
+++ trackedit/Makefile.am	2007-09-01 12:17:46.000000000 +0200
@@ -1,6 +1,6 @@
 bin_PROGRAMS = ustuntstrackedit
 ustuntstrackedit_SOURCES = main.cpp
-ustuntstrackedit_LDADD = $(top_builddir)/trackedit/libtrackedit.a \
+ustuntstrackedit_LDADD = libtrackedit.a \
 	$(top_builddir)/graphics/libgraphics.a $(top_builddir)/simulation/libsimulation.a \
 	$(top_builddir)/shared/libshared.a @sdllibs@ @graphlibs@ @LIBINTL@
 

ultimatestunts-0731-configure.patch:

--- NEW FILE ultimatestunts-0731-configure.patch ---
--- configure.ac.orig	2007-11-06 08:27:28.000000000 +0100
+++ configure.ac	2007-11-06 08:38:23.000000000 +0100
@@ -151,10 +151,10 @@
   dnl Check openAL audio library
   dnl ------------------------
   AC_CHECK_HEADER(AL/al.h, AC_DEFINE([OPENAL_HEADER], [], [OpenAL headers]))
-  AC_CHECK_LIB(openal, alGetError, soundlibs="-lopenal $soundlibs";AC_DEFINE([HAVE_LIBOPENAL], [], [OpenAL Lib]))
+  AC_CHECK_LIB(openal, alGetError, soundlibs="-lopenal $soundlibs";AC_DEFINE([HAVE_LIBOPENAL], [], [OpenAL Lib]), [], $soundlibs)
 
   AC_CHECK_HEADER(AL/alut.h, AC_DEFINE([ALUT_HEADER], [], [ALUT headers]))
-  AC_CHECK_LIB(alut, alutExit, soundlibs="-lalut $soundlibs";AC_DEFINE([HAVE_LIBALUT], [], [ALUT Lib]))
+  AC_CHECK_LIB(alut, alutExit, soundlibs="-lalut $soundlibs";AC_DEFINE([HAVE_LIBALUT], [], [ALUT Lib]), [], $soundlibs)
 
   dnl Don't try FMOD when OpenAL is found
   dnl TODO: check whether either OpenAL or ALUT is not present
--- configure.orig	2007-11-06 08:38:33.000000000 +0100
+++ configure	2007-11-06 08:48:55.000000000 +0100
@@ -6202,7 +6202,7 @@
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lopenal  $LIBS"
+LIBS="-lopenal $soundlibs $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -6419,7 +6419,7 @@
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lalut  $LIBS"
+LIBS="-lalut $soundlibs $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF


--- NEW FILE ultimatestunts.desktop ---
[Desktop Entry]
Name=UltimateStunts
GenericName=UltimateStunts
Comment=3D racing game
Exec=ustunts
#Icon=ustunts.png
Terminal=false
StartupNotify=false
Type=Application
Categories=Game;SportsGame;


--- NEW FILE ultimatestunts.spec ---
%define	ver	0731

Name:		ultimatestunts
Version:	0.7.3
Release:	4%{?dist}
Summary:	UltimateStunts is a remake of the famous DOS-game Stunts

Group:		Amusements/Games
License:	GPLv2+
URL:		http://www.ultimatestunts.nl
Source0:	http://downloads.sf.net/%{name}/%{name}-srcdata-%{ver}.tar.gz
Source1:	%{name}.desktop
Patch0:		ultimatestunts-0721-make.patch
Patch1:		ultimatestunts-0731-configure.patch
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:	dos2unix freealut-devel SDL_image-devel freeglut-devel libXi-devel
BuildRequires:	desktop-file-utils


%description
UltimateStunts is a remake of the famous DOS-game Stunts. It was a 3D racing
game, with simple CGA/EGA/VGA graphics and no texture or smooth shading, but
because of the spectacular stunts (loopings, bridges to jump over, etc.)
it was really fun to play. One of the best aspects of this game is that it
had a track editor. Because of the tile-based tracks, every gamer was able
to make it's own tracks. This remake works on UNIX-compatible systems (like
Linux), and on windows. It also provides more modern features, like openGL
graphics, 3D sound and internet multiplaying.


%prep
%setup -q -n %{name}-srcdata-%{ver}
%patch0
%patch1

# remove CVS control files
find . -name CVS -type d -print0 | xargs -0 rm -rf

# fixup access
find ./data -type d -print0 | xargs -0 chmod a+rx
find ./data -type f -print0 | xargs -0 chmod a+r
find ./doc -type f -print0 | xargs -0 chmod a+r
chmod a-x simulation/metaserver.cpp

# fixup EOL
pushd "doc/nolanguage/Original Stunts Track-Format_files"
dos2unix -q style.css
dos2unix -q stunts.htm
touch -r tree.png style.css stunts.htm
popd

# fixup encoding
pushd "doc/nolanguage/Original Stunts Track-Format_files"
f=stunts.htm
iconv -f ISO8859-1 -t UTF-8 -o $f.new $f
touch -r tree.png $f.new
mv $f.new $f
popd

pushd doc/nl
for f in *.htm
do
	iconv -f ISO8859-1 -t UTF-8 -o $f.new $f
	touch -r $f $f.new
	mv $f.new $f
done
popd

%build
%configure
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT \
	usdatadir=$RPM_BUILD_ROOT%{_datadir}/%{name} \
	localedir=%{_datadir}/locale

%find_lang %{name}

desktop-file-install --vendor fedora \
	--dir $RPM_BUILD_ROOT%{_datadir}/applications \
	%{SOURCE1}


%clean
rm -rf $RPM_BUILD_ROOT


%files -f %{name}.lang
%defattr(-,root,root,-)
%doc COPYING doc/*
%{_bindir}/ustunts*
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_datadir}/applications/fedora-%{name}.desktop
%{_datadir}/%{name}


%changelog
* Fri Nov  9 2007 Dan Horak <dan[at]danny.cz> 0.7.3-4
- recode *.htm files without encoding header

* Wed Nov  7 2007 Dan Horak <dan[at]danny.cz> 0.7.3-3
- added COPYING into docs
- added desktop file

* Tue Nov  6 2007 Dan Horak <dan[at]danny.cz> 0.7.3-2
- fix findind ALUT library on development

* Sun Nov  4 2007 Dan Horak <dan[at]danny.cz> 0.7.3-1
- initial package release



Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/ultimatestunts/F-8/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	10 Nov 2007 20:36:53 -0000	1.1
+++ .cvsignore	11 Nov 2007 11:42:33 -0000	1.2
@@ -0,0 +1 @@
+ultimatestunts-srcdata-0731.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/ultimatestunts/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	10 Nov 2007 20:36:53 -0000	1.1
+++ sources	11 Nov 2007 11:42:33 -0000	1.2
@@ -0,0 +1 @@
+3231b1d391ee30b1ec8750019c1e1c3e  ultimatestunts-srcdata-0731.tar.gz


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]