File xaos.spec of Package xaos

#
# spec file for package xaos (Version 3.1)
#
# Copyright (c) 2009 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:           xaos
BuildRequires:  aalib-devel libpng-devel update-desktop-files xorg-x11 xorg-x11-devel
License:        GPL v2 or later
Group:          Amusements/Toys/Graphics
Provides:       XaoS 
AutoReqProv:    on
Version:        3.1
Release:        379
Summary:        Powerful fractal generator
Url:            http://xaos.sourceforge.net
Source:         XaoS-%{version}.tar.bz2
Source1:        %name.desktop
Source2:        xaos.sh
Source3:        %name.png
Patch:          XaoS-%{version}-destdir.patch
Patch1:         XaoS-%{version}-regparm.patch
Patch2:         XaoS-%{version}-gcc4.patch
Patch3:         XaoS-%{version}-strip.patch
Patch4:         XaoS-%{version}-implicit.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
PreReq:         %install_info_prereq

%description
XaoS is a fast portable real-time interactive fractal zoomer. It
displays the Mandelbrot set (among other escape time fractals) and
allows you to zoom smoothly into the fractal.  Various coloring modes
are provided for both the points inside and outside the selected set.
In addition, switching between Julia and Mandelbrot fractal types and
displaying planes is provided.



Authors:
--------
    Jan Hubicka <hubicka@paru.cas.cz>
    Thomas Marsh <tmarsh@austin.ibm.com>

%prep
%setup -q -n XaoS-%{version}
%patch
%patch1
%patch2
%patch3
%patch4

%build
%{?suse_update_config:%{suse_update_config -f}}
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --datadir=%{_defaultdocdir}/xaos \
                --with-svga-driver=no \
                --mandir=%{_mandir} \
                --infodir=%{_infodir}
make

%install
mkdir -p $RPM_BUILD_ROOT/%{_infodir}
make DESTDIR=$RPM_BUILD_ROOT install
mv $RPM_BUILD_ROOT/usr/bin/xaos $RPM_BUILD_ROOT/usr/bin/xaos.bin
install -m 755 %{S:2} $RPM_BUILD_ROOT/usr/bin/xaos
chmod 755 $RPM_BUILD_ROOT/usr/bin/xaos
chmod 755 $RPM_BUILD_ROOT/usr/bin/xaos.bin
DOCDIR=$RPM_BUILD_ROOT%{_defaultdocdir}/xaos
cp COPYING ChangeLog README RELEASE_NOTES TODO $DOCDIR
%suse_update_desktop_file -i %name Edutainment Math
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
cp %{SOURCE3} $RPM_BUILD_ROOT/usr/share/pixmaps
%find_lang %{name}

%clean
rm -rf "$RPM_BUILD_ROOT"

%files -f %{name}.lang
%defattr(-,root,root)
%{_defaultdocdir}/xaos
/usr/bin/xaos
/usr/bin/xaos.bin
%doc %{_infodir}/xaos.info.gz
%doc %{_mandir}/man6/xaos.6.gz
/usr/share/applications/%name.desktop
/usr/share/pixmaps/%name.png

%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%changelog
* Tue Feb 26 2008 crrodriguez@suse.de
- use find_lang macro
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Jan 21 2006 schwab@suse.de
- Fix last change.
* Mon Jan 16 2006 schwab@suse.de
- Don't strip binaries.
- Fix missing declarations.
* Mon Aug 22 2005 nadvornik@suse.cz
- added icon [#106118]
* Thu Apr 14 2005 nadvornik@suse.cz
- fixed to compile with gcc4
* Fri Apr 01 2005 nadvornik@suse.cz
- removed unused header file with problematic license [75433]
* Tue Mar 30 2004 nadvornik@suse.cz
- added wrapper script to run it with ISO-8859-X locales as it does not
  work with UTF-8
* Fri Feb 27 2004 ro@suse.de
- fix build with regparm changes
* Tue Feb 17 2004 nadvornik@suse.cz
- added desktop file
- built as user
* Tue Jul 29 2003 nadvornik@suse.cz
- updated to 3.1
* Thu Apr 24 2003 ro@suse.de
- fix install_info --delete call and move from preun to postun
* Tue Feb 11 2003 nadvornik@suse.cz
- added install_info macros
* Fri Feb 01 2002 ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Mon Nov 12 2001 ro@suse.de
- no svgalib
* Fri May 18 2001 nadvornik@suse.cz
- fixed cast warnings and include files for ia64
* Mon Dec 11 2000 ro@suse.de
- changed neededforbuild <aalibdev> to <aalib-devel>
* Mon Oct 09 2000 nadvornik@suse.cz
- removed suid bit, used %%doc for man and info, used RPM_OPT_FLAGS
* Mon Oct 09 2000 nadvornik@suse.cz
- fixed Copyright
- used bzip2
* Mon Sep 04 2000 schwab@suse.de
- Add %%suse_update_config.
* Thu May 18 2000 nadvornik@suse.cz
- used %%{_defaultdocdir}
- fixed filelist
- changed Group tag
* Tue Apr 11 2000 nadvornik@suse.cz
- added URL
* Thu Mar 23 2000 nadvornik@suse.cz
- added BuildRoot
- added source url
* Tue Feb 01 2000 ro@suse.de
- man,info to usr/share
* Tue Feb 01 2000 fehr@suse.de
- change for new gcc 2.95.2
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Thu Sep 09 1999 uli@suse.de
- disabled svgalib driver for PPC
* Wed Mar 17 1999 uli@suse.de
- update 2.2 -> 3.0
- enabled svgalib/aalib drivers
* Tue Oct 07 1997 fehr@suse.de
- now works with (a)build
* Wed May 14 1997 fehr@suse.de
- added version 2.2 to distribution