File fraqtive.spec of Package fraqtive

#
# spec file for package fraqtive
#
# Copyright (c) 2015 SUSE LINUX 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 http://bugs.opensuse.org/
#


Name:           fraqtive
Version:        0.4.8
Release:        0
Summary:        Program for drawing Mandelbrot and Julia fractals
License:        GPL-2.0+
Group:          System/GUI/KDE
Url:            http://fraqtive.mimec.org/
Source0:        %{name}-%{version}.tar.bz2
Source1:        %{name}.desktop
Source2:        fraqtive-rpmlintrc
BuildRequires:  hicolor-icon-theme
BuildRequires:  libqt4-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1220
BuildRequires:  glu-devel
%endif
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%endif

%description
Fraqtive is a program for drawing Mandelbrot and Julia fractals.
It uses a very fast algorithm and generates high quality, smooth images.
It is fully interactive, allowing for real-time mouse navigation and
dynamic generation of the Julia fractal preview.
OpenGL-rendered 3D view of the fractals is also supported.

%prep
%setup -q

%build
./configure -prefix %{buildroot}%{_prefix}
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
rm -rf %{buildroot}%{_datadir}/applications/*.desktop
install -m644 %{SOURCE1} %{buildroot}%{_datadir}/applications/
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}
# install the tutorial and docu dir
cp -r src/tutorial %{buildroot}%{_defaultdocdir}/%{name}/
install -m644 README ChangeLog COPYING %{buildroot}%{_defaultdocdir}/%{name}/
# call suse desktop file
%suse_update_desktop_file -n %{name}
# add susehelp
mkdir -p %{buildroot}%{_datadir}/susehelp/meta/%{name}
pushd %{buildroot}%{_datadir}/susehelp/meta/%{name}
ln -s %{_datadir}/applications/%{name}.desktop .

%files
%defattr(-,root,root)
%doc %{_defaultdocdir}/%{name}
%dir %{_datadir}/susehelp/
%dir %{_datadir}/susehelp/meta
%dir %{_datadir}/susehelp/meta/fraqtive
%{_bindir}/%{name}
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/susehelp/meta/fraqtive/fraqtive.desktop

%changelog