# # Conditional build: # # without_aa - without aalib output support # without_svga - without svga output support # without_ncurses - without ncurses output support Summary: A fast, portable real-time interactive fractal zoomer. Name: XaoS Version: 3.0 Release: 1 License: GPL Group: X11/Applications Group(de): X11/Applikationen Group(pl): X11/Aplikacje URL: http://limax.paru.cas.cz/~hubicka/XaoS/index.html Source0: ftp://sunsite.unc.edu/pub/Linux/X11/xapps/graphics/%{name}-%{version}.tar.gz Source1: %{name}.desktop Patch0: %{name}-nosuid.patch Patch1: %{name}-brokenasm.patch BuildRequires: XFree86-devel BuildRequires: libpng-devel %{!?_without_aa:BuildRequires: aalib-devel} %{!?_without_svga:BuildRequires: svgalib-devel} %{!?_without_ncurses:BuildRequires: ncurses-devel} Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _prefix /usr/X11R6 %define _mandir %{_prefix}/man %description XaoS is a fast portable real-time interactive fractal zoomer. and SVGAlib. It displays the Mandelbrot set (among other escape time fractals) and allows you 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 is provided. The first version was a poorly written Mandelbrot view by Thomas later modified by Jan to support high frame-rate zooming. Other additions were later made including autopilot (for those of you without drivers licenses), palette changing, PNG saving, and fractal inversion. %prep %setup -q %patch0 -p1 %patch1 -p1 %build autoconf %configure \ --with-x \ --with-x11-driver=yes \ %{?_without_aa: --with-aa-driver=no} \ %{?_without_ncurses: --with-curses-driver=no} \ %{?_without_svga: --with-svga-driver=no} %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_datadir}/XaoS install -d $RPM_BUILD_ROOT%{_datadir}/XaoS/tutorial install -d $RPM_BUILD_ROOT%{_datadir}/XaoS/examples install -d $RPM_BUILD_ROOT%{_datadir}/XaoS/catalogs install -d $RPM_BUILD_ROOT%{_datadir}/XaoS/doc install -d $RPM_BUILD_ROOT%{_bindir} install -d $RPM_BUILD_ROOT%{_mandir}/man6 install -d $RPM_BUILD_ROOT%{_infodir} install -d $RPM_BUILD_ROOT%{_applnkdir} install bin/xaos $RPM_BUILD_ROOT%{_bindir} install tutorial/*.x[ah]f $RPM_BUILD_ROOT%{_datadir}/XaoS/tutorial install examples/* $RPM_BUILD_ROOT%{_datadir}/XaoS/examples install catalogs/* $RPM_BUILD_ROOT%{_datadir}/XaoS/catalogs install doc/README doc/README.bugs doc/compilers.txt doc/ANNOUNCE doc/PROBLEMS doc/tutorial.txt $RPM_BUILD_ROOT%{_datadir}/XaoS/doc install doc/xaos.6 $RPM_BUILD_ROOT%{_mandir}/man6 install doc/xaos.info $RPM_BUILD_ROOT%{_infodir} install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir} gzip -9nf doc/README doc/README.bugs doc/compilers.txt doc/ANNOUNCE doc/PROBLEMS doc/tutorial.txt %post [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 %postun [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %dir %{_datadir}/XaoS %dir %{_datadir}/XaoS/tutorial %dir %{_datadir}/XaoS/examples %dir %{_datadir}/XaoS/catalogs %attr(755,root,root) %{_bindir}/xaos %doc doc/*.gz %{_mandir}/man6/* %{_infodir}/*.info* %{_datadir}/XaoS/tutorial/* %{_datadir}/XaoS/examples/* %{_datadir}/XaoS/catalogs/*