Name: crafty Version: 23.4 Release: %mkrel 1 Summary: A XBoard compatible chess engine #Non-free license - see main.c License: Freeware, contact author Group: Games/Boards URL: http://www.%{name}chess.com/ Source0: ftp://ftp.cis.uab.edu/pub/hyatt/source/%{name}-%{version}.zip #opening book Source10: ftp://ftp.cis.uab.edu/pub/hyatt/book/book.bin.bz2 Source11: ftp://ftp.cis.uab.edu/pub/hyatt/book/books.bin.bz2 Source12: ftp://ftp.cis.uab.edu/pub/hyatt/book/bookc.bin.bz2 #documentation Source20: ftp://ftp.cis.uab.edu/pub/hyatt/documentation/%{name}.doc.ascii.bz2 Source21: ftp://ftp.cis.uab.edu/pub/hyatt/documentation/%{name}.doc.ps.bz2 Source22: ftp://ftp.cis.uab.edu/pub/hyatt/documentation/tournament.howto.bz2 Source23: http://www.cis.uab.edu/info/faculty/hyatt/%{name}doc.html.bz2 #man page Source30: ftp://ftp.cis.uab.edu/pub/hyatt/documentation/%{name}.man.bz2 %ifarch x86_64 #patch originally from http://forums.fedoraforum.org/showthread.php?t=238798 Patch0: %{name}-%{version}-numa_fix.patch %endif #mandriva patch from 19.19-5mdv2009.0 adopted to the 23.4 version Patch1: crafty-23.4-bookpath.patch BuildRequires: unzip %ifarch x86_64 BuildRequires: lib64numa-devel %endif %description Crafty is a chess program direct descendent of Cray Blitz, the World Computer Champion from 1983 to 1989. It comes with a text interface like gnuchess do. If you want a graphical interface, you can install GUI chessboards such as xboard and eboard. Crafty is based on the classic BITBOARD approach to representing the chess board, but uses a unique methodology called "rotated bitboards" to significantly improve the performance of the chess engine. Crafty, copyright 1996-2010 by Robert M. Hyatt, Ph.D., Associate Professor of Computer and Information Sciences, University of Alabama at Birmingham. Crafty is a team project consisting of the following members. These are the people involved in the continuing development of this program, there are no particular members responsible for any specific aspect of Crafty. Michael Byrne, Pen Argyle, PA. Robert Hyatt, University of Alabama at Birmingham. Tracy Riegle, Hershey, PA. Peter Skinner, Edmonton, AB Canada. Ted Langreck All rights reserved. No part of this program may be reproduced in any form or by any means, for other than your personal use, without the express written permission of the authors. This program may not be used in whole, nor in part, to enter any computer chess competition without written permission from the authors. Such permission will include the requirement that the program be entered under the name "Crafty" so that the program's ancestry will be known. %prep %setup -q #numa fix compilation error %ifarch x86_64 %patch0 -p1 -b .numa %endif %patch1 -p1 -b .numa #different parameters for different archs %build %{?cpus: export NCPUS=%cpus} %ifarch x86_64 %make CFLAGS="%{optflags}" linux-amd64 %else %make CFLAGS="%{optflags}" linux %endif %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_gamesbindir} install -m 755 %{name} %{buildroot}/%{_gamesbindir} #opening book mkdir -p %{buildroot}%{_gamesdatadir}/%{name} bzcat %{SOURCE10} > %{buildroot}%{_gamesdatadir}/%{name}/book.bin bzcat %{SOURCE11} > %{buildroot}%{_gamesdatadir}/%{name}/books.bin bzcat %{SOURCE12} > %{buildroot}%{_gamesdatadir}/%{name}/bookc.bin #documentation mkdir -p %{buildroot}%{_gamesdatadir}/%{name}/doc install -D -m 644 %{name}.hlp %{buildroot}%{_gamesdatadir}/%{name}/doc bzcat %{SOURCE20} > %{buildroot}%{_gamesdatadir}/%{name}/doc/%{name}.doc.ascii bzcat %{SOURCE21} > %{buildroot}%{_gamesdatadir}/%{name}/doc/%{name}.doc.ps bzcat %{SOURCE22} > %{buildroot}%{_gamesdatadir}/%{name}/doc/tournament.howto bzcat %{SOURCE23} > %{buildroot}%{_gamesdatadir}/%{name}/doc/%{name}doc.html #man page mkdir -p %{buildroot}%{_mandir}/man6 bzcat %{SOURCE30} > %{buildroot}%{_mandir}/man6/crafty.6 %files %defattr (-,root,root) %{_gamesbindir}/* %{_gamesdatadir}/%{name}/* %{_gamesdatadir}/%{name}/doc/* %{_mandir}/man?/* -------------- $ LC_ALL="C" rpmbuild -ba crafty.spec Executing(%prep): /bin/sh -e /home/kamil/rpm/tmp/rpm-tmp.SesDPf + umask 022 + cd /home/kamil/rpm/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/kamil/rpm/BUILD + rm -rf crafty-23.4 + /usr/bin/unzip -qq /home/kamil/rpm/SOURCES/crafty-23.4.zip + STATUS=0 + '[' 0 -ne 0 ']' + cd crafty-23.4 + echo 'Patch #0 (crafty-23.4-numa_fix.patch):' Patch #0 (crafty-23.4-numa_fix.patch): + /usr/bin/patch -U -s -p1 -b --suffix .numa --fuzz=0 -i /home/kamil/rpm/SOURCES/crafty-23.4-numa_fix.patch + echo 'Patch #1 (crafty-23.4-bookpath.patch):' Patch #1 (crafty-23.4-bookpath.patch): + /usr/bin/patch -U -s -p1 -b --suffix .numa --fuzz=0 -i /home/kamil/rpm/SOURCES/crafty-23.4-bookpath.patch + exit 0 Executing(%build): /bin/sh -e /home/kamil/rpm/tmp/rpm-tmp.3qpv6J + umask 022 + cd /home/kamil/rpm/BUILD + cd crafty-23.4 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + make -j2 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4' linux-amd64 make target=LINUX \ CC=gcc CXX=g++ \ CFLAGS='-Wall -pipe -fbranch-probabilities -fomit-frame-pointer -O3 -march=k8' \ CXFLAGS='' \ LDFLAGS=' -lpthread -lnuma -lstdc++' \ opt=' -DINLINE64 -DCPUS=8 -DNUMA -DLIBNUMA' \ crafty-make make[1]: Wejście do katalogu `/home/kamil/rpm/BUILD/crafty-23.4' make[2]: Wejście do katalogu `/home/kamil/rpm/BUILD/crafty-23.4' gcc -Wall -pipe -fbranch-probabilities -fomit-frame-pointer -O3 -march=k8 -DINLINE64 -DCPUS=8 -DNUMA -DLIBNUMA -DLINUX -c crafty.c g++ -c -DINLINE64 -DCPUS=8 -DNUMA -DLIBNUMA -DLINUX egtb.cpp In file included from crafty.c:27:0: utility.c: In function ‘DisplayPV’: utility.c:715:34: warning: unused variable ‘dummy’ utility.c:715:31: warning: unused variable ‘j’ utility.c: In function ‘Kibitz’: utility.c:2392:13: warning: format ‘%6llu’ expects type ‘long long unsigned int’, but argument 5 has type ‘BITBOARD’ utility.c:2395:13: warning: format ‘%6llu’ expects type ‘long long unsigned int’, but argument 5 has type ‘BITBOARD’ utility.c: In function ‘Trace’: utility.c:2486:9: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 3 has type ‘BITBOARD’ In file included from crafty.c:41:0: interupt.c: In function ‘Interrupt’: interupt.c:75:11: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 2 has type ‘BITBOARD’ interupt.c:87:11: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 2 has type ‘BITBOARD’ In file included from crafty.c:45:0: option.c: In function ‘Option’: option.c:1820:5: warning: format ‘%lld’ expects type ‘long long int’, but argument 3 has type ‘size_t’ option.c:1823:7: warning: format ‘%lld’ expects type ‘long long int’, but argument 3 has type ‘size_t’ option.c:2415:5: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 2 has type ‘BITBOARD’ option.c: In function ‘OptionPerft’: option.c:4010:15: warning: unused variable ‘line’ crafty.c: In function ‘LockX86’: crafty.c:53:0: note: file /home/kamil/rpm/BUILD/crafty-23.4/crafty.gcda not found, execution counts estimated gcc -lpthread -lnuma -lstdc++ -o crafty crafty.o egtb.o -lm make[2]: Opuszczenie katalogu `/home/kamil/rpm/BUILD/crafty-23.4' make[1]: Opuszczenie katalogu `/home/kamil/rpm/BUILD/crafty-23.4' + exit 0 Executing(%install): /bin/sh -e /home/kamil/rpm/tmp/rpm-tmp.hUkpxD + umask 022 + cd /home/kamil/rpm/BUILD + cd crafty-23.4 + '[' 1 -eq 1 ']' + rm -rf /home/kamil/rpm/BUILDROOT/crafty-23.4-1.mga1.x86_64 + mkdir -p /home/kamil/rpm/BUILDROOT/crafty-23.4-1.mga1.x86_64/usr/games + install -m 755 crafty /home/kamil/rpm/BUILDROOT/crafty-23.4-1.mga1.x86_64//usr/games + mkdir -p /home/kamil/rpm/BUILDROOT/crafty-23.4-1.mga1.x86_64/usr/share/games/crafty + bzcat /home/kamil/rpm/SOURCES/book.bin.bz2 + bzcat /home/kamil/rpm/SOURCES/books.bin.bz2 + bzcat /home/kamil/rpm/SOURCES/bookc.bin.bz2 + mkdir -p /home/kamil/rpm/BUILDROOT/crafty-23.4-1.mga1.x86_64/usr/share/games/crafty/doc + install -D -m 644 crafty.hlp /home/kamil/rpm/BUILDROOT/crafty-23.4-1.mga1.x86_64/usr/share/games/crafty/doc + bzcat /home/kamil/rpm/SOURCES/crafty.doc.ascii.bz2 + bzcat /home/kamil/rpm/SOURCES/crafty.doc.ps.bz2 + bzcat /home/kamil/rpm/SOURCES/tournament.howto.bz2 + bzcat /home/kamil/rpm/SOURCES/craftydoc.html.bz2 + mkdir -p /home/kamil/rpm/BUILDROOT/crafty-23.4-1.mga1.x86_64/usr/share/man/man6 + bzcat /home/kamil/rpm/SOURCES/crafty.man.bz2 + /usr/lib/rpm/mageia/find-debuginfo.sh /home/kamil/rpm/BUILD/crafty-23.4 extracting debug info from /home/kamil/rpm/BUILDROOT/crafty-23.4-1.mga1.x86_64/usr/games/crafty *** WARNING: No build ID note found in /home/kamil/rpm/BUILDROOT/crafty-23.4-1.mga1.x86_64/usr/games/crafty cpio: /home/iurt/rpm/BUILD/glibc-2.12.1/csu: Wywołanie stat nie powiodło się: Nie ma takiego pliku ani katalogu 0 bloków + '[' -n '' ']' + /usr/share/spec-helper/clean_files + '[' -n '' ']' + /usr/share/spec-helper/compress_files .xz + '[' -n '' ']' + /usr/share/spec-helper/relink_symlinks + '[' -n '' ']' + /usr/share/spec-helper/clean_perl + '[' -n '' ']' + /usr/share/spec-helper/lib_symlinks + '[' -n '' ']' + /usr/share/spec-helper/gprintify + '[' -n '' ']' + /usr/share/spec-helper/fix_mo + '[' -n '' ']' + /usr/share/spec-helper/translate_menu + '[' -n '' ']' + /usr/share/spec-helper/fix_pamd + '[' -n '' ']' + /usr/share/spec-helper/remove_info_dir + '[' -n '' ']' + /usr/share/spec-helper/fix_eol + '[' -n '' ']' + /usr/share/spec-helper/check_elf_files Warning: unused libraries in /usr/games/crafty: libstdc++.so.6 libm.so.6 Processing files: crafty-23.4-1.mga1.x86_64 warning: File listed twice: /usr/share/games/crafty/doc/crafty.doc.ascii warning: File listed twice: /usr/share/games/crafty/doc/crafty.doc.ps warning: File listed twice: /usr/share/games/crafty/doc/crafty.hlp warning: File listed twice: /usr/share/games/crafty/doc/craftydoc.html warning: File listed twice: /usr/share/games/crafty/doc/tournament.howto Finding Provides: /usr/lib/rpm/mageia/filter.sh ' ' ' ' '/home/kamil/rpm/BUILDROOT/crafty-23.4-1.mga1.x86_64' /usr/lib/rpm/mageia/find-provides Finding Requires: /usr/lib/rpm/mageia/filter.sh ' ' ' ' '/home/kamil/rpm/BUILDROOT/crafty-23.4-1.mga1.x86_64' /usr/lib/rpm/mageia/find-requires /home/kamil/rpm/BUILDROOT/crafty-23.4-1.mga1.x86_64 x86_64 Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.7)(64bit) libm.so.6()(64bit) libnuma.so.1()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libstdc++.so.6()(64bit) rtld(GNU_HASH) Processing files: crafty-debug-23.4-1.mga1.x86_64 Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/kamil/rpm/BUILDROOT/crafty-23.4-1.mga1.x86_64 Wrote: /home/kamil/rpm/SRPMS/crafty-23.4-1.mga1.src.rpm Wrote: /home/kamil/rpm/RPMS/x86_64/crafty-23.4-1.mga1.x86_64.rpm Wrote: /home/kamil/rpm/RPMS/x86_64/crafty-debug-23.4-1.mga1.x86_64.rpm Executing(%clean): /bin/sh -e /home/kamil/rpm/tmp/rpm-tmp.UPA4FE + umask 022 + cd /home/kamil/rpm/BUILD + cd crafty-23.4 + /bin/rm -rf /home/kamil/rpm/BUILDROOT/crafty-23.4-1.mga1.x86_64 + exit 0