]>
Commit | Line | Data |
---|---|---|
5956305b | 1 | # |
2 | # Conditional build: | |
3 | # | |
4 | # without_aa - without aalib output support | |
5 | # without_svga - without svga output support | |
6 | # without_ncurses - without ncurses output support | |
7 | ||
8 | Summary: A fast, portable real-time interactive fractal zoomer. | |
9 | Name: XaoS | |
10 | Version: 3.0 | |
11 | Release: 1 | |
12 | License: GPL | |
13 | Group: X11/Applications | |
14 | Group(de): X11/Applikationen | |
15 | Group(pl): X11/Aplikacje | |
16 | URL: http://limax.paru.cas.cz/~hubicka/XaoS/index.html | |
17 | Source0: ftp://sunsite.unc.edu/pub/Linux/X11/xapps/graphics/%{name}-%{version}.tar.gz | |
18 | Source1: %{name}.desktop | |
19 | Patch0: %{name}-nosuid.patch | |
20 | Patch1: %{name}-brokenasm.patch | |
21 | BuildRequires: XFree86-devel | |
22 | BuildRequires: libpng-devel | |
23 | %{!?_without_aa:BuildRequires: aalib-devel} | |
24 | %{!?_without_svga:BuildRequires: svgalib-devel} | |
25 | %{!?_without_ncurses:BuildRequires: ncurses-devel} | |
26 | Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %define _prefix /usr/X11R6 | |
29 | %define _mandir %{_prefix}/man | |
30 | ||
31 | %description | |
32 | XaoS is a fast portable real-time interactive fractal zoomer. and | |
33 | SVGAlib. It displays the Mandelbrot set (among other escape time | |
34 | fractals) and allows you zoom smoothly into the fractal. Various | |
35 | coloring modes are provided for both the points inside and outside the | |
36 | selected set. In addition, switching between Julia and Mandelbrot | |
37 | fractal types is provided. The first version was a poorly written | |
38 | Mandelbrot view by Thomas later modified by Jan to support high | |
39 | frame-rate zooming. Other additions were later made including | |
40 | autopilot (for those of you without drivers licenses), palette | |
41 | changing, PNG saving, and fractal inversion. | |
42 | ||
43 | %prep | |
44 | %setup -q | |
45 | %patch0 -p1 | |
46 | %patch1 -p1 | |
47 | ||
48 | %build | |
49 | autoconf | |
50 | %configure \ | |
51 | --with-x \ | |
52 | --with-x11-driver=yes \ | |
53 | %{?_without_aa: --with-aa-driver=no} \ | |
54 | %{?_without_ncurses: --with-curses-driver=no} \ | |
55 | %{?_without_svga: --with-svga-driver=no} | |
56 | ||
57 | %{__make} | |
58 | ||
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | install -d $RPM_BUILD_ROOT%{_datadir}/XaoS | |
63 | install -d $RPM_BUILD_ROOT%{_datadir}/XaoS/tutorial | |
64 | install -d $RPM_BUILD_ROOT%{_datadir}/XaoS/examples | |
65 | install -d $RPM_BUILD_ROOT%{_datadir}/XaoS/catalogs | |
66 | install -d $RPM_BUILD_ROOT%{_datadir}/XaoS/doc | |
67 | install -d $RPM_BUILD_ROOT%{_bindir} | |
68 | install -d $RPM_BUILD_ROOT%{_mandir}/man6 | |
69 | install -d $RPM_BUILD_ROOT%{_infodir} | |
70 | install -d $RPM_BUILD_ROOT%{_applnkdir} | |
71 | install bin/xaos $RPM_BUILD_ROOT%{_bindir} | |
72 | install tutorial/*.x[ah]f $RPM_BUILD_ROOT%{_datadir}/XaoS/tutorial | |
73 | install examples/* $RPM_BUILD_ROOT%{_datadir}/XaoS/examples | |
74 | install catalogs/* $RPM_BUILD_ROOT%{_datadir}/XaoS/catalogs | |
75 | install doc/README doc/README.bugs doc/compilers.txt doc/ANNOUNCE doc/PROBLEMS doc/tutorial.txt $RPM_BUILD_ROOT%{_datadir}/XaoS/doc | |
76 | install doc/xaos.6 $RPM_BUILD_ROOT%{_mandir}/man6 | |
77 | install doc/xaos.info $RPM_BUILD_ROOT%{_infodir} | |
78 | install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir} | |
79 | ||
80 | gzip -9nf doc/README doc/README.bugs doc/compilers.txt doc/ANNOUNCE doc/PROBLEMS doc/tutorial.txt | |
81 | ||
82 | %post | |
83 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
84 | ||
85 | %postun | |
86 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
87 | ||
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %files | |
92 | %defattr(644,root,root,755) | |
93 | %dir %{_datadir}/XaoS | |
94 | %dir %{_datadir}/XaoS/tutorial | |
95 | %dir %{_datadir}/XaoS/examples | |
96 | %dir %{_datadir}/XaoS/catalogs | |
97 | %attr(755,root,root) %{_bindir}/xaos | |
98 | %doc doc/*.gz | |
99 | %{_mandir}/man6/* | |
100 | %{_infodir}/*.info* | |
101 | %{_datadir}/XaoS/tutorial/* | |
102 | %{_datadir}/XaoS/examples/* | |
103 | %{_datadir}/XaoS/catalogs/* |