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