Import new package spec for introduction into repository.

Fri, 27 May 2011 21:13:44 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 27 May 2011 21:13:44 +0200
changeset 16
37c0f50c8c7d
parent 15
5ae423a55bed
child 17
0ad158be7636

Import new package spec for introduction into repository.

brutalchess/brutalchess.patch file | annotate | diff | comparison | revisions
brutalchess/brutalchess.spec file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/brutalchess/brutalchess.patch	Fri May 27 21:13:44 2011 +0200
     1.3 @@ -0,0 +1,11 @@
     1.4 +Index: src/brutalplayer.cpp
     1.5 +--- src/brutalplayer.cpp.orig	2011-05-27 00:21:49.090535015 +0200
     1.6 ++++ src/brutalplayer.cpp	2011-05-27 00:22:16.281535003 +0200
     1.7 +@@ -11,6 +11,7 @@
     1.8 + #include "options.h"
     1.9 + 
    1.10 + #include <vector>
    1.11 ++#include <climits>
    1.12 + #include <time.h>
    1.13 + 
    1.14 + using namespace std;
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/brutalchess/brutalchess.spec	Fri May 27 21:13:44 2011 +0200
     2.3 @@ -0,0 +1,48 @@
     2.4 +Name:           brutalchess
     2.5 +Version:        0.5.2
     2.6 +Release:        MSvB_1
     2.7 +License:        GPLv2
     2.8 +Summary:        OpenGL chess client
     2.9 +Url:            http://brutalchess.sf.net/
    2.10 +Group:          Games
    2.11 +Source:         http://switch.dl.sourceforge.net/project/brutalchess/brutalchess-alpha/brutalchess-alpha-%{version}/brutalchess-alpha-%{version}-src.tar.gz
    2.12 +Patch:          brutalchess.patch
    2.13 +BuildRequires:  libSDL-devel, libSDL_image-devel
    2.14 +PreReq:         libSDL-1_2-0, libSDL_image-1_2-0
    2.15 +BuildRoot:      %{_tmppath}/%{name}-%{version}-build
    2.16 +
    2.17 +%description
    2.18 +Brutal Chess features full 3D graphics, an advanced particle engine, and
    2.19 +several different levels of intelligent AI, inspired by the once popular
    2.20 +Battle Chess released by Interplay circa 1988.
    2.21 +
    2.22 +%prep
    2.23 +%setup -q
    2.24 +%patch
    2.25 +%{__sed} -i.orig -e 's; *GLvoid *;;g' src/md3view.cpp src/objview.cpp
    2.26 +
    2.27 +%build
    2.28 +%configure
    2.29 +make %{?_smp_mflags}
    2.30 +
    2.31 +%install
    2.32 +%make_install
    2.33 +rm -f %{buildroot}/usr/lib/md3view
    2.34 +rm -f %{buildroot}/usr/lib/objview
    2.35 +rm -rf %{buildroot}/usr/share/brutalchess/doc
    2.36 +
    2.37 +%clean
    2.38 +%{?buildroot:%__rm -rf "%{buildroot}"}
    2.39 +
    2.40 +%files
    2.41 +%defattr(-,root,root)
    2.42 +%doc ChangeLog README COPYING
    2.43 +/usr/bin/brutalchess
    2.44 +/usr/share/brutalchess/art/*
    2.45 +/usr/share/brutalchess/fonts/*
    2.46 +/usr/share/brutalchess/models/*
    2.47 +
    2.48 +%changelog
    2.49 +* Thu May 26 2011 Michael Schloh von Bennewitz <michael@schloh.com> - 0.5.2
    2.50 +- First cut at SDL based chess client with intermediate strategy skills.
    2.51 +

mercurial