File xquarto.spec of Package xquarto
#
# spec file for package xquarto (Version 2.5)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: xquarto
BuildRequires: xorg-x11 xorg-x11-devel
License: GPL v2 or later
Group: Amusements/Games/Board/Puzzle
AutoReqProv: on
Version: 2.5
Release: 686
Source: xquarto-2.5.tar.bz2
Patch: xquarto-2.5-imake_font.patch
Url: ftp://ftp.ac-grenoble.fr/ge/educational_games/xquarto-2.5.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Xquarto is a board game designed for the X windows environment
%if "%(xft-config --prefix)" == "/usr"
%define _xorg7libs %_lib
%define _xorg7libs32 lib
%define _xorg7bin bin
%define _xorg7_mandir %_mandir
%define _xorg7pixmaps include
%define _xorg7libshare share
%define _xorg7_xkb /usr/share/X11/xkb
%define _xorg7_termcap /usr/lib/X11/etc
%define _xorg7_serverincl /usr/include/xorg
%define _xorg7_fonts /usr/share/fonts
#%define _xorg7_config /usr/share/X11/config #use libshare macro
%define _xorg7_prefix /usr
%else
%define _xorg7libs X11R6/%_lib
%define _xorg7libs32 X11R6/lib
%define _xorg7bin X11R6/bin
%define _xorg7_mandir /usr/X11R6/man
%define _xorg7pixmaps X11R6/include
%define _xorg7libshare X11R6/lib/
%define _xorg7_xkb /etc/X11/xkb
%define _xorg7_termcap /usr/X11R6/lib/X11/etc
%define _xorg7_serverincl /usr/X11R6/lib/Server/include
%define _xorg7_fonts /usr/X11R6/lib/X11/fonts
#%define _xorg7_config /usr/X11R6/lib/X11/config #use libshare macro
%define _xorg7_prefix /usr/X11R6
%endif
%description
The game is a two-player game. Player 1 chooses one of the 16 pieces.
Player 2 then places this piece on one of the 16 squares of the board
and chooses a piece out of the remaining 15 pieces which he gives to
player 1, who places this piece on one of the remaining 15 squares on
the board, etc...
Xquarto supports three different player combinations: human vs
computer, computer vs human and human vs human (possibly through the
local network in the latter case). The default combination is human vs
computer, i.e. the human player starts the game against the computer.
This can be changed by clicking on the "Actions" menu (see below for
more details).
Authors:
--------
Jean-Pierre Demailly
Jean-Mattias Jonsson
%prep
%setup
%patch
%build
xmkmf -a
make %{?jobs:-j%jobs} CCOPTIONS="$RPM_OPT_FLAGS"
%install
make DESTDIR=$RPM_BUILD_ROOT install
make DESTDIR=$RPM_BUILD_ROOT install.man
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%files
%defattr(-, root, root)
%{_prefix}/games/xquarto
%doc %{_xorg7_mandir}/man1/xquarto.1x.gz
%changelog
* Thu Oct 04 2007 - bg@suse.de
- don't use hpux environment
* Tue Aug 08 2006 - lmichnovic@suse.cz
- compiling with RPM_OPT_FLAGS
- patch renamed to xquarto-2.5-imake_font.patch
* Fri Jul 28 2006 - lmichnovic@suse.cz
- builds also with new X.org 7.x, detecting prefix in X.org
- building with icecream
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Nov 02 2005 - dmueller@suse.de
- don't build as root
* Thu Oct 31 2002 - ro@suse.de
- fix build on alpha
* Thu Feb 07 2002 - tcrhak@suse.cz
- fix buildroot
* Fri Jan 11 2002 - ro@suse.de
- no subdirs in /usr/games
* Fri Oct 26 2001 - tcrhak@suse.cz
- New package: initial version 2.5