]>
Commit | Line | Data |
---|---|---|
595e179b | 1 | # TODO: enable GTK+ UI when it becomes stable |
5956305b | 2 | # |
3 | # Conditional build: | |
36d1e187 JB |
4 | %bcond_without aalib # without aalib output support |
5 | %bcond_without ggi # without ggi output support | |
c284df73 | 6 | %bcond_without ncurses # without ncurses output support |
7 | %bcond_without svga # without svga output support | |
e9a4bdb0 | 8 | # |
616147b1 | 9 | Summary: A fast, portable real-time interactive fractal zoomer |
624ad3b9 | 10 | Summary(pl.UTF-8): Szybki, przenośny i interaktywny eksplorator fraktali |
5956305b | 11 | Name: XaoS |
595e179b | 12 | Version: 3.4 |
7f63b006 | 13 | Release: 1 |
595e179b | 14 | License: GPL v2+ |
5956305b | 15 | Group: X11/Applications |
7f63b006 | 16 | Source0: http://dl.sourceforge.net/xaos/%{name}-%{version}.tar.gz |
595e179b | 17 | # Source0-md5: 366fd8151e9642a0d9afce889912e388 |
5956305b | 18 | Source1: %{name}.desktop |
86b500e4 | 19 | Source2: %{name}.png |
5956305b | 20 | Patch0: %{name}-nosuid.patch |
7f63b006 JB |
21 | Patch1: %{name}-ggi-fix.patch |
22 | Patch2: %{name}-svga-fix.patch | |
23 | Patch3: %{name}-info.patch | |
a9288dd3 | 24 | URL: http://xaos.theory.org/ |
36d1e187 | 25 | %{?with_aalib:BuildRequires: aalib-devel} |
7f63b006 | 26 | BuildRequires: autoconf >= 2.59-9 |
55ed65e5 | 27 | BuildRequires: automake |
11b6086f | 28 | BuildRequires: gettext-tools |
36d1e187 | 29 | %{?with_ggi:BuildRequires: libggi-devel} |
a9288dd3 | 30 | BuildRequires: libpng-devel |
36d1e187 JB |
31 | %{?with_ncurses:BuildRequires: ncurses-devel} |
32 | %{?with_svga:BuildRequires: svgalib-devel} | |
03a3e79c | 33 | BuildRequires: texinfo |
7f63b006 JB |
34 | BuildRequires: xorg-lib-libXext-devel |
35 | BuildRequires: xorg-lib-libXxf86dga-devel | |
36 | BuildRequires: xorg-lib-libXxf86vm-devel | |
79696a96 | 37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
5956305b | 38 | |
5956305b | 39 | %description |
02527eab | 40 | XaoS is a fast portable real-time interactive fractal zoomer. It |
41 | supports outputs such as X11, aalib, ncurses and SVGAlib. It displays | |
42 | the Mandelbrot set (among other escape time fractals) and allows you | |
43 | zoom smoothly into the fractal. Various coloring modes are provided | |
44 | for both the points inside and outside the selected set. In addition, | |
45 | switching between Julia and Mandelbrot fractal types is provided. The | |
46 | first version was a poorly written Mandelbrot view by Thomas later | |
47 | modified by Jan to support high frame-rate zooming. Other additions | |
48 | were later made including autopilot (for those of you without drivers | |
49 | licenses), palette changing, PNG saving, and fractal inversion. | |
50 | ||
1fa60c6c JR |
51 | %description -l pl.UTF-8 |
52 | XaoS jest szybkim, przenośnym i interaktywnym eksploratorem fraktali. | |
53 | Efekty jego działania można oglądać z użyciem drajwerów X11, aalib, | |
54 | ncurses oraz SVGAlib. XaoS wyświetla zbiór Mandelbrota (i nie tylko) i | |
55 | pozwala na płynne powiększanie/pomniejszanie widocznego zakresu. | |
56 | Dostępne są różne rodzaje kolorowania dla punktów w wybranym zbiorze, | |
57 | jak i poza nim. Dodatkowo, możliwe jest przełączanie między fraktalem | |
58 | Mandelbrota, a odpowiadającym mu fraktalem Julii (i w drugą stronę). | |
59 | Pierwsza wersja (Tomasa) była kiepsko napisanym wyświetlaczem zbioru | |
60 | Mandelbrota. Została zmodyfikowana przez Jana aby umożliwiać szybkie | |
61 | powiększanie. Inne zmiany, zrobione później to autopilot, zmiana | |
02527eab | 62 | palety, zapisywanie PNG i inwersja fraktali. |
5956305b | 63 | |
64 | %prep | |
68ac8244 | 65 | %setup -q |
5956305b | 66 | %patch0 -p1 |
67 | %patch1 -p1 | |
55ed65e5 JB |
68 | %patch2 -p1 |
69 | %patch3 -p1 | |
7f63b006 JB |
70 | |
71 | # workaround for gettext 0.15 compatibility | |
72 | touch src/i18n/POTFILES.in | |
5956305b | 73 | |
74 | %build | |
55ed65e5 | 75 | cp -f /usr/share/automake/config.* . |
7f63b006 | 76 | %{__aclocal} |
33aa6e00 | 77 | %{__autoconf} |
5956305b | 78 | %configure \ |
79 | --with-x \ | |
80 | --with-x11-driver=yes \ | |
7f63b006 JB |
81 | %{!?with_aalib:--with-aa-driver=no} \ |
82 | %{!?with_ggi:--with-ggi-driver=no} \ | |
83 | %{!?with_ncurses:--with-curses-driver=no} \ | |
84 | %{!?with_svga:--with-svga-driver=no} | |
86b500e4 | 85 | |
5956305b | 86 | %{__make} |
87 | ||
03a3e79c JB |
88 | cd doc |
89 | makeinfo --no-split xaos.texinfo | |
90 | makeinfo --no-split xaosdev.texinfo | |
91 | ||
5956305b | 92 | %install |
93 | rm -rf $RPM_BUILD_ROOT | |
7f63b006 | 94 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
55ed65e5 JB |
95 | |
96 | %{__make} install \ | |
7f63b006 | 97 | DESTDIR=$RPM_BUILD_ROOT |
5956305b | 98 | |
76c4c509 | 99 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
86b500e4 | 100 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} |
101 | ||
55ed65e5 JB |
102 | %find_lang xaos |
103 | ||
616147b1 JB |
104 | %clean |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
595e179b | 107 | %post -p /sbin/postshell |
bebf7230 | 108 | -/usr/sbin/fix-info-dir -c %{_infodir} |
5956305b | 109 | |
595e179b | 110 | %postun -p /sbin/postshell |
bebf7230 | 111 | -/usr/sbin/fix-info-dir -c %{_infodir} |
5956305b | 112 | |
55ed65e5 | 113 | %files -f xaos.lang |
5956305b | 114 | %defattr(644,root,root,755) |
7f63b006 | 115 | %doc RELEASE_NOTES TODO doc/{AUTHORS,PROBLEMS,README{,.bugs,.ggi},SPONSORS,built-in_formulas.txt} |
5956305b | 116 | %attr(755,root,root) %{_bindir}/xaos |
a9288dd3 | 117 | %dir %{_datadir}/XaoS |
55ed65e5 JB |
118 | %dir %{_datadir}/XaoS/catalogs |
119 | %lang(cs) %{_datadir}/XaoS/catalogs/cesky.cat | |
120 | %lang(de) %{_datadir}/XaoS/catalogs/deutsch.cat | |
121 | %{_datadir}/XaoS/catalogs/english.cat | |
122 | %lang(es) %{_datadir}/XaoS/catalogs/espanhol.cat | |
123 | %lang(fr) %{_datadir}/XaoS/catalogs/francais.cat | |
595e179b | 124 | %lang(it) %{_datadir}/XaoS/catalogs/italiano.cat |
55ed65e5 | 125 | %lang(hu) %{_datadir}/XaoS/catalogs/magyar.cat |
595e179b | 126 | %lang(ro) %{_datadir}/XaoS/catalogs/romanian.cat |
a9288dd3 | 127 | %{_datadir}/XaoS/examples |
55ed65e5 JB |
128 | %{_datadir}/XaoS/help |
129 | %{_datadir}/XaoS/tutorial | |
595e179b JB |
130 | %{_mandir}/man6/xaos.6* |
131 | %{_infodir}/xaos.info* | |
86b500e4 | 132 | %{_pixmapsdir}/XaoS.png |
76c4c509 | 133 | %{_desktopdir}/XaoS.desktop |