1 Summary: Chess program that plays many variants
2 Summary(pl.UTF-8): Program szachowy grający w wiele wariantów
7 Group: Applications/Games
8 Source0: http://www.sjeng.org/ftp/%{name}-%{version}.tar.gz
9 # Source0-md5: 6561e740b7af703c16701304697d2870
11 Source2: %{name}-README
12 Patch0: %{name}-cleanup.patch
13 Patch1: %{name}-FHS.patch
14 URL: http://sjeng.org/
15 BuildRequires: automake
16 BuildRequires: gdbm-devel
17 BuildRequires: perl-base
18 Provides: chess_backend
19 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Sjeng is a chess program that plays normal chess and many variants
23 like crazyhouse, bughouse, suicide (aka giveaway or anti-chess) and
24 losers. It can also play variants which have the same rules as normal
25 chess, but a different starting position. It uses the XBoard/WinBoard
26 interface by Tim Mann, so it can be used with xboard or eboard. It is
27 also capable of playing on Internet chess servers.
29 %description -l pl.UTF-8
30 Sjeng to program szachowy grający w zwykłe szachy, a także wiele
31 wariantów, takich jak crazyhouse, kloc (bughouse), antyszachy (znane
32 także jako szybka szpila; ang. suicide chess, giveaway, anti-chess,
33 loser's chess). Potrafi także grać w warianty z normalnymi regułami,
34 ale inną pozycją początkową. Wykorzystuje interfejs XBoard/WinBoard
35 Tima Manna, więc może być używany wraz z xboard lub eboard. Potrafi
36 także grać z wykorzystaniem internetowych serwerów szachowych.
42 cp %{SOURCE2} README.debian
44 # (Abel) supress annoying rpmlint warning message
45 %{__perl} -pi -e 's/\r//g' [[:upper:]][[:upper:]]* ChangeLog
48 autoreconf --force --install
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT{%{_datadir}/sjeng,%{_sysconfdir},%{_mandir}/man6}
58 DESTDIR=$RPM_BUILD_ROOT
60 install sjeng.rc $RPM_BUILD_ROOT%{_sysconfdir}
61 install books/*.opn $RPM_BUILD_ROOT%{_datadir}/sjeng
62 install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man6/sjeng.6
65 rm -rf $RPM_BUILD_ROOT
68 %defattr(644,root,root,755)
69 %doc AUTHORS BUGS ChangeLog NEWS README* THANKS tests/*.epd
70 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sjeng.rc
71 %attr(755,root,root) %{_bindir}/sjeng
72 %dir %{_datadir}/sjeng
73 %{_datadir}/sjeng/*.opn