rpms/solarwolf/FC-6 solarwolf-path.patch, NONE, 1.1 solarwolf.desktop, NONE, 1.1 solarwolf.spec, NONE, 1.1 sources, 1.1, 1.2

Jon Ciesla (limb) fedora-extras-commits at redhat.com
Tue Sep 25 11:27:44 UTC 2007


Author: limb

Update of /cvs/pkgs/rpms/solarwolf/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15005

Modified Files:
	sources 
Added Files:
	solarwolf-path.patch solarwolf.desktop solarwolf.spec 
Log Message:
Initial import.


solarwolf-path.patch:

--- NEW FILE solarwolf-path.patch ---
--- solarwolf.py	2007-09-14 13:27:57.000000000 -0500
+++ solarwolf.py	2007-09-14 13:27:57.000000000 -0500
@@ -13,8 +13,8 @@
     DATADIR = "C:\\Program Files\\Solarwolf"
     CODEDIR = "C:\\Program Files\\Solarwolf\\code"
 else:
-    DATADIR = "/usr/share/games/solarwolf"
-    CODEDIR = "/usr/lib/games/solarwolf"
+    DATADIR = "/usr/share/solarwolf"
+    CODEDIR = "/usr/share/solarwolf/code"
 
 
 


--- NEW FILE solarwolf.desktop ---
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=SolarWolf
Exec=solarwolf
Comment=A Python port of SolarFox
Icon=solarwolf.png
Terminal=false
Categories=Game;ActionGame;
StartupNotify=false


--- NEW FILE solarwolf.spec ---
Name: solarwolf
Version:  1.5
Release:  2%{?dist}
Summary: A Python port of SolarFox

Group: Amusements/Games 
License: LGPLv2+
URL: http://pygame.org/shredwheat/solarwolf
Source0: http://pygame.org/shredwheat/solarwolf/solarwolf-%{version}.tar.gz
Source1: solarwolf.desktop
Patch0: solarwolf-path.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root%(%{__id_u} -n)
BuildArchitectures: noarch
BuildRequires: desktop-file-utils
Requires: hicolor-icon-theme, python, pygame

%description
The point of the game is to scramble through 60 levels
collecting space boxes. Each level gets is harder than
the previous. Obstacles like bullets, mines, and asteroids
cover your every move. Beat the Skip timer and grab the
powerups for your only chance.

%prep
%setup -q
chmod 755 data/music
chmod 644 data/music/*
chmod 755 data/audio
chmod 644 data/audio/*

%patch0 -p0

%build

%install
rm -rf %{buildroot}

mkdir -p  %{buildroot}%{_bindir}
install -p -m 755 solarwolf.py %{buildroot}%{_bindir}/solarwolf

mkdir -p  %{buildroot}%{_datadir}/solarwolf
mkdir -p  %{buildroot}%{_datadir}/solarwolf/data
cp -ra data/* %{buildroot}%{_datadir}/solarwolf/data

mkdir -p  %{buildroot}%{_datadir}/solarwolf/code
install -p -m 644 code/* %{buildroot}%{_datadir}/solarwolf/code

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/64x64/apps
install -p -m 644 dist/solarwolf.png \
  $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps

%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

%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%{_bindir}/solarwolf
%{_datadir}/solarwolf/
%doc readme.txt lgpl.txt
%{_datadir}/applications/fedora-solarwolf.desktop
%{_datadir}/icons/hicolor/64x64/apps/solarwolf.png

%changelog
* Thu Sep 21 2007 Jon Ciesla <limb at jcomserv.net> - 1.5-2
- Fixed Source URL.
- Switched from mv to cp for timestamps.
- Moved permission correction to prep.

* Fri Sep 14 2007 Jon Ciesla <limb at jcomserv.net> - 1.5-1
- create.


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/solarwolf/FC-6/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	21 Sep 2007 16:16:33 -0000	1.1
+++ sources	25 Sep 2007 11:27:12 -0000	1.2
@@ -0,0 +1 @@
+52fbed0a33c3c4c08d9dc0e533f90f8c  solarwolf-1.5.tar.gz




More information about the fedora-extras-commits mailing list