File xaos.spec of Package xaos

# spec file for package xaos
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           xaos
Version:        3.5
Release:        0
Summary:        Powerful fractal generator
License:        GPL-2.0+
Group:          Amusements/Toys/Graphics
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}.desktop
Source2:        %{name}.sh
Source3:        %{name}.png
Patch0:         %{name}-%{version}-strip.patch
Patch1:         fix-prototypes.diff
BuildRequires:  aalib-devel
BuildRequires:  dos2unix
BuildRequires:  fdupes
BuildRequires:  gsl-devel
BuildRequires:  libpng-devel
BuildRequires:  update-desktop-files
BuildRequires:  xorg-x11
BuildRequires:  xorg-x11-devel
Requires(pre):  %install_info_prereq
Provides:       XaoS
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

XaoS is a fast portable real-time interactive fractal zoomer. It
displays the Mandelbrot set (among other escape time fractals) and
allows you to zoom smoothly into the fractal.  Various coloring modes
are provided for both the points inside and outside the selected set.
In addition, switching between Julia and Mandelbrot fractal types and
displaying planes is provided.

%setup -q
%patch1 -p1

# convert all xpf-files to UNIX format
find examples/ -iname "*.xpf" -exec dos2unix {} \;
%configure --with-svga-driver=no
make %{?_smp_mflags}

mkdir -p %{buildroot}/%{_infodir}
mv %{buildroot}%{_bindir}/xaos %{buildroot}%{_bindir}/xaos.bin
install -m 755 %{SOURCE2} %{buildroot}%{_bindir}/xaos
chmod 755 %{buildroot}%{_bindir}/xaos
chmod 755 %{buildroot}%{_bindir}/xaos.bin
%suse_update_desktop_file -i %{name} Edutainment Math
install -D -m 0644 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/%{name}.png
%find_lang %{name}
%fdupes %{buildroot}

%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

rm -rf %{buildroot}

%files -f %{name}.lang
%doc %{_infodir}/*
%doc %{_mandir}/man6/xaos.6.*

openSUSE Build Service is sponsored by