]> git.pld-linux.org Git - packages/XaoS.git/blame - XaoS.spec
- updated gettext BR
[packages/XaoS.git] / XaoS.spec
CommitLineData
595e179b 1# TODO: enable GTK+ UI when it becomes stable
5956305b 2#
3# Conditional build:
36d1e187
JB
4%bcond_without aalib # without aalib output support
5%bcond_without ggi # without ggi output support
c284df73 6%bcond_without ncurses # without ncurses output support
7%bcond_without svga # without svga output support
e9a4bdb0 8#
616147b1 9Summary: A fast, portable real-time interactive fractal zoomer
624ad3b9 10Summary(pl.UTF-8): Szybki, przenośny i interaktywny eksplorator fraktali
5956305b 11Name: XaoS
595e179b 12Version: 3.4
7f63b006 13Release: 1
595e179b 14License: GPL v2+
5956305b 15Group: X11/Applications
7f63b006 16Source0: http://dl.sourceforge.net/xaos/%{name}-%{version}.tar.gz
595e179b 17# Source0-md5: 366fd8151e9642a0d9afce889912e388
5956305b 18Source1: %{name}.desktop
86b500e4 19Source2: %{name}.png
5956305b 20Patch0: %{name}-nosuid.patch
7f63b006
JB
21Patch1: %{name}-ggi-fix.patch
22Patch2: %{name}-svga-fix.patch
23Patch3: %{name}-info.patch
a9288dd3 24URL: http://xaos.theory.org/
36d1e187 25%{?with_aalib:BuildRequires: aalib-devel}
7f63b006 26BuildRequires: autoconf >= 2.59-9
55ed65e5 27BuildRequires: automake
11b6086f 28BuildRequires: gettext-tools
36d1e187 29%{?with_ggi:BuildRequires: libggi-devel}
a9288dd3 30BuildRequires: libpng-devel
36d1e187
JB
31%{?with_ncurses:BuildRequires: ncurses-devel}
32%{?with_svga:BuildRequires: svgalib-devel}
03a3e79c 33BuildRequires: texinfo
7f63b006
JB
34BuildRequires: xorg-lib-libXext-devel
35BuildRequires: xorg-lib-libXxf86dga-devel
36BuildRequires: xorg-lib-libXxf86vm-devel
79696a96 37BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
5956305b 38
5956305b 39%description
02527eab 40XaoS is a fast portable real-time interactive fractal zoomer. It
41supports outputs such as X11, aalib, ncurses and SVGAlib. It displays
42the Mandelbrot set (among other escape time fractals) and allows you
43zoom smoothly into the fractal. Various coloring modes are provided
44for both the points inside and outside the selected set. In addition,
45switching between Julia and Mandelbrot fractal types is provided. The
46first version was a poorly written Mandelbrot view by Thomas later
47modified by Jan to support high frame-rate zooming. Other additions
48were later made including autopilot (for those of you without drivers
49licenses), palette changing, PNG saving, and fractal inversion.
50
1fa60c6c
JR
51%description -l pl.UTF-8
52XaoS jest szybkim, przenośnym i interaktywnym eksploratorem fraktali.
53Efekty jego działania można oglądać z użyciem drajwerów X11, aalib,
54ncurses oraz SVGAlib. XaoS wyświetla zbiór Mandelbrota (i nie tylko) i
55pozwala na płynne powiększanie/pomniejszanie widocznego zakresu.
56Dostępne są różne rodzaje kolorowania dla punktów w wybranym zbiorze,
57jak i poza nim. Dodatkowo, możliwe jest przełączanie między fraktalem
58Mandelbrota, a odpowiadającym mu fraktalem Julii (i w drugą stronę).
59Pierwsza wersja (Tomasa) była kiepsko napisanym wyświetlaczem zbioru
60Mandelbrota. Została zmodyfikowana przez Jana aby umożliwiać szybkie
61powiększanie. Inne zmiany, zrobione później to autopilot, zmiana
02527eab 62palety, zapisywanie PNG i inwersja fraktali.
5956305b 63
64%prep
68ac8244 65%setup -q
5956305b 66%patch0 -p1
67%patch1 -p1
55ed65e5
JB
68%patch2 -p1
69%patch3 -p1
7f63b006
JB
70
71# workaround for gettext 0.15 compatibility
72touch src/i18n/POTFILES.in
5956305b 73
74%build
55ed65e5 75cp -f /usr/share/automake/config.* .
7f63b006 76%{__aclocal}
33aa6e00 77%{__autoconf}
5956305b 78%configure \
79 --with-x \
80 --with-x11-driver=yes \
7f63b006
JB
81 %{!?with_aalib:--with-aa-driver=no} \
82 %{!?with_ggi:--with-ggi-driver=no} \
83 %{!?with_ncurses:--with-curses-driver=no} \
84 %{!?with_svga:--with-svga-driver=no}
86b500e4 85
5956305b 86%{__make}
87
03a3e79c
JB
88cd doc
89makeinfo --no-split xaos.texinfo
90makeinfo --no-split xaosdev.texinfo
91
5956305b 92%install
93rm -rf $RPM_BUILD_ROOT
7f63b006 94install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
55ed65e5
JB
95
96%{__make} install \
7f63b006 97 DESTDIR=$RPM_BUILD_ROOT
5956305b 98
76c4c509 99install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
86b500e4 100install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
101
55ed65e5
JB
102%find_lang xaos
103
616147b1
JB
104%clean
105rm -rf $RPM_BUILD_ROOT
106
595e179b 107%post -p /sbin/postshell
bebf7230 108-/usr/sbin/fix-info-dir -c %{_infodir}
5956305b 109
595e179b 110%postun -p /sbin/postshell
bebf7230 111-/usr/sbin/fix-info-dir -c %{_infodir}
5956305b 112
55ed65e5 113%files -f xaos.lang
5956305b 114%defattr(644,root,root,755)
7f63b006 115%doc RELEASE_NOTES TODO doc/{AUTHORS,PROBLEMS,README{,.bugs,.ggi},SPONSORS,built-in_formulas.txt}
5956305b 116%attr(755,root,root) %{_bindir}/xaos
a9288dd3 117%dir %{_datadir}/XaoS
55ed65e5
JB
118%dir %{_datadir}/XaoS/catalogs
119%lang(cs) %{_datadir}/XaoS/catalogs/cesky.cat
120%lang(de) %{_datadir}/XaoS/catalogs/deutsch.cat
121%{_datadir}/XaoS/catalogs/english.cat
122%lang(es) %{_datadir}/XaoS/catalogs/espanhol.cat
123%lang(fr) %{_datadir}/XaoS/catalogs/francais.cat
595e179b 124%lang(it) %{_datadir}/XaoS/catalogs/italiano.cat
55ed65e5 125%lang(hu) %{_datadir}/XaoS/catalogs/magyar.cat
595e179b 126%lang(ro) %{_datadir}/XaoS/catalogs/romanian.cat
a9288dd3 127%{_datadir}/XaoS/examples
55ed65e5
JB
128%{_datadir}/XaoS/help
129%{_datadir}/XaoS/tutorial
595e179b
JB
130%{_mandir}/man6/xaos.6*
131%{_infodir}/xaos.info*
86b500e4 132%{_pixmapsdir}/XaoS.png
76c4c509 133%{_desktopdir}/XaoS.desktop
This page took 0.089725 seconds and 4 git commands to generate.