]>
Commit | Line | Data |
---|---|---|
168fe1b7 | 1 | Summary: Chess program that plays many variants |
3329c1d8 | 2 | Summary(pl.UTF-8): Program szachowy grający w wiele wariantów |
168fe1b7 PG |
3 | Name: Sjeng-Free |
4 | Version: 11.2 | |
5 | Release: 1 | |
6 | License: GPL v2 | |
3329c1d8 | 7 | Group: Applications/Games |
168fe1b7 PG |
8 | Source0: http://www.sjeng.org/ftp/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 6561e740b7af703c16701304697d2870 | |
10 | Source1: %{name}.6 | |
11 | Source2: %{name}-README | |
3329c1d8 JB |
12 | Patch0: %{name}-cleanup.patch |
13 | Patch1: %{name}-FHS.patch | |
168fe1b7 PG |
14 | URL: http://sjeng.org/ |
15 | BuildRequires: automake | |
16 | BuildRequires: gdbm-devel | |
3329c1d8 | 17 | BuildRequires: perl-base |
168fe1b7 PG |
18 | Provides: chess_backend |
19 | Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
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 | |
3329c1d8 JB |
27 | also capable of playing on Internet chess servers. |
28 | ||
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. | |
168fe1b7 PG |
37 | |
38 | %prep | |
39 | %setup -q | |
3329c1d8 JB |
40 | %patch0 -p1 |
41 | %patch1 -p1 | |
dd9924af | 42 | cp %{SOURCE2} README.PLD |
168fe1b7 PG |
43 | |
44 | # (Abel) supress annoying rpmlint warning message | |
45 | %{__perl} -pi -e 's/\r//g' [[:upper:]][[:upper:]]* ChangeLog | |
46 | ||
47 | %build | |
48 | autoreconf --force --install | |
49 | %configure | |
50 | ||
51 | %{__make} | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
3329c1d8 | 55 | install -d $RPM_BUILD_ROOT{%{_datadir}/sjeng,%{_sysconfdir},%{_mandir}/man6} |
168fe1b7 PG |
56 | |
57 | %{__make} install \ | |
58 | DESTDIR=$RPM_BUILD_ROOT | |
59 | ||
3329c1d8 JB |
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 | |
168fe1b7 PG |
63 | |
64 | %clean | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %files | |
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 | |
e2b5f057 | 71 | %attr(755,root,root) %{_bindir}/sjeng |
168fe1b7 PG |
72 | %dir %{_datadir}/sjeng |
73 | %{_datadir}/sjeng/*.opn | |
74 | %{_mandir}/man6/*.6* |