5fbf9c
Summary:       Small, portable symbolic math program
5fbf9c
Name:          mathomatic
acec28
Version:       16.0.5
839c79
Release:       4%{?dist} 
5fbf9c
License:       LGPLv2
5fbf9c
Group:         Applications/Engineering
6e381e
URL:           http://www.mathomatic.org/math/
6e381e
Source0:       http://mathomatic.org/mathomatic-%{version}.tar.bz2
cef8ce
Patch0:        mathomatic-16.0.5-libedit.patch
5fbf9c
BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cef8ce
BuildRequires: desktop-file-utils
cef8ce
BuildRequires: libedit-devel
cef8ce
BuildRequires: htmldoc
6e381e
BuildRequires: ImageMagick
1b19d0
# for make test
1b19d0
BuildRequires: time
6e381e
Requires:      m4
6e381e
Requires:      rlwrap
5fbf9c
5fbf9c
%description
5fbf9c
Mathomatic is a small, portable symbolic math program that can
5fbf9c
automatically solve, simplify, differentiate, combine, and compare
5fbf9c
algebraic equations, perform polynomial and complex arithmetic,
5fbf9c
etc. It was written by George Gesslein II and has been under
5fbf9c
development since 1986.
5fbf9c
5fbf9c
%package tools
5fbf9c
Summary:  Various small math tools from mathomatic
5fbf9c
Group:    Applications/Engineering
5fbf9c
Requires: %{name} = %{version}-%{release}
5fbf9c
5fbf9c
%description tools
5fbf9c
This package contains small math tools from mathomatic to
5fbf9c
 - calculate Pascal's triangle
5fbf9c
 - compute any number of consecutive prime numbers
5fbf9c
 - find the minimum number of positive integers that when squared 
5fbf9c
   and added together, equal the given number
5fbf9c
5fbf9c
%prep
5fbf9c
%setup -q
cef8ce
%patch0 -p1
5fbf9c
5fbf9c
%build
cef8ce
%{__make} %{?_smp_mflags} OPTFLAGS="%{optflags}" EDITLINE=1 prefix=%{_prefix} 
cef8ce
#{__make} pdf
5fbf9c
pushd primes
5fbf9c
%{__make} %{?_smp_mflags} prefix=%{_prefix} CFLAGS="%{optflags}"
5fbf9c
5fbf9c
%install
5fbf9c
%{__rm} -rf %{buildroot}
6e381e
%{__make} m4install-degrees DESTDIR=%{buildroot} prefix=%{_prefix}
6e381e
%{__ln_s} %{name}.1.gz %{buildroot}/%{_mandir}/man1/rmath.1.gz
6e381e
%{__ln_s} %{name}.1.gz %{buildroot}/%{_mandir}/man1/matho.1.gz
5fbf9c
%{__rm} -rf %{buildroot}%{_datadir}/doc/%{name}
5fbf9c
desktop-file-install --delete-original \
5fbf9c
    --dir %{buildroot}%{_datadir}/applications  \
5fbf9c
    %{buildroot}%{_datadir}/applications/%{name}.desktop
5fbf9c
pushd primes
5fbf9c
%{__make} install prefix=%{buildroot}%{_prefix} mandir=%{buildroot}%{_mandir}
04d00b
convert  %{buildroot}%{_datadir}/pixmaps/%{name}.xpm \
04d00b
         %{buildroot}%{_datadir}/pixmaps/%{name}.png
