5 Group: Applications/Games
6 Summary: Superior chess program by Bob Hyatt for Unix systems.
8 Source0: ftp://ftp.cis.uab.edu/pub/hyatt/v18/%{name}-%{version}.tar.gz
9 # Source0-md5: 4cae4e95fb86421c6626baefadbff18f
10 Source1: ftp://ftp.cis.uab.edu/pub/hyatt/%{name}.faq
11 # NoSource1-md5: f744727e291b6dec7e7c69bb3586b6dd
12 Source2: ftp://ftp.cis.uab.edu/pub/hyatt/read.me
13 # NoSource2-md5: ce9a5e014d23f36c2540628ba0dc1c0b
14 Source3: ftp://ftp.cis.uab.edu/pub/hyatt/common/start.pgn.gz
15 # Source3-md5: c3c54b29351408298e3c7548f4faed93
16 Source4: ftp://ftp.cis.uab.edu/pub/hyatt/v18/%{name}.doc.ascii
17 # NoSource4-md5: 5fd73027a1de1674763562e1987197ba
18 Source5: ftp://ftp.cis.uab.edu/pub/hyatt/doc/%{name}.doc.ps
19 # Source5-md5: 6cef69aa2f9ea1ceb74b6c14edc8291f
20 Patch0: %{name}-paths.patch
21 Provides: chessprogram
25 Crafty is a Unix chess program, distributed as source by its author,
26 Bob Hyatt. The program plays at about 2200 strength and frequently
27 beats GNU Chess on the same hardware.
34 cp ${SOURCE4} ${SOURCE5} .
35 cp ${SOURCE3} . ; gzip -d start.pgn.gz
39 mkdir -p %{_prefix}/lib/games/crafty
40 touch %{_prefix}/lib/games/crafty/book.lrn %{_prefix}/lib/games/crafty/position.{bin,lrn}
42 books create start.pgn 60
47 rm -rf $RPM_BUILD_ROOT
48 install -d %{_prefix}/lib/games/crafty
49 install -m 02755 -g games crafty %{_bindir}/crafty
50 install -m 0644 -g games books.bin %{_prefix}/lib/games/crafty/books.bin
53 touch /usr/lib/games/crafty/book.lrn /usr/lib/games/crafty/position.{bin,lrn}
54 chgrp games /usr/lib/games/crafty/book.lrn \
55 /usr/lib/games/crafty/position.{bin,lrn}
56 chmod g+w /usr/lib/games/crafty/book.lrn \
57 /usr/lib/games/crafty/position.{bin,lrn}
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
68 %dir %{_prefix}/lib/games/crafty
69 %attr(755,root,root) %{_bindir}/crafty
70 %{_prefix}/lib/games/crafty/books.bin