Fri, 27 May 2011 21:13:44 +0200
Import new package spec for introduction into repository.
1 Name: brutalchess
2 Version: 0.5.2
3 Release: MSvB_1
4 License: GPLv2
5 Summary: OpenGL chess client
6 Url: http://brutalchess.sf.net/
7 Group: Games
8 Source: http://switch.dl.sourceforge.net/project/brutalchess/brutalchess-alpha/brutalchess-alpha-%{version}/brutalchess-alpha-%{version}-src.tar.gz
9 Patch: brutalchess.patch
10 BuildRequires: libSDL-devel, libSDL_image-devel
11 PreReq: libSDL-1_2-0, libSDL_image-1_2-0
12 BuildRoot: %{_tmppath}/%{name}-%{version}-build
14 %description
15 Brutal Chess features full 3D graphics, an advanced particle engine, and
16 several different levels of intelligent AI, inspired by the once popular
17 Battle Chess released by Interplay circa 1988.
19 %prep
20 %setup -q
21 %patch
22 %{__sed} -i.orig -e 's; *GLvoid *;;g' src/md3view.cpp src/objview.cpp
24 %build
25 %configure
26 make %{?_smp_mflags}
28 %install
29 %make_install
30 rm -f %{buildroot}/usr/lib/md3view
31 rm -f %{buildroot}/usr/lib/objview
32 rm -rf %{buildroot}/usr/share/brutalchess/doc
34 %clean
35 %{?buildroot:%__rm -rf "%{buildroot}"}
37 %files
38 %defattr(-,root,root)
39 %doc ChangeLog README COPYING
40 /usr/bin/brutalchess
41 /usr/share/brutalchess/art/*
42 /usr/share/brutalchess/fonts/*
43 /usr/share/brutalchess/models/*
45 %changelog
46 * Thu May 26 2011 Michael Schloh von Bennewitz <michael@schloh.com> - 0.5.2
47 - First cut at SDL based chess client with intermediate strategy skills.