5fbf9c
Summary:       Small, portable symbolic math program
5fbf9c
Name:          mathomatic
2bfd02
Version:       14.3.1
4cadf4
Release:       3%{?dist} 
5fbf9c
License:       LGPLv2
5fbf9c
Group:         Applications/Engineering
5fbf9c
URL:           http://www.mathomatic.org/
21799f
Source0:       http://www.panix.com/~gesslein/%{name}-%{version}.tar.bz2
c8a059
Patch0:        mathomatic-14.2.8-build.patch
5fbf9c
BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
5fbf9c
BuildRequires: desktop-file-utils readline-devel
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
21799f
%patch0 -p1
5fbf9c
5fbf9c
%build
21799f
%{__make} %{?_smp_mflags} OPTFLAGS='%{optflags}' READLINE=1 prefix=%{_prefix} 
5fbf9c
5fbf9c
pushd primes
5fbf9c
%{__make} %{?_smp_mflags} prefix=%{_prefix} CFLAGS="%{optflags}"
5fbf9c
5fbf9c
%install
5fbf9c
%{__rm} -rf %{buildroot}
5fbf9c
%{__make} install prefix=%{buildroot}%{_prefix} mandir=%{buildroot}%{_mandir}
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
5fbf9c
pushd primes
5fbf9c
%{__make} install prefix=%{buildroot}%{_prefix} mandir=%{buildroot}%{_mandir}
5fbf9c
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}
5fbf9c
%{_mandir}/man1/%{name}.1*
5fbf9c
%{_datadir}/pixmaps/%{name}.png
5fbf9c
%{_datadir}/applications/%{name}.desktop
5fbf9c
5fbf9c
%files tools
21799f
%defattr(-, root, root, -)
5fbf9c
%{_bindir}/matho-pascal
5fbf9c
%{_bindir}/matho-primes
5fbf9c
%{_bindir}/matho-sumsq
5fbf9c
%{_mandir}/man1/matho-pascal.1*
5fbf9c
%{_mandir}/man1/matho-primes.1*
5fbf9c
%{_mandir}/man1/matho-sumsq.1*
5fbf9c
5fbf9c
%changelog
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