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