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