]>
Commit | Line | Data |
---|---|---|
03aaaa84 | 1 | Name: crafty |
2 | Version: 18.9 | |
03aaaa84 | 3 | Release: 2 |
03aaaa84 | 4 | License: GPL |
8d214343 | 5 | Group: Applications/Games |
6 | Summary: Superior chess program by Bob Hyatt for Unix systems. | |
03aaaa84 | 7 | Icon: xchess.gif |
8d214343 | 8 | Source0: ftp://ftp.cis.uab.edu/pub/hyatt/v18/%{name}-%{version}.tar.gz |
39537b05 | 9 | # Source0-md5: 4cae4e95fb86421c6626baefadbff18f |
8d214343 | 10 | Source1: ftp://ftp.cis.uab.edu/pub/hyatt/%{name}.faq |
d3bc16ca | 11 | # NoSource1-md5: f744727e291b6dec7e7c69bb3586b6dd |
8d214343 | 12 | Source2: ftp://ftp.cis.uab.edu/pub/hyatt/read.me |
d3bc16ca | 13 | # NoSource2-md5: ce9a5e014d23f36c2540628ba0dc1c0b |
8d214343 | 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 | |
d3bc16ca | 17 | # NoSource4-md5: 5fd73027a1de1674763562e1987197ba |
8d214343 | 18 | Source5: ftp://ftp.cis.uab.edu/pub/hyatt/doc/%{name}.doc.ps |
19 | # Source5-md5: 6cef69aa2f9ea1ceb74b6c14edc8291f | |
03aaaa84 | 20 | Patch0: %{name}-paths.patch |
8d214343 | 21 | Provides: chessprogram |
22 | ExcludeArch: axp | |
03aaaa84 | 23 | |
24 | %description | |
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. | |
28 | ||
29 | %prep | |
30 | %setup -q -c -T -a 0 | |
31 | %patch -p1 | |
8d214343 | 32 | cp ${SOURCE2} README |
33 | cp ${SOURCE1} . | |
34 | cp ${SOURCE4} ${SOURCE5} . | |
35 | cp ${SOURCE3} . ; gzip -d start.pgn.gz | |
03aaaa84 | 36 | |
37 | %build | |
38 | %{__make} linux-elf | |
39 | mkdir -p %{_prefix}/lib/games/crafty | |
40 | touch %{_prefix}/lib/games/crafty/book.lrn %{_prefix}/lib/games/crafty/position.{bin,lrn} | |
41 | ./crafty << _END_ | |
42 | books create start.pgn 60 | |
43 | quit | |
44 | _END_ | |
45 | ||
46 | %install | |
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 | |
51 | ||
52 | %post | |
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} | |
58 | ||
8d214343 | 59 | %clean |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
03aaaa84 | 62 | %files |
63 | %defattr(644,root,root,755) | |
64 | %doc crafty.faq | |
65 | %doc crafty.doc.ascii | |
66 | %doc crafty.doc.ps | |
67 | %doc README | |
68 | %dir %{_prefix}/lib/games/crafty | |
69 | %attr(755,root,root) %{_bindir}/crafty | |
70 | %{_prefix}/lib/games/crafty/books.bin |