File xmountains.spec of Package xmountains

#
# spec file for package xmountains (Version 2.7)
#
# Copyright (c) 2006 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:           xmountains
BuildRequires:  xorg-x11 xorg-x11-devel
License:        X11/MIT
Group:          Amusements/Toys/Background
Provides:       xmountns
Obsoletes:      xmountns
Autoreqprov:    on
Version:        2.7
Release:        14
Summary:        Fractal landscape in the background
URL:            http://www.epcc.ed.ac.uk/~spb/xmountains/
Source:         %{name}-%{version}.tar.bz2
Patch:          %{name}-%{version}-getopt.patch
Patch1:         %{name}-%{version}-include.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
Xmountains is a fractal terrain generator written by Stephen Booth. It
can be configured to calculate new 'mountains' in a certain period of
time.



Authors:
--------
    Stephen Booth <S.Booth@ed.ac.uk>

%prep
%setup
%patch
%patch1

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

%install
make DESTDIR=$RPM_BUILD_ROOT install
make DESTDIR=$RPM_BUILD_ROOT install.man

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
/usr/%{_xorg7bin}/xmountains
%doc %{_xorg7_mandir}/man1/xmountains.1*
%doc README copyright.h

%changelog -n xmountains
* Fri Jul 28 2006 - lmichnovic@suse.cz
- builds also with new X.org 7.x, detecting prefix in X.org
- building with icecream
* Mon May 22 2006 - schwab@suse.de
- Don't strip binaries.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 06 2006 - lmichnovic@suse.cz
- upgrade to version 2.7
  program should work with Xscreensaver or virtual window managers.
- added missing includes (include.patch)
* Wed Sep 28 2005 - dmueller@suse.de
- add norootforbuild
* Tue Nov 12 2002 - postadal@suse.cz
- changed neededforbuild xf86 to x-devel-packages and XFree86
* Mon Apr 23 2001 - vinil@suse.cz
- upgrade to 2.6
- patch cleaned up
* Wed Nov 22 2000 - vinil@suse.cz
- upgrade to 2.5
- rename from xmountns to xmountains
- patch fixed for 2.5
* Fri Apr 21 2000 - vinil@suse.cz
- spec file cleanup
- buildroot added
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Mon Apr 12 1999 - ro@suse.de
- redamed fdim to ffdim (conflicts with glibc-2.1 function)
* Mon Oct 05 1998 - ro@suse.de
- renamed "personal" getopt to my_getopt
* Fri Mar 07 1997 - choeger@suse.de
- created new package, v2.4
openSUSE Build Service is sponsored by