File xarchon.spec of Package xarchon

#
# spec file for package xarchon (Version 0.50)
#
# 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:           xarchon
BuildRequires:  esound-devel fdupes gcc-c++ gtk-devel update-desktop-files
License:        GPL v2 or later
Group:          Amusements/Games/Action/Arcade
Summary:        ARCHON clone for X11
Version:        0.50
Release:        1138
Url:            http://xarchon.seul.org
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}.desktop
Patch:          %{name}-%{version}.diff
Patch1:         %{name}-%{version}-implicit.diff
Patch2:         %{name}-%{version}-extra-qual.diff
Patch3:         %{name}-%{version}_missing-includes.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
X ARCHON, as the name implies, is a clone of the original (about
15-years old) ARCHON game. In this game, the Light Side and Dark Side
fight over control of a chess-like board. Each side is composed of 18
fantastic creatures of myth and legend, which are represented by images
(or icons). While not identical, the opposing sides are balanced in
strength.



Authors:
--------
    Ronen Tzur <rtzur@shani.net>

%prep
%setup -q -n xarchon-0.50
%patch
%patch1
%patch2
%patch3

%build
%{suse_update_config -f}
autoreconf -f -i
./configure \
    --prefix=%_prefix \
    --bindir=%_prefix/games \
    --mandir=%_mandir \
    --datadir=%_datadir \
    CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG" \
    CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
make

%install
make DESTDIR=$RPM_BUILD_ROOT install
%suse_update_desktop_file -i %name Game ArcadeGame
%fdupes -s $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog NEWS README
%doc %_mandir/man6/xarchon.6*
%_datadir/applications/*
%_prefix/games/xarchon
%_datadir/xarchon/
%changelog
* Tue Oct 16 2007 - pgajdos@suse.cz
- fixed build with new gcc -- added missing includes
  * missing-includes.patch
* Tue Jun 05 2007 - pgajdos@suse.cz
- using fdupes
* Tue Nov 07 2006 - meissner@suse.de
- also pass CFLAGS=RPM_OPT_FLAGS
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Oct 19 2005 - anicka@suse.cz
- delete extra qualification
* Mon Jul 11 2005 - anicka@suse.cz
- fix implicit prototypes
* Fri Apr 15 2005 - mcihar@suse.cz
- fix compilation
* Thu Apr 14 2005 - sbrabec@suse.cz
- Added audiofile-devel to neededforbuild.
* Sat Jan 10 2004 - adrian@suse.de
- build as user
* Tue Sep 09 2003 - mcihar@suse.cz
- move from /usr/X11R6 to /usr and /usr/games
- compile with esd support
* Fri Aug 15 2003 - adrian@suse.de
- add desktop file
* Fri Sep 27 2002 - ro@suse.de
- Added alsa alsa-devel to neededforbuild (esound)
* Thu Apr 25 2002 - prehak@suse.cz
- fixed to use fonts available in distribution [#15766]
* Wed Apr 03 2002 - ro@suse.de
- fixed for new automake/autoconf
* Fri Nov 03 2000 - uli@suse.de
- fixed neededforbuild, Group
* Fri May 05 2000 - vinil@suse.cz
- buildroot added
* Thu Feb 17 2000 - grimmer@suse.de
- use version macro
* Fri Dec 10 1999 - grimmer@suse.de
- Update to 0.50
* Fri Dec 03 1999 - grimmer@suse.de
- Spec file created from xarchon-0.45.tar.gz by autospec
- Adjusted spec file
openSUSE Build Service is sponsored by