File xmemory.spec of Package xmemory

#
# spec file for package xmemory (Version 3.7)
#
# 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:           xmemory
URL:            ftp://ftp.x.org/contrib/games/multiplayer/
BuildRequires:  gcc-c++ xorg-x11 xorg-x11-devel
License:        Any permissive
Group:          Amusements/Games/Board/Other
Requires:       xorg-x11-fonts-scalable
Autoreqprov:    on
Version:        3.7
Release:        951
Summary:        Memory Game
Source:         xmemory-%{version}.tar.bz2
Patch:          xmemory-%{version}.dif
Patch1:         %{name}-%{version}_default-font.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%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
This memory game is playable by many users on different X11 displays
simultaneously.



Authors:
--------
    Helmut Hoenig <Helmut.Hoenig@hub.de>

%prep
%setup
%patch
%patch1

%build
xmkmf -a
make %{?jobs:-j%jobs} xmemory

%install
make DESTDIR="$RPM_BUILD_ROOT" install
make DESTDIR="$RPM_BUILD_ROOT" MANDIR=%{_xorg7_mandir}/man6/ MANSUFFIX=6 install.man 
install -m 755 -d $RPM_BUILD_ROOT/usr/share/games/xmemory
cp -av *.mem $RPM_BUILD_ROOT/usr/share/games/xmemory

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README COPYRIGHT
/usr/%{_xorg7bin}/*
/usr/share/games/xmemory/
%doc %{_xorg7_mandir}/man6/*

%changelog
* Mon Jun 11 2007 - pgajdos@suse.cz
- changed default font to working one
  * default-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 Oct 13 2004 - ro@suse.de
- updated requires
* Sun Jan 11 2004 - adrian@suse.de
- add %%defattr
* Tue Sep 17 2002 - ro@suse.de
- removed bogus self-provides
* Tue Oct 30 2001 - ro@suse.de
- use g++ to compile
- bzip source
* Wed Feb 07 2001 - uli@suse.de
- fixed for glibc 2.2.1
* Thu May 25 2000 - vinil@suse.cz
- sorted in group
- shareable files relocated to /usr/share/games/xmemory
* Fri Mar 24 2000 - vinil@suse.cz
- BuildRoot added
* Fri Jan 28 2000 - fehr@suse.de
- fix for new gcc 2.95
* Wed Jan 12 2000 - fehr@suse.de
- changed to new version 3.7
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.