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/
#
Name: fyre
BuildRequires: OpenEXR-devel
BuildRequires: automake
BuildRequires: desktop-file-utils
BuildRequires: gcc-c++
BuildRequires: gnet-devel
BuildRequires: gtk2-devel
BuildRequires: libglade2-devel
BuildRequires: libstdc++-devel
BuildRequires: shared-mime-info
BuildRequires: update-desktop-files
Version: 1.0.1
Release: 0
Url: http://fyre.navi.cx/
Group: Productivity/Graphics/Other
License: GPL-2.0+
Summary: Rendering system for chaotic maps
Source: %{name}-%{version}.tar.bz2
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