1 Summary: Chess program that plays many variants
6 Group: Applications/Games/Boards
7 Source0: http://www.sjeng.org/ftp/%{name}-%{version}.tar.gz
8 # Source0-md5: 6561e740b7af703c16701304697d2870
10 Source2: %{name}-README
11 Patch0: %{name}-cleanup.patch.bz2
12 Patch1: %{name}-FHS.patch.bz2
13 URL: http://sjeng.org/
14 BuildRequires: automake
15 BuildRequires: gdbm-devel
16 Provides: chess_backend
17 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Sjeng is a chess program that plays normal chess and many variants
21 like crazyhouse, bughouse, suicide (aka giveaway or anti-chess) and
22 losers. It can also play variants which have the same rules as normal
23 chess, but a different starting position. It uses the XBoard/WinBoard
24 interface by Tim Mann, so it can be used with xboard or eboard. It is
25 also capable of playing on internet chess servers.
29 %patch0 -p1 -b .cleanup
31 cp %{SOURCE2} README.debian
33 # (Abel) supress annoying rpmlint warning message
34 %{__perl} -pi -e 's/\r//g' [[:upper:]][[:upper:]]* ChangeLog
37 autoreconf --force --install
43 rm -rf $RPM_BUILD_ROOT
44 install -d ${RPM_BUILD_ROOT}{%{_datadir}/sjeng,%{_sysconfdir},%{_mandir}/man6}
47 DESTDIR=$RPM_BUILD_ROOT
49 install sjeng.rc ${RPM_BUILD_ROOT}%{_sysconfdir}
50 install books/*.opn ${RPM_BUILD_ROOT}%{_datadir}/sjeng
51 install %{SOURCE1} ${RPM_BUILD_ROOT}%{_mandir}/man6/sjeng.6
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
58 %doc AUTHORS BUGS ChangeLog NEWS README* THANKS tests/*.epd
59 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sjeng.rc
60 %attr(755,root,root) %{_bindir}/sjeng
61 %dir %{_datadir}/sjeng
62 %{_datadir}/sjeng/*.opn