04d00b
%{__rm} -f %{buildroot}%{_datadir}/pixmaps/%{name}.xpm
5fbf9c
d5d426
%check
d5d426
%{__make} test
d5d426
pushd primes
d5d426
%{__make} test
d5d426
5fbf9c
%clean
5fbf9c
%{__rm} -rf %{buildroot}
5fbf9c
5fbf9c
%files
5fbf9c
%defattr(-, root, root, -)
5fbf9c
%doc AUTHORS COPYING README.txt changes.txt doc
5fbf9c
%{_bindir}/%{name}
6e381e
%{_bindir}/rmath
6e381e
%{_bindir}/matho
5fbf9c
%{_mandir}/man1/%{name}.1*
6e381e
%{_mandir}/man1/rmath.1*
6e381e
%{_mandir}/man1/matho.1*
5fbf9c
%{_datadir}/pixmaps/%{name}.png
5fbf9c
%{_datadir}/applications/%{name}.desktop
288a53
%{_datadir}/%{name}
5fbf9c
5fbf9c
%files tools
21799f
%defattr(-, root, root, -)
c5ad73
%{_bindir}/matho-sum
d5d426
%{_bindir}/matho-mult
5fbf9c
%{_bindir}/matho-pascal
5fbf9c
%{_bindir}/matho-primes
5fbf9c
%{_bindir}/matho-sumsq
d5d426
%{_bindir}/primorial
c5ad73
%{_mandir}/man1/matho-sum.1*
d5d426
%{_mandir}/man1/matho-mult.1*
5fbf9c
%{_mandir}/man1/matho-pascal.1*
5fbf9c
%{_mandir}/man1/matho-primes.1*
5fbf9c
%{_mandir}/man1/matho-sumsq.1*
d5d426
%{_mandir}/man1/primorial.1*
5fbf9c
5fbf9c
%changelog
839c79
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 16.0.5-4
839c79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
839c79
380827
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 16.0.5-3
380827
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
380827
cef8ce
* Wed Dec 26 2012 Terje Rosten <terje.rosten@ntnu.no> - 16.0.5-2
cef8ce
- Switch to libedit
cef8ce
- Disable pdf build (htmldoc crashes)
cef8ce
acec28
* Mon Nov 19 2012 Terje Rosten <terje.rosten@ntnu.no> - 16.0.5-1
acec28
- 16.0.5
acec28
71c8af
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 15.8.2-2
71c8af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
71c8af
19a43c
* Sat Apr 21 2012 Terje Rosten <terje.rosten@ntnu.no> - 15.8.2-1
19a43c
- 15.8.2
19a43c
0be2e6
* Wed Feb 01 2012 Terje Rosten <terje.rosten@ntnu.no> - 15.7.3-1
0be2e6
- 15.7.3
0be2e6
d1c75f
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 15.6.5-2
d1c75f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d1c75f
3cb34d
* Tue Oct 18 2011 Terje Rosten <terje.rosten@ntnu.no> - 15.6.5-1
3cb34d
- 15.6.5
3cb34d
124a3a
* Thu Jul 21 2011 Terje Rosten <terje.rosten@ntnu.no> - 15.6.2-1
124a3a
- 15.6.2
124a3a
288a53
* Sat Mar 05 2011 Terje Rosten <terje.rosten@ntnu.no> - 15.5.0-1
288a53
- 15.5.0
288a53
- Fix rmath support
288a53
789c41
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 15.4.0-2
789c41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
789c41
6e381e
* Mon Jan 17 2011 Terje Rosten <terje.rosten@ntnu.no> - 15.4.0-1
6e381e
- 15.4.0
6e381e
- Add rmath (#661410)
6e381e
04d00b
* Fri Nov  5 2010 Terje Rosten <terje.rosten@ntnu.no> - 15.3.2-1
04d00b
- 15.3.2
04d00b
fa2b66
* Sat Jul 31 2010 Terje Rosten <terje.rosten@ntnu.no> - 15.1.5-1
fa2b66
- 15.1.5
fa2b66
c5ad73
* Thu Jun 17 2010 Terje Rosten <terje.rosten@ntnu.no> - 15.1.3-1
c5ad73
- 15.1.3
c5ad73
d5d426
* Thu Apr 29 2010 Terje Rosten <terje.rosten@ntnu.no> - 15.0.7-1
d5d426
- 15.0.7
d5d426
aec955
* Sat Dec  5 2009 Terje Rosten <terje.rosten@ntnu.no> - 15.0.0-1
aec955
- 15.0.0
aec955
4cadf4
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14.3.1-3
4cadf4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4cadf4
5daae9
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14.3.1-2
5daae9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
5daae9
2bfd02
* Mon Feb  8 2009 Terje Rosten <terje.rosten@ntnu.no> - 14.3.1-1
2bfd02
- 14.3.1
2bfd02
c8a059
* Mon Jan  5 2009 Terje Rosten <terje.rosten@ntnu.no> - 14.2.8-1
c8a059
- 14.2.8
c8a059
21799f
* Fri Aug 22 2008 Terje Rosten <terje.rosten@ntnu.no> - 14.1.4-1
21799f
- 14.1.4
21799f
- add build patch (add optflags, dont strip)
21799f
5fbf9c
* Wed Jun  4 2008 Terje Rosten <terje.rosten@ntnu.no> - 14.0.4-1
5fbf9c
- 14.0.4
5fbf9c
5fbf9c
* Wed May 21 2008 Terje Rosten <terje.rosten@ntnu.no> - 14.0.3-1
5fbf9c
- 14.0.3
5fbf9c
- cleanup
5fbf9c
- build with readline support
5fbf9c
- add tools subpackage
5fbf9c
5fbf9c
* Mon Nov  5 2007 Dries Verachtert - 12.7.9-1
5fbf9c
- Updated to release 12.7.9.
5fbf9c
5fbf9c
* Tue Apr 27 2004 Dries Verachtert - 11.0e-1
5fbf9c
- Initial package.
5fbf9c