]> git.pld-linux.org Git - packages/crafty.git/blame - crafty.spec
- grrr, work, please...
[packages/crafty.git] / crafty.spec
CommitLineData
03aaaa84 1Name: crafty
2Version: 18.9
03aaaa84 3Release: 2
03aaaa84 4License: GPL
8d214343 5Group: Applications/Games
6Summary: Superior chess program by Bob Hyatt for Unix systems.
03aaaa84 7Icon: xchess.gif
8d214343 8Source0: ftp://ftp.cis.uab.edu/pub/hyatt/v18/%{name}-%{version}.tar.gz
39537b05 9# Source0-md5: 4cae4e95fb86421c6626baefadbff18f
8d214343 10Source1: ftp://ftp.cis.uab.edu/pub/hyatt/%{name}.faq
d3bc16ca 11# NoSource1-md5: f744727e291b6dec7e7c69bb3586b6dd
8d214343 12Source2: ftp://ftp.cis.uab.edu/pub/hyatt/read.me
d3bc16ca 13# NoSource2-md5: ce9a5e014d23f36c2540628ba0dc1c0b
8d214343 14Source3: ftp://ftp.cis.uab.edu/pub/hyatt/common/start.pgn.gz
15# Source3-md5: c3c54b29351408298e3c7548f4faed93
16Source4: ftp://ftp.cis.uab.edu/pub/hyatt/v18/%{name}.doc.ascii
d3bc16ca 17# NoSource4-md5: 5fd73027a1de1674763562e1987197ba
8d214343 18Source5: ftp://ftp.cis.uab.edu/pub/hyatt/doc/%{name}.doc.ps
19# Source5-md5: 6cef69aa2f9ea1ceb74b6c14edc8291f
03aaaa84 20Patch0: %{name}-paths.patch
8d214343 21Provides: chessprogram
22ExcludeArch: axp
03aaaa84 23
24%description
25Crafty is a Unix chess program, distributed as source by its author,
26Bob Hyatt. The program plays at about 2200 strength and frequently
27beats GNU Chess on the same hardware.
28
29%prep
30%setup -q -c -T -a 0
31%patch -p1
8d214343 32cp ${SOURCE2} README
33cp ${SOURCE1} .
34cp ${SOURCE4} ${SOURCE5} .
35cp ${SOURCE3} . ; gzip -d start.pgn.gz
03aaaa84 36
37%build
38%{__make} linux-elf
39mkdir -p %{_prefix}/lib/games/crafty
40touch %{_prefix}/lib/games/crafty/book.lrn %{_prefix}/lib/games/crafty/position.{bin,lrn}
41./crafty << _END_
42books create start.pgn 60
43quit
44_END_
45
46%install
47rm -rf $RPM_BUILD_ROOT
48install -d %{_prefix}/lib/games/crafty
49install -m 02755 -g games crafty %{_bindir}/crafty
50install -m 0644 -g games books.bin %{_prefix}/lib/games/crafty/books.bin
51
52%post
53touch /usr/lib/games/crafty/book.lrn /usr/lib/games/crafty/position.{bin,lrn}
54chgrp games /usr/lib/games/crafty/book.lrn \
55 /usr/lib/games/crafty/position.{bin,lrn}
56chmod g+w /usr/lib/games/crafty/book.lrn \
57 /usr/lib/games/crafty/position.{bin,lrn}
58
8d214343 59%clean
60rm -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
This page took 0.143128 seconds and 4 git commands to generate.