rpms/roadfighter/F-11 roadfighter-1.0.1269-Makefile.patch, NONE, 1.1 roadfighter.sh, NONE, 1.1 roadfighter.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Andrea Musuruane musuruan at rpmfusion.org
Sun Aug 9 10:20:04 CEST 2009


Author: musuruan

Update of /cvs/nonfree/rpms/roadfighter/F-11
In directory se02.es.rpmfusion.net:/tmp/cvs-serv16523/F-11

Modified Files:
	.cvsignore sources 
Added Files:
	roadfighter-1.0.1269-Makefile.patch roadfighter.sh 
	roadfighter.spec 
Log Message:
First release


roadfighter-1.0.1269-Makefile.patch:

--- NEW FILE roadfighter-1.0.1269-Makefile.patch ---
--- roadfighter-1.0.1269.orig/build/linux/Makefile	2008-03-19 21:58:51.000000000 +0100
+++ roadfighter-1.0.1269/build/linux/Makefile	2009-06-22 17:39:28.000000000 +0200
@@ -37,14 +38,14 @@
 	$(SRC)/main.o
 
 CC = g++
-CFLAGS = -g3 -O3 `sdl-config --cflags` -I/usr/X11R6/include
-LDFLAGS = `sdl-config --libs` -L/usr/X11R6/lib/ -lSDL_image -lSDL_mixer -lSDL_sound -lSDL_ttf
+CFLAGS += `sdl-config --cflags` -I/usr/X11R6/include
+LIBS = `sdl-config --libs` -L/usr/X11R6/lib/ -lSDL_image -lSDL_mixer -lSDL_sound -lSDL_ttf
+LDFLAGS += -L/usr/X11R6/lib/
 RM = rm -f
 CP = cp -r
 MD = mkdir -p
 ECHO = echo
 CHMOD = chmod
-STRIP = strip
 
 all: $(EXE)
 
@@ -52,8 +53,7 @@
 	$(CC) $(CFLAGS) -c $< -o $@
 
 $(EXE): $(OBJS)
-	$(CC) $(LDFLAGS) $^ -o $@
-	@$(STRIP) $@
+	$(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
 	@$(ECHO) " o If there are no errors, the game compiled succesfully"
 
 clean:


--- NEW FILE roadfighter.sh ---
#!/bin/sh
GAME=roadfighter
GAME_LOCAL_DIR=$HOME/.$GAME
GAME_DATA_DIR=/usr/share/$GAME
GAME_EXECUTABLE=/usr/libexec/$GAME/$GAME
mkdir -p $GAME_LOCAL_DIR
cd $GAME_LOCAL_DIR
for dir in fonts graphics maps sound; do
ln -snf $GAME_DATA_DIR/$dir $dir
done
exec $GAME_EXECUTABLE "$@"



--- NEW FILE roadfighter.spec ---
Name:           roadfighter
Version:        1.0.1269
Release:        2%{?dist}
Summary:        Konami's Road Fighter remake

Group:          Amusements/Games
# http://www.braingames.getput.com/forum/forum_posts.asp?TID=678&PN=1
License:        Distributable
URL:            http://roadfighter.jorito.net/
Source0:        http://braingames.jorito.net/roadfighter/downloads/%{name}.src_%{version}.tgz
Source1:        roadfighter.sh
Patch0:         %{name}-1.0.1269-Makefile.patch 
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  SDL_image-devel
BuildRequires:  SDL_mixer-devel
BuildRequires:  SDL_sound-devel
BuildRequires:  SDL_ttf-devel
BuildRequires:  ImageMagick
BuildRequires:  desktop-file-utils 
Requires: hicolor-icon-theme


%description
This is a remake of a car-based arcade game developed by Konami and released 
in 1984. The goal is to reach the finish line within the stages without 
running out of time, hitting other cars or running out of fuel.


%prep
%setup -q
%patch0 -p1

# Fix char encondig
iconv --from=ISO-8859-1 --to=UTF-8 readme.txt > readme.txt.utf8
touch -r readme.txt readme.txt.utf8
mv readme.txt.utf8 readme.txt


%build
export CFLAGS="%{optflags}"
make %{?_smp_mflags}


%install
rm -rf %{buildroot}

# Install wrapper script
install -d %{buildroot}%{_bindir}
install -m 755 -p %{SOURCE1} %{buildroot}%{_bindir}/%{name}

# Install game and data
install -d %{buildroot}%{_libexecdir}/%{name}
install -m 755 -p %{name} %{buildroot}%{_libexecdir}/%{name}
install -d %{buildroot}%{_datadir}/%{name}
cp -pr fonts graphics maps sound %{buildroot}%{_datadir}/%{name}

# Install icon
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
convert -resize 32x32 \
  -frame 0x3 \
  -mattecolor '#dfdfdf' \
  -transparent '#dfdfdf' \
  build/linux/roadfighter.png \
  %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png

# Install desktop file
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install \
  --dir %{buildroot}%{_datadir}/applications \
  build/linux/%{name}.desktop


%clean
rm -rf %{buildroot}


%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :


%postun
if [ $1 -eq 0 ] ; then
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi


%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :


%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_libexecdir}/%{name}
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%doc readme.txt


%changelog
* Fri Aug 07 2009 Andrea Musuruane <musuruan at gmail.com> 1.0.1269-2
- Preserved timestamps

* Thu Jul 23 2009 Andrea Musuruane <musuruan at gmail.com> 1.0.1269-1
- First release



Index: .cvsignore
===================================================================
RCS file: /cvs/nonfree/rpms/roadfighter/F-11/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	8 Aug 2009 17:12:26 -0000	1.1
+++ .cvsignore	9 Aug 2009 08:20:04 -0000	1.2
@@ -0,0 +1 @@
+roadfighter.src_1.0.1269.tgz


Index: sources
===================================================================
RCS file: /cvs/nonfree/rpms/roadfighter/F-11/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	8 Aug 2009 17:12:26 -0000	1.1
+++ sources	9 Aug 2009 08:20:04 -0000	1.2
@@ -0,0 +1 @@
+a1626dda4d17ae30bbdd9c1ede2cd555  roadfighter.src_1.0.1269.tgz



More information about the rpmfusion-commits mailing list