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