File euler.spec of Package euler

#
# spec file for package euler
#
# Copyright (c) 2017 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/
#


%define         eulerdata %{_datadir}/euler
Name:           euler
Version:        1.61.0
Release:        0
Summary:        An interactive mathematical programming environment
License:        GPL-2.0+
Group:          Productivity/Scientific/Math
URL:            http://euler.sourceforge.net/
Source0:        %{name}-%{version}.tar.bz2
Patch1:         euler-browser.patch
Patch2:         euler-static.patch
Patch3:         euler-obsolete-CLK_TCK.patch
Patch4:         euler-docdir.patch
Patch5:         euler-missing_lib.patch
BuildRequires:  gtk2-devel
BuildRequires:  pcre-devel
Requires:       xdg-utils
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%endif
%if 0%{?suse_version} > 1020
BuildRequires:  fdupes
%endif

%description
The Euler Mathematical Toolbox is an open software for numerical and symbolic
computations written and maintained by R. Grothmann, professor for mathematics
at the University of Eichstätt.

This is the GTK+ port of euler, a program for quicly and interactively
computing with real and complex numbers and matrices. It features advanced
graphics capabilities and a simple programming language.

%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1

%build
%configure --disable-static
make %{?_smp_mflags}

%install
%make_install
install -Dm644 pixmaps/icon.xpm %{buildroot}/%{_datadir}/pixmaps/euler.xpm
%suse_update_desktop_file -i %{name} Education Math
%if 0%{?suse_version} > 1020
%fdupes -s %{buildroot}
%endif
# make rpmlint happy: remove unneeded stuff
rm %{buildroot}/%{_defaultdocdir}/%{name}/{NEWS,INSTALL}

%files
%defattr(-,root,root)
%doc %{_defaultdocdir}/%{name}
%{_bindir}/euler
%{eulerdata}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/euler.xpm

%changelog
openSUSE Build Service is sponsored by