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