# HG changeset patch # User Michael Schloh von Bennewitz # Date 1306523624 -7200 # Node ID 37c0f50c8c7d5045170a515f732c6e7a7dd84a6c # Parent 5ae423a55beddadd1faf0e94b277700eb81a4d6e Import new package spec for introduction into repository. diff -r 5ae423a55bed -r 37c0f50c8c7d brutalchess/brutalchess.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/brutalchess/brutalchess.patch Fri May 27 21:13:44 2011 +0200 @@ -0,0 +1,11 @@ +Index: src/brutalplayer.cpp +--- src/brutalplayer.cpp.orig 2011-05-27 00:21:49.090535015 +0200 ++++ src/brutalplayer.cpp 2011-05-27 00:22:16.281535003 +0200 +@@ -11,6 +11,7 @@ + #include "options.h" + + #include ++#include + #include + + using namespace std; diff -r 5ae423a55bed -r 37c0f50c8c7d brutalchess/brutalchess.spec --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/brutalchess/brutalchess.spec Fri May 27 21:13:44 2011 +0200 @@ -0,0 +1,48 @@ +Name: brutalchess +Version: 0.5.2 +Release: MSvB_1 +License: GPLv2 +Summary: OpenGL chess client +Url: http://brutalchess.sf.net/ +Group: Games +Source: http://switch.dl.sourceforge.net/project/brutalchess/brutalchess-alpha/brutalchess-alpha-%{version}/brutalchess-alpha-%{version}-src.tar.gz +Patch: brutalchess.patch +BuildRequires: libSDL-devel, libSDL_image-devel +PreReq: libSDL-1_2-0, libSDL_image-1_2-0 +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +Brutal Chess features full 3D graphics, an advanced particle engine, and +several different levels of intelligent AI, inspired by the once popular +Battle Chess released by Interplay circa 1988. + +%prep +%setup -q +%patch +%{__sed} -i.orig -e 's; *GLvoid *;;g' src/md3view.cpp src/objview.cpp + +%build +%configure +make %{?_smp_mflags} + +%install +%make_install +rm -f %{buildroot}/usr/lib/md3view +rm -f %{buildroot}/usr/lib/objview +rm -rf %{buildroot}/usr/share/brutalchess/doc + +%clean +%{?buildroot:%__rm -rf "%{buildroot}"} + +%files +%defattr(-,root,root) +%doc ChangeLog README COPYING +/usr/bin/brutalchess +/usr/share/brutalchess/art/* +/usr/share/brutalchess/fonts/* +/usr/share/brutalchess/models/* + +%changelog +* Thu May 26 2011 Michael Schloh von Bennewitz - 0.5.2 +- First cut at SDL based chess client with intermediate strategy skills. +