]> git.pld-linux.org Git - packages/XaoS.git/blob - XaoS.spec
- updated URLs, new %%doc
[packages/XaoS.git] / XaoS.spec
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 %ifnarch %{ix86} alpha
9 %define _without_svgalib 1
10 %endif
11 Summary:        A fast, portable real-time interactive fractal zoomer
12 Summary(pl):    Szybki, przeno¶ny i interaktywny explorator fraktali
13 Name:           XaoS
14 Version:        3.0
15 Release:        1
16 License:        GPL
17 Group:          X11/Applications
18 Source0:        ftp://ftp.sourceforge.net/pub/sourceforge/xaos/%{name}-%{version}.tar.gz
19 Source1:        %{name}.desktop
20 Source2:        %{name}.png
21 Patch0:         %{name}-nosuid.patch
22 Patch1:         %{name}-brokenasm.patch
23 URL:            http://xaos.theory.org/
24 BuildRequires:  XFree86-devel
25 %{!?_without_aa:BuildRequires:          aalib-devel}
26 BuildRequires:  autoconf
27 BuildRequires:  libpng-devel
28 %{!?_without_ncurses:BuildRequires:     ncurses-devel}
29 %{!?_without_svga:BuildRequires:        svgalib-devel}
30 Buildroot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %define         _prefix         /usr/X11R6
33 %define         _mandir         %{_prefix}/man
34
35 %description
36 XaoS is a fast portable real-time interactive fractal zoomer. It
37 supports outputs such as X11, aalib, ncurses and SVGAlib. It displays
38 the Mandelbrot set (among other escape time fractals) and allows you
39 zoom smoothly into the fractal. Various coloring modes are provided
40 for both the points inside and outside the selected set. In addition,
41 switching between Julia and Mandelbrot fractal types is provided. The
42 first version was a poorly written Mandelbrot view by Thomas later
43 modified by Jan to support high frame-rate zooming. Other additions
44 were later made including autopilot (for those of you without drivers
45 licenses), palette changing, PNG saving, and fractal inversion.
46
47 %description -l pl
48 XaoS jest szybkim, przeno¶nym i interaktywnym exploratorem fraktali.
49 Efekty jego dzia³ania mo¿na ogl±daæ z u¿yciem drajwerów X11, aalib,
50 ncurses oraz SVGAlib. XaoS wy¶wietla zbiór Mandelbrota (i nie tylko) i
51 pozwala na p³ynne powiêkszanie/pomniejszanie widocznego zakresu.
52 Dostêpne s± ró¿ne rodzaje kolorowania dla punktów w wybranym zbiorze,
53 jak i poza nim. Dodatkowo, mo¿liwe jest prze³±czanie miêdzy fraktalem
54 Mandelbrota, a odpowiadaj±cym mu fraktalem Julii (i w drug± stronê).
55 Pierwsza wersja (Tomasa) by³a kiepsko napisanym wy¶wietlaczem zbioru
56 Mandelbrota. Zosta³a zmodyfikowana przez Jana aby umo¿liwiaæ szybkie
57 powiêkszanie. Inne zmiany, zrobione pó¼niej to autopilot, zmiana
58 palety, zapisywanie PNG i inwersja fraktali.
59
60 %prep
61 %setup -q
62 %patch0 -p1
63 %patch1 -p1
64
65 %build
66 %{__autoconf}
67 %configure \
68         --with-x \
69         --with-x11-driver=yes \
70         %{?_without_aa:         --with-aa-driver=no} \
71         %{?_without_ncurses:    --with-curses-driver=no} \
72         %{?_without_svga:       --with-svga-driver=no}
73
74 %{__make}
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78
79 install -d $RPM_BUILD_ROOT%{_datadir}/XaoS
80 install -d $RPM_BUILD_ROOT%{_datadir}/XaoS/tutorial
81 install -d $RPM_BUILD_ROOT%{_datadir}/XaoS/examples
82 install -d $RPM_BUILD_ROOT%{_datadir}/XaoS/catalogs
83 install -d $RPM_BUILD_ROOT%{_datadir}/XaoS/doc
84 install -d $RPM_BUILD_ROOT%{_bindir}
85 install -d $RPM_BUILD_ROOT%{_mandir}/man6
86 install -d $RPM_BUILD_ROOT%{_infodir}
87 install -d $RPM_BUILD_ROOT%{_applnkdir}
88 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
89 install bin/xaos $RPM_BUILD_ROOT%{_bindir}
90 install tutorial/*.x[ah]f $RPM_BUILD_ROOT%{_datadir}/XaoS/tutorial
91 install examples/* $RPM_BUILD_ROOT%{_datadir}/XaoS/examples
92 install catalogs/* $RPM_BUILD_ROOT%{_datadir}/XaoS/catalogs
93 install doc/xaos.6 $RPM_BUILD_ROOT%{_mandir}/man6
94 install doc/xaos.info $RPM_BUILD_ROOT%{_infodir}
95 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}
96 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
97
98 %clean
99 rm -rf $RPM_BUILD_ROOT
100
101 %post
102 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
103
104 %postun
105 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
106
107 %files
108 %defattr(644,root,root,755)
109 %doc doc/{README,README.bugs,compilers.txt,ANNOUNCE,PROBLEMS,tutorial.txt}
110 %attr(755,root,root) %{_bindir}/xaos
111 %{_mandir}/man6/*
112 %{_infodir}/*.info*
113 %dir %{_datadir}/XaoS
114 %{_datadir}/XaoS/tutorial
115 %{_datadir}/XaoS/examples
116 %{_datadir}/XaoS/catalogs
117 %{_pixmapsdir}/XaoS.png
118 %{_applnkdir}/XaoS.desktop
This page took 0.074257 seconds and 3 git commands to generate.