packages: sumwars/sumwars.spec (NEW) - init
lisu
lisu at pld-linux.org
Thu Nov 18 09:43:18 CET 2010
Author: lisu Date: Thu Nov 18 08:43:18 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- init
---- Files affected:
packages/sumwars:
sumwars.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/sumwars/sumwars.spec
diff -u /dev/null packages/sumwars/sumwars.spec:1.1
--- /dev/null Thu Nov 18 09:43:18 2010
+++ packages/sumwars/sumwars.spec Thu Nov 18 09:43:13 2010
@@ -0,0 +1,69 @@
+# $Revision$, $Date$
+#
+# TODO: create ~/.sumwars/save directory and use it to store saved games
+#
+%define svn_rev 2169
+Summary: An open source role-playing game
+Summary(pl.UTF-8): Otwarta gra typu RPG
+Name: sumwars
+Version: %{svn_ver}
+Release: 0.svn.1
+License: GPL v3+
+Group: X11/Applications/Games
+Source0: %{name}-%{version}-svn.tar.gz
+# Source0-md5: cf169a6f0c285d05dba490a80d164ef4
+Patch0: %{name}-paths.patch
+URL: http://www.sumwars.org/
+BuildRequires: CEGUI-Ogre >= 0.7.0
+BuildRequires: cmake >= 2.6.0
+BuildRequires: enet-devel >= 1.2
+BuildRequires: sed >= 4.0
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Summoning Wars is an open source role-playing game, featuring both a
+single-player and a multiplayer mode for about 2 to 8 players.
+
+%description -l pl.UTF-8
+Summoning Wars jest otwartą grą typu RPG, umożliwiającą grę jednemu
+graczowi jak również grę sieciową pozwalającą na grę od 2 do 8 graczy.
+
+%prep
+%setup -q -n %{name}
+%patch0 -p1
+%{__sed} -i 's,./resources,resources,;s,./data,data,' resources.cfg
+
+%build
+install -d build
+cd build
+%cmake ..
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/games/%{name}}
+
+install build/sumwars $RPM_BUILD_ROOT%{_bindir}
+install ogre.cfg plugins.cfg resources.cfg $RPM_BUILD_ROOT%{_datadir}/games/%{name}
+install authors.txt $RPM_BUILD_ROOT%{_datadir}/games/%{name}
+cp -r resources data $RPM_BUILD_ROOT%{_datadir}/games/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS README
+%attr(755,root,root) %{_bindir}/sumwars
+%{_datadir}/games/%{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 2010/11/18 08:43:13 lisu
+- init
+
================================================================
More information about the pld-cvs-commit
mailing list