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

rpms/freetennis/devel freetennis-0.4.8-pathfixes.patch, NONE, 1.1 freetennis.desktop, NONE, 1.1 freetennis.png, NONE, 1.1 freetennis.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2



Author: nigelj

Update of /cvs/extras/rpms/freetennis/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv32394/devel

Modified Files:
	.cvsignore sources 
Added Files:
	freetennis-0.4.8-pathfixes.patch freetennis.desktop 
	freetennis.png freetennis.spec 
Log Message:
Import freetennis to devel


freetennis-0.4.8-pathfixes.patch:

--- NEW FILE freetennis-0.4.8-pathfixes.patch ---
diff -u freetennis-0.4.8.old/freetennis.ml freetennis-0.4.8/freetennis.ml
--- freetennis-0.4.8.old/freetennis.ml	2005-11-22 10:20:33.000000000 +1300
+++ freetennis-0.4.8/freetennis.ml	2007-04-10 17:27:06.000000000 +1200
@@ -27,10 +27,10 @@
    places. If you choose to customize them, use absolute paths without
    the trailing slash. *)
 
-let sfxDir = "sfx" (* where the wav files are located.
+let sfxDir = "/usr/share/freetennis/sfx" (* where the wav files are located.
 		      example of customization: /usr/share/freetennis/sounds *)
 
-let gfxDir = "graphics" (* where the pngs and subdirs are located. 
+let gfxDir = "/usr/share/freetennis/graphics" (* where the pngs and subdirs are located. 
 			   example of customization: /usr/share/freetennis/gfx *)
     
 
Common subdirectories: freetennis-0.4.8.old/graphics and freetennis-0.4.8/graphics
Common subdirectories: freetennis-0.4.8.old/sfx and freetennis-0.4.8/sfx
Common subdirectories: freetennis-0.4.8.old/web-site and freetennis-0.4.8/web-site


--- NEW FILE freetennis.desktop ---
[Desktop Entry]
Encoding=UTF-8
Name=Tennis
Comment=Play Tennis - single player or multiplayer
Exec=freetennis -newbie
Icon=freetennis.png
Terminal=false
Type=Application
Categories=Game;SportsGame;
StartupNotify=true


--- NEW FILE freetennis.spec ---
Name:           freetennis
Version:        0.4.8
Release:        4%{?dist}
Summary:        Tennis simulation game

Group:          Amusements/Games
License:        GPL
URL:            http://freetennis.sourceforge.net/
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Source1:        freetennis.desktop
Source2:        freetennis.png
Patch0:         freetennis-0.4.8-pathfixes.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:  ocaml SDL_gfx-devel SDL_mixer-devel gdk-pixbuf-devel 
BuildRequires:  lablgtk libXmu-devel gtk2-devel desktop-file-utils
BuildRequires:  ocaml-camlimages-devel ocaml-SDL-devel

%description
Free Tennis is a free software tennis simulation game.  The game can be 
played against an A.I. or human-vs-human via LAN or internet.

%prep
%setup -q
%patch -p1

%build
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}

mv freetennis $RPM_BUILD_ROOT%{_bindir}
mv graphics $RPM_BUILD_ROOT%{_datadir}/%{name}/
mv sfx $RPM_BUILD_ROOT%{_datadir}/%{name}/

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

mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/
install -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/

%clean
rm -rf $RPM_BUILD_ROOT

%post
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :

%postun
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :


%files
%defattr(-,root,root,-)
%doc COPYING CHANGES.txt AUTHORS TODO.txt web-site/

%{_bindir}/freetennis
%{_datadir}/%{name}
%{_datadir}/applications/fedora-freetennis.desktop
%{_datadir}/icons/hicolor/48x48/apps/freetennis.png

%changelog
* Fri May 04 2007 Nigel Jones <dev nigelj com> 0.4.8-4
- Add SportsGame to .desktop file
- Correct source URL

* Fri May 04 2007 Nigel Jones <dev nigelj com> 0.4.8-3
- Change builddep to ocaml-camlimages

* Thu May 03 2007 Nigel Jones <dev nigelj com> 0.4.8-2
- Add freetennis.png and alter freetennis.desktop to show icon
- Change builddep to ocaml-SDL-devel

* Tue Apr 10 2007 Nigel Jones <dev nigelj com> 0.4.8-1
- Initial spec file



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/freetennis/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	4 May 2007 10:42:53 -0000	1.1
+++ .cvsignore	4 May 2007 12:46:12 -0000	1.2
@@ -0,0 +1 @@
+freetennis-0.4.8.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/freetennis/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	4 May 2007 10:42:53 -0000	1.1
+++ sources	4 May 2007 12:46:12 -0000	1.2
@@ -0,0 +1 @@
+9a8dc8f588420ff246b3f2b602ae02de  freetennis-0.4.8.tar.bz2


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