brutalchess/brutalchess.spec

changeset 16
37c0f50c8c7d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/brutalchess/brutalchess.spec	Fri May 27 21:13:44 2011 +0200
     1.3 @@ -0,0 +1,48 @@
     1.4 +Name:           brutalchess
     1.5 +Version:        0.5.2
     1.6 +Release:        MSvB_1
     1.7 +License:        GPLv2
     1.8 +Summary:        OpenGL chess client
     1.9 +Url:            http://brutalchess.sf.net/
    1.10 +Group:          Games
    1.11 +Source:         http://switch.dl.sourceforge.net/project/brutalchess/brutalchess-alpha/brutalchess-alpha-%{version}/brutalchess-alpha-%{version}-src.tar.gz
    1.12 +Patch:          brutalchess.patch
    1.13 +BuildRequires:  libSDL-devel, libSDL_image-devel
    1.14 +PreReq:         libSDL-1_2-0, libSDL_image-1_2-0
    1.15 +BuildRoot:      %{_tmppath}/%{name}-%{version}-build
    1.16 +
    1.17 +%description
    1.18 +Brutal Chess features full 3D graphics, an advanced particle engine, and
    1.19 +several different levels of intelligent AI, inspired by the once popular
    1.20 +Battle Chess released by Interplay circa 1988.
    1.21 +
    1.22 +%prep
    1.23 +%setup -q
    1.24 +%patch
    1.25 +%{__sed} -i.orig -e 's; *GLvoid *;;g' src/md3view.cpp src/objview.cpp
    1.26 +
    1.27 +%build
    1.28 +%configure
    1.29 +make %{?_smp_mflags}
    1.30 +
    1.31 +%install
    1.32 +%make_install
    1.33 +rm -f %{buildroot}/usr/lib/md3view
    1.34 +rm -f %{buildroot}/usr/lib/objview
    1.35 +rm -rf %{buildroot}/usr/share/brutalchess/doc
    1.36 +
    1.37 +%clean
    1.38 +%{?buildroot:%__rm -rf "%{buildroot}"}
    1.39 +
    1.40 +%files
    1.41 +%defattr(-,root,root)
    1.42 +%doc ChangeLog README COPYING
    1.43 +/usr/bin/brutalchess
    1.44 +/usr/share/brutalchess/art/*
    1.45 +/usr/share/brutalchess/fonts/*
    1.46 +/usr/share/brutalchess/models/*
    1.47 +
    1.48 +%changelog
    1.49 +* Thu May 26 2011 Michael Schloh von Bennewitz <michael@schloh.com> - 0.5.2
    1.50 +- First cut at SDL based chess client with intermediate strategy skills.
    1.51 +

mercurial