453a91e
Name:           xaos
453a91e
Version:        3.2.1
453a91e
Release:        2%{?dist}
453a91e
Summary:        A fast, portable real-time interactive fractal zoomer
453a91e
453a91e
Group:          Applications/Multimedia
453a91e
License:        GPL
453a91e
URL:            http://xaos.sourceforge.net
453a91e
Source0:        http://puzzle.dl.sourceforge.net/sourceforge/xaos/XaoS-3.2.1.tar.gz
453a91e
Source1:	xaos.png
453a91e
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
453a91e
BuildRequires:  slang-devel
453a91e
BuildRequires:	zlib-devel
453a91e
BuildRequires:	libpng-devel
453a91e
BuildRequires:	aalib-devel
453a91e
BuildRequires:  gpm-devel
453a91e
BuildRequires:	ncurses-devel
453a91e
BuildRequires:	libXt-devel
453a91e
BuildRequires:	libX11-devel
453a91e
BuildRequires:	libXext-devel
453a91e
BuildRequires:	libXxf86vm-devel
453a91e
BuildRequires:	libXxf86dga-devel
453a91e
BuildRequires:	tetex
453a91e
BuildRequires:	texinfo
453a91e
BuildRequires:	texinfo-tex
453a91e
BuildRequires:  desktop-file-utils
453a91e
Requires(post):  /sbin/install-info
453a91e
Requires(preun): /sbin/install-info
453a91e
453a91e
453a91e
%description
453a91e
XaoS is a fast, portable real-time interactive fractal zoomer. It
453a91e
displays the Mandelbrot set (among other escape time fractals) and
453a91e
allows you zoom smoothly into the fractal. Various coloring modes are
453a91e
provided for both the points inside and outside the selected set. XaoS
453a91e
supports switching between Julia and Mandelbrot fractal types and
453a91e
on-the-fly plane switching.
453a91e
453a91e
453a91e
%prep
453a91e
%setup0 -q -n XaoS-%{version}
453a91e
453a91e
453a91e
%build
453a91e
%configure
453a91e
make %{?_smp_mflags}
453a91e
453a91e
453a91e
%install
453a91e
rm -rf $RPM_BUILD_ROOT
453a91e
mkdir -p $RPM_BUILD_ROOT%{_infodir}
453a91e
make install DESTDIR=$RPM_BUILD_ROOT
453a91e
pushd doc
453a91e
make xaos.dvi
453a91e
dvipdfm xaos.dvi
453a91e
popd
453a91e
pushd help
453a91e
make html
453a91e
popd
453a91e
453a91e
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
453a91e
cp %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/pixmaps
453a91e
453a91e
cat > xaos.desktop <
453a91e
[Desktop Entry]
453a91e
Name=XaoS
453a91e
Comment=Interactive fractal zoomer
453a91e
Exec=xaos
453a91e
Icon=xaos.png
453a91e
Terminal=false
453a91e
Type=Application
453a91e
Categories=Application;Education;Math;Scientific;Graphics;
453a91e
Encoding=UTF-8
453a91e
X-Desktop-File-Install-Version=0.10
453a91e
EOF
453a91e
453a91e
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
453a91e
desktop-file-install \
453a91e
	--vendor fedora \
453a91e
        --add-category X-Fedora \
453a91e
        --dir $RPM_BUILD_ROOT%{_datadir}/applications \
453a91e
        xaos.desktop
453a91e
453a91e
rm -f $RPM_BUILD_ROOT%{_datadir}/XaoS/catalogs/README
453a91e
rm -fr $RPM_BUILD_ROOT%{_datadir}/XaoS/doc
453a91e
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
453a91e
453a91e
find $RPM_BUILD_ROOT%{_prefix} -print0 -exec chmod u+rw '{}' ';'
453a91e
453a91e
%find_lang %{name}
453a91e
453a91e
453a91e
%clean
453a91e
rm -rf $RPM_BUILD_ROOT
453a91e
453a91e
453a91e
%post
453a91e
/sbin/install-info %{_infodir}/xaos.info %{_infodir}/dir 2>/dev/null || :
453a91e
453a91e
453a91e
%preun
453a91e
if [ $1 = 0 ]; then
453a91e
    /sbin/install-info --delete %{_infodir}/xaos.info %{_infodir}/dir 2>/dev/null || :
453a91e
fi
453a91e
453a91e
453a91e
%files -f %{name}.lang
453a91e
%defattr(-,root,root,-)
453a91e
%doc README RELEASE_NOTES COPYING TODO ChangeLog
453a91e
%doc doc/AUTHORS doc/SPONSORS doc/xaos.pdf doc/PROBLEMS
453a91e
%doc --parents help/*.html help/*.jpg 
453a91e
%{_bindir}/*
453a91e
%{_infodir}/*
453a91e
%{_datadir}/XaoS
453a91e
%{_datadir}/applications/*
453a91e
%{_datadir}/pixmaps/*
453a91e
%{_mandir}/man*/*
453a91e
453a91e
453a91e
%changelog
453a91e
* Tue Jun  6 2006 Gerard Milmeister <gemi@bluewin.ch> - 3.2.1-2
453a91e
- added BuildReq: libXt-devel
453a91e
- fixed permissions
453a91e
- added .desktop file
453a91e
- added icon
453a91e
453a91e
* Sun Jun  4 2006 Gerard Milmeister <gemi@bluewin.ch> - 3.2.1-1
453a91e
- new version 3.2.1
453a91e
453a91e
* Sat Feb  4 2006 Gerard Milmeister <gemi@bluewin.ch> - 3.2-1
453a91e
- new version 3.2
453a91e
453a91e
* Sun Dec 18 2005 Gerard Milmeister <gemi@bluewin.ch> - 3.1.3-1
453a91e
- New Version 3.1.3
453a91e
453a91e
* Thu Mar 31 2005 Gerard Milmeister <gemi@bluewin.ch> - 0:3.1-0.fdr.1
453a91e
- New Version 3.1.2
453a91e
453a91e
* Sun Jul 18 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:3.1-0.fdr.1
453a91e
- First Fedora release