2011-02-25 18:36:01 +00:00
|
|
|
#
|
2020-01-25 07:10:40 +00:00
|
|
|
# spec file for package mathomatic
|
2011-02-25 18:36:01 +00:00
|
|
|
#
|
2020-01-25 07:10:50 +00:00
|
|
|
# Copyright (c) 2019 SUSE LLC
|
2011-02-25 18:36:01 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2020-01-25 07:10:50 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2020-01-25 07:10:40 +00:00
|
|
|
#
|
|
|
|
|
|
2011-02-25 18:36:01 +00:00
|
|
|
|
|
|
|
|
Name: mathomatic
|
2020-01-25 07:10:50 +00:00
|
|
|
Version: 16.0.5
|
2020-01-25 07:10:40 +00:00
|
|
|
Release: 0
|
2011-02-25 18:36:01 +00:00
|
|
|
Summary: Computer algebra system
|
2020-01-25 07:10:50 +00:00
|
|
|
License: LGPL-2.1-or-later
|
2020-01-25 07:10:40 +00:00
|
|
|
Group: Productivity/Scientific/Math
|
2020-01-25 07:10:50 +00:00
|
|
|
URL: http://www.mathomatic.org/
|
|
|
|
|
Source: http://mathomatic.orgserve.de/mathomatic-%{version}.tar.bz2
|
2011-02-25 18:36:01 +00:00
|
|
|
BuildRequires: readline-devel
|
|
|
|
|
BuildRequires: update-desktop-files
|
2020-01-25 07:10:40 +00:00
|
|
|
Requires: m4
|
2011-03-23 14:10:21 +00:00
|
|
|
|
2011-02-25 18:36:01 +00:00
|
|
|
%description
|
|
|
|
|
Mathomatic is a free, portable, general-purpose Computer Algebra System (CAS)
|
|
|
|
|
that can automatically solve, differentiate, simplify, combine, and compare
|
2011-09-25 23:06:00 +00:00
|
|
|
algebraic equations, perform standard, complex number, modular, and polynomial
|
2011-05-14 11:34:02 +00:00
|
|
|
arithmetic, etc. It does some calculus and is very easy to learn and use.
|
|
|
|
|
Plotting expressions with gnuplot is also supported. This package
|
2011-04-19 22:11:22 +00:00
|
|
|
is complete, including Mathomatic, the Prime Number Tools, m4 Mathomatic,
|
|
|
|
|
and all documentation.
|
2011-02-25 18:36:01 +00:00
|
|
|
|
2011-05-14 11:34:02 +00:00
|
|
|
%package devel
|
2020-01-25 07:10:40 +00:00
|
|
|
Summary: Development Package for Mathomatic
|
|
|
|
|
Group: Development/Libraries/C and C++
|
2011-05-14 11:34:02 +00:00
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This package contains the Mathomatic symbolic math library, for using the
|
|
|
|
|
Mathomatic code inside of any C compatible program. This is a static
|
2011-06-12 20:19:14 +00:00
|
|
|
library only, with no dependencies or requirements. It has a small, easy
|
|
|
|
|
to use API that is written in C. The Mathomatic code is not re-entrant.
|
2011-05-14 11:34:02 +00:00
|
|
|
|
2011-02-25 18:36:01 +00:00
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%build
|
2020-01-25 07:10:50 +00:00
|
|
|
make OPTFLAGS="%{optflags}" %{?_smp_mflags} READLINE=1
|
|
|
|
|
make -C primes OPTFLAGS="%{optflags}" %{?_smp_mflags}
|
|
|
|
|
make -C lib %{?_smp_mflags} lib \
|
|
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
|
OPTFLAGS="%{optflags} -g -ffat-lto-objects"
|
|
|
|
|
%else
|
|
|
|
|
OPTFLAGS="%{optflags} -g"
|
|
|
|
|
%endif
|
2011-02-25 18:36:01 +00:00
|
|
|
|
|
|
|
|
%install
|
2020-01-25 07:10:40 +00:00
|
|
|
make bininstall matho-rmath-install DESTDIR=%{buildroot} prefix=%{_prefix} docdir=%{_docdir} datadir=%{_datadir}
|
2020-01-25 07:10:50 +00:00
|
|
|
rm %{buildroot}%{_datadir}/pixmaps/mathomatic.{png,xpm}
|
|
|
|
|
install -m0644 icons/mathomatic.svg %{buildroot}%{_datadir}/pixmaps/%{name}.svg
|
|
|
|
|
%suse_update_desktop_file -n %{name}
|
2020-01-25 07:10:40 +00:00
|
|
|
make -C primes install DESTDIR=%{buildroot} prefix=%{_prefix}
|
2011-05-14 11:34:02 +00:00
|
|
|
make -C lib install DESTDIR=%{buildroot} prefix=%{_prefix} libdir=%{_libdir} includedir=%{_includedir}
|
|
|
|
|
make -C lib distclean
|
2011-02-25 18:36:01 +00:00
|
|
|
|
2020-01-25 07:10:50 +00:00
|
|
|
%check
|
|
|
|
|
make check
|
|
|
|
|
make -C primes check bigcheck
|
2011-02-25 18:36:01 +00:00
|
|
|
|
|
|
|
|
%files
|
2020-01-25 07:10:50 +00:00
|
|
|
%license COPYING
|
2011-06-12 20:19:14 +00:00
|
|
|
%doc examples tests
|
2020-01-25 07:10:50 +00:00
|
|
|
%doc README.txt AUTHORS NEWS doc
|
|
|
|
|
%{_mandir}/man1/mathomatic.1%{?ext_man}
|
|
|
|
|
%{_mandir}/man1/matho.1%{?ext_man}
|
|
|
|
|
%{_mandir}/man1/rmath.1%{?ext_man}
|
|
|
|
|
%{_mandir}/man1/matho-primes.1%{?ext_man}
|
|
|
|
|
%{_mandir}/man1/matho-pascal.1%{?ext_man}
|
|
|
|
|
%{_mandir}/man1/matho-sumsq.1%{?ext_man}
|
|
|
|
|
%{_mandir}/man1/primorial.1%{?ext_man}
|
|
|
|
|
%{_mandir}/man1/matho-mult.1%{?ext_man}
|
|
|
|
|
%{_mandir}/man1/matho-sum.1%{?ext_man}
|
2011-06-12 20:19:14 +00:00
|
|
|
%{_datadir}/%{name}
|
2011-02-25 18:36:01 +00:00
|
|
|
%{_bindir}/mathomatic
|
2011-04-19 22:11:22 +00:00
|
|
|
%{_bindir}/matho
|
|
|
|
|
%{_bindir}/rmath
|
|
|
|
|
%{_bindir}/matho-primes
|
|
|
|
|
%{_bindir}/matho-pascal
|
|
|
|
|
%{_bindir}/matho-sumsq
|
|
|
|
|
%{_bindir}/primorial
|
|
|
|
|
%{_bindir}/matho-mult
|
|
|
|
|
%{_bindir}/matho-sum
|
2020-01-25 07:10:50 +00:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
%{_datadir}/pixmaps/%{name}.svg
|
2011-02-25 18:36:01 +00:00
|
|
|
|
2011-05-14 11:34:02 +00:00
|
|
|
%files devel
|
|
|
|
|
%doc lib
|
2020-01-25 07:10:50 +00:00
|
|
|
%{_mandir}/man3/matho_init.3%{?ext_man}
|
|
|
|
|
%{_mandir}/man3/matho_clear.3%{?ext_man}
|
|
|
|
|
%{_mandir}/man3/matho_parse.3%{?ext_man}
|
|
|
|
|
%{_mandir}/man3/matho_process.3%{?ext_man}
|
2011-05-14 11:34:02 +00:00
|
|
|
%{_libdir}/libmathomatic.a
|
|
|
|
|
%{_includedir}/mathomatic.h
|
|
|
|
|
|
2011-02-25 18:36:01 +00:00
|
|
|
%changelog
|