1 Summary: Superior chess program by Bob Hyatt for Unix systems
2 Summary(pl): Jeden z lepszych programów szachowych dla uniksów autorstwa Boba Hyatta
7 Group: Applications/Games
8 Source0: ftp://ftp.cis.uab.edu/pub/hyatt/source/%{name}-%{version}.tar.gz
9 # Source0-md5: 390ed8badcd30d16361eef415d2dada7
10 # two following originally from ftp://ftp.cis.uab.edu/pub/hyatt/
12 # NoSource1-md5: f744727e291b6dec7e7c69bb3586b6dd
14 # NoSource2-md5: ce9a5e014d23f36c2540628ba0dc1c0b
15 # now: ftp://ftp.cis.uab.edu/pub/hyatt/books/start.pgn
17 # Source3-md5: c3c54b29351408298e3c7548f4faed93
18 Source4: ftp://ftp.cis.uab.edu/pub/hyatt/documentation/%{name}.doc.ascii
19 # NoSource4-md5: 5fd73027a1de1674763562e1987197ba
20 Source5: ftp://ftp.cis.uab.edu/pub/hyatt/documentation/%{name}.doc.ps
21 # Source5-md5: 6cef69aa2f9ea1ceb74b6c14edc8291f
22 Source6: %{name}.desktop
24 Patch0: %{name}-paths.patch
25 Patch1: %{name}-Makefile.patch
27 URL: http://www.limunltd.com/crafty/
28 BuildRequires: libstdc++-devel
29 Provides: chessprogram
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 %define specflags -fomit-frame-pointer
35 Crafty is a Unix chess program, distributed as source by its author,
36 Bob Hyatt. The program plays at about 2200 strength and frequently
37 beats GNU Chess on the same hardware.
40 Crafty to uniksowy program szachowy rozpowszechniany w postaci
41 ¼ród³owej przez autora - Boba Hyatta. Program gra z si³± oko³o 2200 i
42 czêsto wygrywa z GNU Chess na tym samym sprzêcie.
50 cp %{SOURCE4} %{SOURCE5} .
54 %{__perl} -pi -e 's@.*machine/builtins.*@@' chess.h
61 optarch="-DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B"
67 %{__make} crafty-make \
71 CFLAGS="%{rpmcflags} -Wall -pipe -D_REENTRANT" \
72 LDFLAGS="%{rpmldflags} -lpthread" \
73 opt="-DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS $optarch -DFAST" \
76 #mkdir -p %{_prefix}/lib/games/crafty
77 #touch %{_prefix}/lib/games/crafty/book.lrn %{_prefix}/lib/games/crafty/position.{bin,lrn}
79 #books create start.pgn 60
84 rm -rf $RPM_BUILD_ROOT
85 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/games/crafty,%{_desktopdir},%{_pixmapsdir}}
86 install crafty $RPM_BUILD_ROOT%{_bindir}
87 install %{SOURCE6} $RPM_BUILD_ROOT%{_desktopdir}
88 install %{SOURCE7} $RPM_BUILD_ROOT%{_pixmapsdir}
89 #install books.bin $RPM_BUILD_ROOT%{_libdir}/games/crafty
90 #install -d %{_libdir}/games/crafty
91 #install books.bin %{_libdir}/games/crafty/books.bin
94 rm -rf $RPM_BUILD_ROOT
97 touch /usr/lib/games/crafty/book.lrn /usr/lib/games/crafty/position.{bin,lrn}
98 chgrp games /usr/lib/games/crafty/book.lrn \
99 /usr/lib/games/crafty/position.{bin,lrn}
100 chmod g+w /usr/lib/games/crafty/book.lrn \
101 /usr/lib/games/crafty/position.{bin,lrn}
104 %defattr(644,root,root,755)
105 %doc crafty.faq crafty.doc.ascii crafty.doc.ps README
106 %attr(755,root,root) %{_bindir}/crafty
107 %dir %{_libdir}/games/crafty
108 #%{_libdir}/games/crafty/books.bin