Projects
Games
crafty
crafty.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File crafty.spec of Package crafty
# # spec file for package crafty # # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # norootforbuild Name: crafty Summary: A Chess Program Version: 23.4 Release: 1 Url: http://www.craftychess.com/ License: Contact author Group: Amusements/Games/Board/Chess Provides: chess_backend BuildRequires: gcc-c++ unzip Source: %{name}-%{version}.zip Source1: crafty-misc.tar.bz2 Source2: bitmaps.tar.bz2 Source100: %{name}.changes Patch0: %{name}-%{version}-security-203541.patch Patch1: %{name}-%{version}-Makefile.patch Patch2: %{name}-%{version}-paths.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description A strong playing chess program. It uses opening books and endgame databases. The graphical interface (xcrafty) requires the xboard package. Authors: -------- Bob Hyatt <hyatt@cis.uab.edu> %prep %setup -q %setup -q -T -D -a 1 -a 2 %patch0 -p0 %patch1 -p0 %patch2 -p0 mkdir .crafty touch .craftyrc .crafty/book.bin .crafty/books.bin chmod 755 bitmaps chmod 644 bitmaps/* rm bitmaps/gifs.tar %build %ifarch x86_64 make CFLAGS="%{optflags}" linux-amd64 %else make CFLAGS="%{optflags}" linux %endif /bin/sh make_books # large_book.bin is incompatible with newer versions of crafty # use newest book.bin (available from ftp://ftp.cis.uab.edu/pub/hyatt/book/) instead mv book.bin20090324 book.bin %install install -Dm 755 crafty $RPM_BUILD_ROOT/usr/bin/crafty install -m 755 xcrafty $RPM_BUILD_ROOT/usr/bin install -m 755 speak $RPM_BUILD_ROOT/usr/bin/crafty-speak install -Dm 644 crafty.6 $RPM_BUILD_ROOT%{_mandir}/man6/crafty.6 ln -s crafty.6.gz $RPM_BUILD_ROOT%{_mandir}/man6/xcrafty.6.gz install -d -m 755 $RPM_BUILD_ROOT/usr/share/crafty/tb install -d -m 755 $RPM_BUILD_ROOT/usr/share/crafty/bitmaps install -d -m 755 $RPM_BUILD_ROOT/usr/share/crafty/sound install -m 644 smallbook.bin book.bin bookc.bin books.bin crafty.hlp $RPM_BUILD_ROOT/usr/share/crafty install -m 644 tb/k[bnpqr]k.nb[bw].emd $RPM_BUILD_ROOT/usr/share/crafty/tb install -m 644 bitmaps/* $RPM_BUILD_ROOT/usr/share/crafty/bitmaps install -Dm 644 %{name}.rc $RPM_BUILD_ROOT/etc/%{name}.rc %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc doc/crafty.doc %doc doc/crafty.faq %doc doc/read.me %doc doc/tournament.howto %doc README.SuSE %{_bindir}/crafty %{_bindir}/xcrafty %{_bindir}/crafty-speak %{_mandir}/man6/crafty.6.gz %{_mandir}/man6/xcrafty.6.gz %{_datadir}/crafty %config(noreplace) %{_sysconfdir}/%{name}.rc %changelog
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.