File fyre.spec of Package fyre

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

# norootforbuild


Name:           fyre
BuildRequires:  OpenEXR-devel desktop-file-utils gcc-c++ gnet-devel gtk2-devel libglade2-devel libstdc++-devel shared-mime-info update-desktop-files
Version:        1.0.1
Release:        93
Url:            http://fyre.navi.cx/
Group:          Productivity/Graphics/Other
License:        GPLv2+
Summary:        Rendering system for chaotic maps
Source:         %{name}-%{version}.tar.bz2
AutoReqProv:    on
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Fyre provides a rendering system for chaotic maps, with an interactive
GTK+ frontend and the ability to create high-resolution images from the
command line.

%prep
%setup -q

%build
autoreconf -f -i
# animation.c:291: warning: dereferencing type-punned pointer will break strict-aliasing rules
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure
make %{?jobs:-j%jobs}

%install
%make_install
%suse_update_desktop_file fyre

%clean
rm -rf $RPM_BUILD_ROOT

%post
%if 0%{?suse_version} > 1130
%desktop_database_post
%icon_theme_cache_post
%mime_database_post
%else
if test -x usr/bin/update-mime-database ; then
  usr/bin/update-mime-database usr/share/mime >/dev/null
fi
%endif

%postun
%if 0%{?suse_version} > 1130
%desktop_database_postun
%icon_theme_cache_postun
%mime_database_postun
%else
if test -x usr/bin/update-mime-database ; then
  usr/bin/update-mime-database usr/share/mime >/dev/null
fi
%endif

%files
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/fyre
%{_datadir}/icons/hicolor/*/apps/fyre.*
%{_datadir}/icons/hicolor/*/mimetypes/*.png
%{_datadir}/mime/packages/*.xml

%changelog
openSUSE Build Service is sponsored by