4 # _without_aa - without aalib output support
5 # _without_ggi - without ggi output support
6 # _without_ncurses - without ncurses output support
7 # _without_svga - without svga output support
10 %define _without_svgalib 1
12 Summary: A fast, portable real-time interactive fractal zoomer
13 Summary(pl): Szybki, przeno¶ny i interaktywny explorator fraktali
19 Group: X11/Applications
20 Source0: http://dl.sourceforge.net/xaos/%{name}-%{version}%{pre}.tar.gz
21 Source1: %{name}.desktop
23 Patch0: %{name}-nosuid.patch
24 Patch1: %{name}-brokenasm.patch
25 Patch2: %{name}-ggi-fix.patch
26 Patch3: %{name}-svga-fix.patch
27 Patch4: %{name}-info.patch
28 URL: http://xaos.theory.org/
29 BuildRequires: XFree86-devel
30 %{!?_without_aa:BuildRequires: aalib-devel}
31 BuildRequires: autoconf
32 BuildRequires: automake
33 %{!?_without_ggi:BuildRequires: libggi-devel}
34 BuildRequires: libpng-devel
35 %{!?_without_ncurses:BuildRequires: ncurses-devel}
36 %{!?_without_svga:BuildRequires: svgalib-devel}
37 BuildRequires: texinfo
38 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 XaoS is a fast portable real-time interactive fractal zoomer. It
42 supports outputs such as X11, aalib, ncurses and SVGAlib. It displays
43 the Mandelbrot set (among other escape time fractals) and allows you
44 zoom smoothly into the fractal. Various coloring modes are provided
45 for both the points inside and outside the selected set. In addition,
46 switching between Julia and Mandelbrot fractal types is provided. The
47 first version was a poorly written Mandelbrot view by Thomas later
48 modified by Jan to support high frame-rate zooming. Other additions
49 were later made including autopilot (for those of you without drivers
50 licenses), palette changing, PNG saving, and fractal inversion.
53 XaoS jest szybkim, przeno¶nym i interaktywnym exploratorem fraktali.
54 Efekty jego dzia³ania mo¿na ogl±daæ z u¿yciem drajwerów X11, aalib,
55 ncurses oraz SVGAlib. XaoS wy¶wietla zbiór Mandelbrota (i nie tylko) i
56 pozwala na p³ynne powiêkszanie/pomniejszanie widocznego zakresu.
57 Dostêpne s± ró¿ne rodzaje kolorowania dla punktów w wybranym zbiorze,
58 jak i poza nim. Dodatkowo, mo¿liwe jest prze³±czanie miêdzy fraktalem
59 Mandelbrota, a odpowiadaj±cym mu fraktalem Julii (i w drug± stronê).
60 Pierwsza wersja (Tomasa) by³a kiepsko napisanym wy¶wietlaczem zbioru
61 Mandelbrota. Zosta³a zmodyfikowana przez Jana aby umo¿liwiaæ szybkie
62 powiêkszanie. Inne zmiany, zrobione pó¼niej to autopilot, zmiana
63 palety, zapisywanie PNG i inwersja fraktali.
66 %setup -q -n %{name}-%{version}%{pre}
74 cp -f /usr/share/automake/config.* .
78 --with-x11-driver=yes \
79 %{?_without_aa: --with-aa-driver=no} \
80 %{?_without_ggi: --with-ggi-driver=no} \
81 %{?_without_ncurses: --with-curses-driver=no} \
82 %{?_without_svga: --with-svga-driver=no}
87 makeinfo --no-split xaos.texinfo
88 makeinfo --no-split xaosdev.texinfo
91 rm -rf $RPM_BUILD_ROOT
92 install -d $RPM_BUILD_ROOT{%{_infodir},%{_applnkdir},%{_pixmapsdir}} \
93 $RPM_BUILD_ROOT%{_datadir}/locale/{hu,es,fr,cs,de}/LC_MESSAGES
96 datadir=$RPM_BUILD_ROOT%{_datadir} \
97 bindir=$RPM_BUILD_ROOT%{_bindir} \
98 mandir=$RPM_BUILD_ROOT%{_mandir} \
99 infodir=$RPM_BUILD_ROOT%{_infodir} \
100 LOCALEDIR=$RPM_BUILD_ROOT%{_datadir}/locale
102 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}
103 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
108 rm -rf $RPM_BUILD_ROOT
111 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
114 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
117 %defattr(644,root,root,755)
118 %doc TODO doc/{ANNOUNCE,AUTHORS,PROBLEMS,README{,.bugs,.ggi},SPONSORS}
119 %attr(755,root,root) %{_bindir}/xaos
120 %dir %{_datadir}/XaoS
121 %dir %{_datadir}/XaoS/catalogs
122 %lang(cs) %{_datadir}/XaoS/catalogs/cesky.cat
123 %lang(de) %{_datadir}/XaoS/catalogs/deutsch.cat
124 %{_datadir}/XaoS/catalogs/english.cat
125 %lang(es) %{_datadir}/XaoS/catalogs/espanhol.cat
126 %lang(fr) %{_datadir}/XaoS/catalogs/francais.cat
127 %lang(hu) %{_datadir}/XaoS/catalogs/magyar.cat
128 %{_datadir}/XaoS/examples
129 %{_datadir}/XaoS/help
130 %{_datadir}/XaoS/tutorial
133 %{_pixmapsdir}/XaoS.png
134 %{_applnkdir}/XaoS.desktop