Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 2d8cdb5937e249fd2d5d6988a5190bde > files > 5

sjeng-free-11.2-6mdv2009.0.src.rpm

%define	version	11.2
%define release	%mkrel 6
%define pkgname Sjeng-Free

Summary:	Chess program that plays many variants
Name:		sjeng-free
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Games/Boards
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
URL:		http://sjeng.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/sjeng/%{pkgname}-%{version}.tar.bz2
Source1:	sjeng.6.bz2
Source2:	sjeng-README.bz2
Patch0:		sjeng-11.2-cleanup.patch
Patch1:		sjeng-11.2-fhs.patch
BuildRequires:	automake1.9
BuildRequires:	gdbm-devel
# use version here, in case opening books need to be rebuilt
# due to binary imcompatibility from future gdbm(?)
# Nanar: this requires does not exists in the distro... ???
# Requires:	sjeng-book = 0.1
Provides:	chessengine

%description
Sjeng is a chess program that plays normal chess and many variants
like crazyhouse, bughouse, suicide (aka giveaway or anti-chess) and
losers. It can also play variants which have the same rules as normal
chess, but a different starting position. It uses the XBoard/WinBoard
interface by Tim Mann, so it can be used with xboard or eboard. It
is also capable of playing on internet chess servers.

%prep
%setup -q -n %{pkgname}-%{version}
%patch0 -p1 -b .cleanup
%patch1 -p1 -b .fhs

FORCE_AUTOCONF_2_5=1 ACLOCAL=aclocal-1.9 AUTOMAKE=automake-1.9 autoreconf --force --install

bzip2 -dc %{SOURCE2} > README.debian

# (Abel) supress annoying rpmlint warning message
perl -pi -e 's/\r//g' [[:upper:]][[:upper:]]* ChangeLog

%build
%configure2_5x \
	--bindir=%{_gamesbindir} \
	--datadir=%{_gamesdatadir}

%make

%install
rm -rf %{buildroot}
%makeinstall_std

mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man6
bzip2 -dc %{SOURCE1} > ${RPM_BUILD_ROOT}%{_mandir}/man6/sjeng.6

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc AUTHORS BUGS ChangeLog NEWS README README.debian
%{_gamesbindir}/*
%{_mandir}/man6/sjeng.6*




%changelog
* Sat Aug 02 2008 Thierry Vignaud <tvignaud@mandriva.com> 11.2-6mdv2009.0
+ Revision: 260745
- rebuild

* Tue Jul 29 2008 Thierry Vignaud <tvignaud@mandriva.com> 11.2-5mdv2009.0
+ Revision: 252496
- rebuild
- fix no-buildroot-tag

* Mon Dec 17 2007 Thierry Vignaud <tvignaud@mandriva.com> 11.2-3mdv2008.1
+ Revision: 127301
- kill re-definition of %%buildroot on Pixel's request


* Fri Aug 04 2006 Olivier Thauvin <nanardon@mandriva.org>
+ 08/04/06 22:20:48 (53026)
- fix deps

* Fri Aug 04 2006 Olivier Thauvin <nanardon@mandriva.org>
+ 08/04/06 22:17:42 (53025)
Import sjeng-free

* Sun Jul 03 2005 Abel Cheung <deaddog@mandriva.org> 11.2-2mdk
- Incorporate everything from Debian: manpage, patches etc.
  Thanks to Lukas Geyer!
- Also attempt to read opening book from system-wide location

* Sat Jun 11 2005 Abel Cheung <deaddog@mandriva.org> 11.2-1mdk
- First Mandriva package