1 Summary: An X Window System graphical chessboard
7 Source0: ftp://ftp.gnu.org/pub/gnu/%{name}-%{version}.tar.gz
8 Patch0: xboard-header.patch
9 Patch1: xboard-4.0.0-xref.patch
11 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13 %define _prefix /usr/X11R6
14 %define _mandir /usr/X11R6/man
17 Xboard is an X Window System based graphical chessboard which can be
18 used with the GNUchess and Crafty chess programs, with Internet Chess
19 Servers (ICSs), with chess via email, or with your own saved games.
21 Install the xboard package if you need a graphical chessboard.
30 %{__make} infodir=%{_infodir}
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{_sysconfdir}/X11/wmconfig
36 %{__make} install prefix=$RPM_BUILD_ROOT%{_prefix} \
37 bindir=$RPM_BUILD_ROOT%{_bindir} \
38 man6dir=$RPM_BUILD_ROOT%{_mandir}/man6 \
39 infodir=$RPM_BUILD_ROOT%{_infodir}
41 strip --strip-unneeded $RPM_BUILD_ROOT%{_bindir}/* || :
43 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man6/* \
44 $RPM_BUILD_ROOT%{_infodir}/*
46 cat > $RPM_BUILD_ROOT%{_sysconfdir}/X11/wmconfig/xboard <<EOF
48 xboard description "Chess"
49 xboard group Games/Strategy
50 xboard exec "xboard &"
54 rm -rf $RPM_BUILD_ROOT
57 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
60 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
63 %defattr(644,root,root,755)
64 %config %{_sysconfdir}/X11/wmconfig/xboard
65 %attr(755,root,root) %{_bindir}/xboard
66 %attr(755,root,root) %{_bindir}/zic2xpm
67 %attr(755,root,root) %{_bindir}/cmail
68 %attr(755,root,root) %{_bindir}/pxboard
69 %{_mandir}/man6/xboard.6.gz
70 %{_mandir}/man6/zic2xpm.6.gz
71 %{_mandir}/man6/cmail.6.gz
72 %{_infodir}/xboard.info.gz