]> git.pld-linux.org Git - packages/crafty.git/blob - crafty.spec
- grrr, work, please...
[packages/crafty.git] / crafty.spec
1 Name:           crafty
2 Version:        18.9
3 Release:        2
4 License:        GPL
5 Group:          Applications/Games
6 Summary:        Superior chess program by Bob Hyatt for Unix systems.
7 Icon:           xchess.gif
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
22 ExcludeArch:    axp
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
32 cp ${SOURCE2} README
33 cp ${SOURCE1} .
34 cp ${SOURCE4} ${SOURCE5} .
35 cp ${SOURCE3} . ; gzip -d start.pgn.gz
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
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
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
This page took 0.187623 seconds and 4 git commands to generate.