Author: blino
Date: Tue Dec  5 04:15:34 2006
New Revision: 90663

Added:
   packages/cooker/spring/current/SOURCES/spring-0.74-luxi.patch
   packages/cooker/spring/current/SOURCES/spring-0.74-py25.patch
   packages/cooker/spring/current/SOURCES/spring_0.74b1_src.tar.bz2   
(contents, props changed)
   packages/cooker/spring/current/SPECS/spring.spec

Log:
initial Spring release

Added: packages/cooker/spring/current/SOURCES/spring-0.74-luxi.patch
==============================================================================
--- (empty file)
+++ packages/cooker/spring/current/SOURCES/spring-0.74-luxi.patch       Tue Dec 
 5 04:15:34 2006
@@ -0,0 +1,11 @@
+--- spring_0.74b1/rts/System/Main.cpp.luxi     2006-11-23 15:35:43.000000000 
-0500
++++ spring_0.74b1/rts/System/Main.cpp  2006-12-04 19:59:53.000000000 -0500
+@@ -313,7 +313,7 @@
+       // Initialize font
+       font = new CglFont(configHandler.GetInt("FontCharFirst", 32),
+                          configHandler.GetInt("FontCharLast", 223),
+-                         configHandler.GetString("FontFile", 
"Luxi.ttf").c_str());
++                         configHandler.GetString("FontFile", 
"/usr/share/fonts/TTF/luxisr.ttf").c_str());
+ 
+       // Initialize GLEW
+       LoadExtensions();

Added: packages/cooker/spring/current/SOURCES/spring-0.74-py25.patch
==============================================================================
--- (empty file)
+++ packages/cooker/spring/current/SOURCES/spring-0.74-py25.patch       Tue Dec 
 5 04:15:34 2006
@@ -0,0 +1,23 @@
+--- spring_0.74b1/rts/build/scons/config.py.py25       2006-11-19 
18:20:47.000000000 -0500
++++ spring_0.74b1/rts/build/scons/config.py    2006-12-04 17:51:52.000000000 
-0500
+@@ -169,9 +169,9 @@
+ 
+ 
+ def check_python(env, conf):
+-      print "Checking for Python 2.4...",
++      print "Checking for Python 2.5...",
+       print ""
+-      guess_include_path(env, conf, 'Python', 'python2.4')
++      guess_include_path(env, conf, 'Python', 'python2.5')
+ 
+ 
+ def check_headers(env, conf):
+@@ -241,7 +241,7 @@
+ 
+       #FIXME unitsync doesn't compile on mingw, also this breaks current 
mingwlibs when crosscompiling..
+       # second check for Windows.
+-      if not conf.CheckLib('python2.4') and not conf.CheckLib('python24'):
++      if not conf.CheckLib('python2.5') and not conf.CheckLib('python25'):
+               print 'python is required for this program'
+               env.Exit(1)
+ 

Added: packages/cooker/spring/current/SOURCES/spring_0.74b1_src.tar.bz2
==============================================================================
Binary file. No diff available.

Added: packages/cooker/spring/current/SPECS/spring.spec
==============================================================================
--- (empty file)
+++ packages/cooker/spring/current/SPECS/spring.spec    Tue Dec  5 04:15:34 2006
@@ -0,0 +1,68 @@
+%define name spring
+%define version 0.74
+%define beta b1
+%define release %mkrel 0.%{beta}.1
+
+%define distname spring_%{version}%{beta}
+
+Summary: Realtime strategy game (inspired by Total Annihilation)
+Name: %{name}
+Version: %{version}
+Release: %{release}
+Source0: http://prdownload.berlios.de/taspring-linux/%{distname}_src.tar.bz2
+Patch0: spring-0.74-py25.patch
+Patch1: spring-0.74-luxi.patch
+License: GPL
+Group: Games/Strategy
+Url: http://taspring.clan-sy.com/
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
+BuildRequires: SDL-devel
+BuildRequires: boost-devel
+BuildRequires: devil-devel
+BuildRequires: freetype2-devel
+BuildRequires: glew-devel
+BuildRequires: openal-devel
+BuildRequires: python-devel
+BuildRequires: zlib-devel
+Requires: %{name}-data
+Requires: x11-font-bh-ttf
+
+%description
+Spring is a 3D realtime strategy game. It was inspired by Total
+Annihilation and has the same features Total Annihilation had, and
+more.
+
+%prep
+%setup -q -n %{distname}
+%patch0 -p1 -b .py25
+%patch1 -p1 -b .luxi
+
+%build
+scons configure datadir=%{_gamesdatadir}/%{name}
+scons
+
+%install
+rm -rf %{buildroot}
+
+install -D game/%{name} %{buildroot}%{_gamesbindir}/%{name}
+scons configure prefix=%{buildroot}%{_prefix} 
datadir=%{buildroot}%{_gamesdatadir}/%{name}
+scons install
+# only keep the binary we previously copied, it was compiled with the correct 
datadir path
+rm -f %{buildroot}%{_bindir}/%{name}
+
+perl -pi -e 's|^Exec=.*|Exec=%{_gamesbindir}/%{name}|' 
%{buildroot}%{_datadir}/applications/%{name}.desktop
+desktop-file-install \
+  --vendor="" \
+  --remove-category="Application" \
+  --add-category="X-MandrivaLinux-MoreApplications-Games-Strategy" \
+  --dir %{buildroot}%{_datadir}/applications 
%{buildroot}%{_datadir}/applications/*
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root)
+%{_gamesbindir}/%{name}
+%{_gamesdatadir}/%{name}
+%{_datadir}/pixmaps/%{name}.png
+%{_datadir}/applications/%{name}.desktop

Reply via email to