File wxMaxima.spec of Package wxMaxima
#
# spec file for package wxMaxima
#
# Copyright (c) 2013 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: wxMaxima
Version: 13.04.2
Release: 0
Summary: Graphical User Interface for the maxima Computer Algebra System
License: GPL-2.0+
Group: Productivity/Scientific/Math
Url: http://wxmaxima.sourceforge.net/
Source0: http://download.sourceforge.net/wxmaxima/%{name}-%{version}.tar.gz
Source1: wxmaxima.desktop
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gtk2-devel
BuildRequires: libxml2-devel
BuildRequires: maxima >= 5.13.0
# Starting with version 0.8.8, it should be possible to use STL variant.
#BuildRequires: wxWidgets-devel
BuildRequires: wxWidgets-wxcontainer-devel
# gnuplot is needed for plotting
Requires: gnuplot
Requires: gtk2
# libgnomeprint is needed for printing
Requires: libgnomeprint
Requires: libxml2
Requires: maxima >= 5.13.0
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} >= 1140
%define _use_internal_dependency_generator 0
%define __find_requires %wx_requires
%endif
%description
wxMaxima is a cross platform GUI for the computer algebra system maxima
based on wxWidgets.
wxMaxima features include:
* 2D formatted math display: wxMaxima implements its own math display
engine to nicely display maxima output.
* Menu system: most maxima commands are available through menus. Most
used functions are also available through a button panel at below
the input line.
* Dialogs: commands which require more that one argument can be entered
through dialogs so that there is no need to remember the exact syntax.
* Command line history: the input line has command history and command
completion based on previous input.
* Create documents: text can be mixed with math calculations to create
documents. See the howto for tips on how to use these features.
Documents can be saved and edited again later.
%prep
%setup -q
%build
autoreconf -i
%configure \
--enable-printing \
--enable-unicode-glyphs
make %{?_smp_mflags}
%install
%makeinstall
install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/wxmaxima.desktop
install -D -m 644 ./data/wxmaxima.png %{buildroot}%{_datadir}/pixmaps/wxmaxima.png
%if 0%{?suse_version}
%suse_update_desktop_file -n wxmaxima
%endif
%if 0%{?suse_version}
%fdupes %{buildroot}%{_datadir}
%endif
%find_lang %name
%files -f %name.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
%dir %{_datadir}/wxMaxima
%{_bindir}/*
%{_datadir}/wxMaxima/*
%{_datadir}/pixmaps/wxmaxima.png
%{_datadir}/applications/wxmaxima.desktop
%changelog