453a91e
Name:           xaos
49072ea
Version:        3.5
10ee80e
Release:        2%{?dist}
453a91e
Summary:        A fast, portable real-time interactive fractal zoomer
453a91e
453a91e
Group:          Applications/Multimedia
f146443
License:        GPLv2+
453a91e
URL:            http://xaos.sourceforge.net
49072ea
Source0:        http://surfnet.dl.sourceforge.net/sourceforge/xaos/xaos-%{version}.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
171ea20
BuildRequires:  gsl-devel
26438e2
BuildRequires:  gtk2-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
aef5381
BuildRequires:	dvipdfm
453a91e
BuildRequires:	texinfo
453a91e
BuildRequires:	texinfo-tex
453a91e
BuildRequires:  desktop-file-utils
651013f
BuildRequires:	gettext
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
49072ea
%setup0 -q 
9bd8e07
# disable stripping binaries when installing
9bd8e07
sed -i 's| -s | |' Makefile.in
453a91e
453a91e
%build
49072ea
%ifarch %ix86 x86_64
49072ea
%define long_double --with-long-double
49072ea
%endif
49072ea
%configure \
49072ea
    --with-gsl=yes \
49072ea
    --with-sffe=yes \
49072ea
    --with-png=yes \
49072ea
    --with-gtk-driver=yes \
49072ea
    --with-aa-driver=yes \
49072ea
    --with-pthread=yes \
49072ea
    %{long_double}
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
26438e2
Exec=xaos -driver "GTK+ Driver"
aef5381
Icon=xaos
453a91e
Terminal=false
453a91e
Type=Application
aef5381
Categories=Application;Education;Math;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
        --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
26438e2
find $RPM_BUILD_ROOT%{_prefix} -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,-)
49072ea
%doc README COPYING TODO ChangeLog NEWS
49072ea
%doc AUTHORS doc/xaos.pdf
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
10ee80e
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5-2
10ee80e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
10ee80e
49072ea
* Sat Jul 25 2009 Gerard Milmeister <gemi@bluewin.ch> - 3.5-1
49072ea
- new release 3.5
49072ea
- Enable long double on ix86 and x86_64 architectures.
49072ea
- Enable i386 inline assembly on ix86.
49072ea
- Enable threads on all architectures
49072ea
4eaac06
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-3
4eaac06
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
4eaac06
26438e2
* Wed Aug 20 2008 Gerard Milmeister <gemi@bluewin.ch> - 3.4-2
26438e2
- enabled GTK driver
26438e2
171ea20
* Wed Aug 20 2008 Gerard Milmeister <gemi@bluewin.ch> - 3.4-1
171ea20
- new release 3.4
171ea20
f146443
* Tue Aug 12 2008 Jason L Tibbitts III <tibbs@math.uh.edu> - 3.2.3-5
f146443
- Fix license tag.
f146443
aef5381
* Fri Feb 22 2008 Gerard Milmeister <gemi@bluewin.ch> - 3.2.3-3
aef5381
- added BR dvipdfm
aef5381
186f7ef
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.2.3-2
186f7ef
- Autorebuild for GCC 4.3
186f7ef
8b5227e
* Sat Dec  2 2006 Gerard Milmeister <gemi@bluewin.ch> - 3.2.3-1
8b5227e
- new version 3.2.3
8b5227e
ff68fc8
* Sun Nov  5 2006 Gerard Milmeister <gemi@bluewin.ch> - 3.2.2-1
ff68fc8
- new version 3.2.2
ff68fc8
651013f
* Mon Aug 28 2006 Gerard Milmeister <gemi@bluewin.ch> - 3.2.1-4
651013f
- Rebuild for FE6
651013f
- added BR: gettext
651013f
9bd8e07
* Sat Jun 10 2006 Gerard Milmeister <gemi@bluewin.ch> - 3.2.1-3
9bd8e07
- disabled stripping of binaries
9bd8e07
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