File xboard.spec of Package xboard
#
# spec file for package xboard (Version 4.2.7)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: xboard
BuildRequires: texlive-latex update-desktop-files xorg-x11-devel
BuildRequires: flex
License: LGPL v2.1 or later
Group: Amusements/Games/Board/Chess
Requires: gnuchess
Recommends: chess_backend
Version: 4.2.7
Release: 284
Summary: X Window System Interface for GNU Chess
Source: %{name}-%{version}.tar.bz2
Source1: %{name}.desktop
Source2: %{name}.png
Patch: %{name}-%{version}-infodir.patch
Patch1: %{name}-%{version}-flex.patch
Patch2: %{name}-%{version}-strip.patch
Url: http://www.tim-mann.org/xboard.html
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %install_info_prereq
%description
Xboard is a GUI interface for GNU Chess.
Authors:
--------
Tim Mann <mann@src.dec.com>
Chris Sears
Dan Sears
Elmar Bartel <bartel@@informatik.tu-muenchen.de>
%prep
%setup -q
%patch -p1
%patch1
%patch2
%build
%{suse_update_config -f .}
%configure
make %{?jobs:-j%jobs}
%install
make\
bindir=$RPM_BUILD_ROOT%{_bindir}\
man6dir=$RPM_BUILD_ROOT%{_mandir}/man6\
infodir=$RPM_BUILD_ROOT/%{_infodir}\
install
mkdir html
cp *.html html
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps/
install -m 644 $RPM_SOURCE_DIR/%{name}.png $RPM_BUILD_ROOT%{_datadir}/pixmaps
%suse_update_desktop_file -i %{name} Game BoardGame
%clean
rm -rf $RPM_BUILD_ROOT
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%files
%defattr(-,root,root)
%doc FAQ READ_ME ToDo COPYRIGHT html
%{_bindir}/*
%doc %{_mandir}/man6/*.*
%doc %{_infodir}/xboard.info*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog
* Wed Sep 10 2008 sbrabec@suse.cz
- Change default back from crafty to gnuchess (bnc#299579).
- Require default backend unconditionally - xboard rejects to start
giving no chance to change it.
* Mon Apr 23 2007 ro@suse.de
- use texlive for building
* Fri Mar 30 2007 dmueller@suse.de
- update BuildRequires
* Fri May 26 2006 schwab@suse.de
- Don't strip binaries.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Dec 06 2005 mmarek@suse.cz
- fix parser.l to work with new flex
- mention flex in nfb
* Sun Feb 29 2004 meissner@suse.de
- cleaned up optflags (make them actually work), update config.guess
so it builds on ppc64.
* Mon Feb 09 2004 sbrabec@suse.cz
- Updated to version 4.2.7.
- Prefix changed to /usr.
* Sat Jan 10 2004 adrian@suse.de
- add %%defattr
* Sun Sep 07 2003 sndirsch@suse.de
- added desktop icon
* Mon Aug 11 2003 sndirsch@suse.de
- added desktop file
* Thu Apr 24 2003 ro@suse.de
- fix install_info --delete call and move from preun to postun
* Mon Feb 10 2003 sbrabec@suse.cz
- Use %%install_info (bug #23471).
* Mon Feb 10 2003 sbrabec@suse.cz
- Change man page - crafty is default.
- Require check_backend virtual package.
* Tue Feb 04 2003 sndirsch@suse.de
- using crafty instead of gnuchess as chess backend
* Fri Apr 26 2002 prehak@suse.cz
- update on version 4.2.6
- fixed non-updated macro SECOND_CHESS_PROGRAM in xboard.h
* Sun Jan 20 2002 vinil@suse.cz
- update on 4.2.3
- URL added to spec
- xboard.ps included
* Sat Sep 22 2001 sndirsch@suse.de
- RPM Group tag set to Amusements/Games, so it can be found easier
* Mon Aug 06 2001 dan@suse.cz
- patched to run with new gnuchess (5.02)
* Thu Apr 12 2001 ro@suse.de
- removed unsupported -I option from texi2html call
* Thu Feb 22 2001 pblaha@suse.cz
- update on 4.2.3
* Thu Feb 08 2001 pblaha@suse.cz
- update on 4.2.2
* Fri Sep 22 2000 vinil@suse.cz
- update to 4.1.0;
- %%{_infodir} used
* Tue May 02 2000 vinil@suse.cz
- buildroot added
* Wed Jan 26 2000 ro@suse.de
- update to 4.0.5 ; info to /usr/share
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Tue Aug 18 1998 ro@suse.de
- updated to version 4.0.0 / added tool zic2xpm and html-documentation
- html start-page is /usr/doc/packages/xboard/html/xboard_toc.html
* Thu Jul 23 1998 werner@suse.de
Make pxboard more secure ... use mktmep if avaliable
* Thu Oct 09 1997 ro@suse.de
ready for autobuild