]> git.pld-linux.org Git - packages/XaoS.git/blame - XaoS.spec
- initial release, only patches from RH, rest by me, great program
[packages/XaoS.git] / XaoS.spec
CommitLineData
5956305b 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
8Summary: A fast, portable real-time interactive fractal zoomer.
9Name: XaoS
10Version: 3.0
11Release: 1
12License: GPL
13Group: X11/Applications
14Group(de): X11/Applikationen
15Group(pl): X11/Aplikacje
16URL: http://limax.paru.cas.cz/~hubicka/XaoS/index.html
17Source0: ftp://sunsite.unc.edu/pub/Linux/X11/xapps/graphics/%{name}-%{version}.tar.gz
18Source1: %{name}.desktop
19Patch0: %{name}-nosuid.patch
20Patch1: %{name}-brokenasm.patch
21BuildRequires: XFree86-devel
22BuildRequires: libpng-devel
23%{!?_without_aa:BuildRequires: aalib-devel}
24%{!?_without_svga:BuildRequires: svgalib-devel}
25%{!?_without_ncurses:BuildRequires: ncurses-devel}
26Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%define _prefix /usr/X11R6
29%define _mandir %{_prefix}/man
30
31%description
32XaoS is a fast portable real-time interactive fractal zoomer. and
33SVGAlib. It displays the Mandelbrot set (among other escape time
34fractals) and allows you zoom smoothly into the fractal. Various
35coloring modes are provided for both the points inside and outside the
36selected set. In addition, switching between Julia and Mandelbrot
37fractal types is provided. The first version was a poorly written
38Mandelbrot view by Thomas later modified by Jan to support high
39frame-rate zooming. Other additions were later made including
40autopilot (for those of you without drivers licenses), palette
41changing, PNG saving, and fractal inversion.
42
43%prep
44%setup -q
45%patch0 -p1
46%patch1 -p1
47
48%build
49autoconf
50%configure \
51 --with-x \
52 --with-x11-driver=yes \
53 %{?_without_aa: --with-aa-driver=no} \
54 %{?_without_ncurses: --with-curses-driver=no} \
55 %{?_without_svga: --with-svga-driver=no}
56
57%{__make}
58
59%install
60rm -rf $RPM_BUILD_ROOT
61
62install -d $RPM_BUILD_ROOT%{_datadir}/XaoS
63install -d $RPM_BUILD_ROOT%{_datadir}/XaoS/tutorial
64install -d $RPM_BUILD_ROOT%{_datadir}/XaoS/examples
65install -d $RPM_BUILD_ROOT%{_datadir}/XaoS/catalogs
66install -d $RPM_BUILD_ROOT%{_datadir}/XaoS/doc
67install -d $RPM_BUILD_ROOT%{_bindir}
68install -d $RPM_BUILD_ROOT%{_mandir}/man6
69install -d $RPM_BUILD_ROOT%{_infodir}
70install -d $RPM_BUILD_ROOT%{_applnkdir}
71install bin/xaos $RPM_BUILD_ROOT%{_bindir}
72install tutorial/*.x[ah]f $RPM_BUILD_ROOT%{_datadir}/XaoS/tutorial
73install examples/* $RPM_BUILD_ROOT%{_datadir}/XaoS/examples
74install catalogs/* $RPM_BUILD_ROOT%{_datadir}/XaoS/catalogs
75install doc/README doc/README.bugs doc/compilers.txt doc/ANNOUNCE doc/PROBLEMS doc/tutorial.txt $RPM_BUILD_ROOT%{_datadir}/XaoS/doc
76install doc/xaos.6 $RPM_BUILD_ROOT%{_mandir}/man6
77install doc/xaos.info $RPM_BUILD_ROOT%{_infodir}
78install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}
79
80gzip -9nf doc/README doc/README.bugs doc/compilers.txt doc/ANNOUNCE doc/PROBLEMS doc/tutorial.txt
81
82%post
83[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
84
85%postun
86[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
87
88%clean
89rm -rf $RPM_BUILD_ROOT
90
91%files
92%defattr(644,root,root,755)
93%dir %{_datadir}/XaoS
94%dir %{_datadir}/XaoS/tutorial
95%dir %{_datadir}/XaoS/examples
96%dir %{_datadir}/XaoS/catalogs
97%attr(755,root,root) %{_bindir}/xaos
98%doc doc/*.gz
99%{_mandir}/man6/*
100%{_infodir}/*.info*
101%{_datadir}/XaoS/tutorial/*
102%{_datadir}/XaoS/examples/*
103%{_datadir}/XaoS/catalogs/*
This page took 0.075472 seconds and 4 git commands to generate.