SPECS: mars.spec (NEW) - initial version - it doesn't work correct...

lisu lisu at pld-linux.org
Wed Nov 8 02:12:49 CET 2006


Author: lisu                         Date: Wed Nov  8 01:12:49 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial version
- it doesn't work correctly yet

---- Files affected:
SPECS:
   mars.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/mars.spec
diff -u /dev/null SPECS/mars.spec:1.1
--- /dev/null	Wed Nov  8 02:12:49 2006
+++ SPECS/mars.spec	Wed Nov  8 02:12:43 2006
@@ -0,0 +1,73 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	opengl		# build without opengl
+#
+Summary:	Turn based strategy game with isometric graphic
+Summary(pl):	Turowa gra strategiczna z grafiką izometryczną
+Name:		mars
+Version:	0.2.0
+Release:	1
+License:	GPL v2+
+Group:		X11/Applications/Games
+Source0:	http://dl.sourceforge.net/mars/%{name}-%{version}-src.tar.gz
+# Source0-md5:	4ad8a9009af5947d6e69159eab47a923
+Patch0:		%{name}-path.patch
+URL:		http://www.marsnomercy.org/
+%{?with_opengl:BuildRequires:	OpenGL-devel}
+BuildRequires:	SDL-devel
+BuildRequires:	SDL_image-devel
+BuildRequires:	SDL_ttf-devel
+BuildRequires:	scons
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Mars, Land of No Mercy is a turn based strategy game with isometric
+graphic.
+
+The player is the leader of a mercenary group that works on the Red
+Planet in the period of the terrestrian colonization.
+
+%description -l pl
+Mars, Land of No Mercy jest turową strategią z izometryczną grafiką.
+
+Gracz staje na czele najemnej grupy, która pracuje na Czerwonej
+Planecie w okresie wczesnej kolonizacji.
+
+%prep
+%setup -q
+%patch0 -p1
+%{__sed} -i 's at data/@%{_datadir}/%{name}/@' src/{mars.cpp,Functions.cpp}
+%{__sed} -i 's at data/@%{_datadir}/%{name}/@' data/xml/ngg/light.xml
+%{__sed} -i 's at data/@%{_datadir}/%{name}/@' data/xml/player.xml
+
+%build
+scons \
+	with_opengl=%{?with_opengl:yes}%{!?with_opengl:no} \
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}}
+
+install %{name} $RPM_BUILD_ROOT%{_bindir}
+cp -r data/* $RPM_BUILD_ROOT%{_datadir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_bindir}/%{name}
+%{_datadir}/%{name}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/11/08 01:12:43  lisu
+- initial version
+- it doesn't work correctly yet
+
================================================================


More information about the pld-cvs-commit mailing list