5fbf9cb
Summary:       Small, portable symbolic math program
5fbf9cb
Name:          mathomatic
6055d98
Version:       15.0.0
6055d98
Release:       1%{?dist} 
5fbf9cb
License:       LGPLv2
5fbf9cb
Group:         Applications/Engineering
5fbf9cb
URL:           http://www.mathomatic.org/
21799fa
Source0:       http://www.panix.com/~gesslein/%{name}-%{version}.tar.bz2
6055d98
Patch0:        mathomatic-15.0.0-optflags.patch
5fbf9cb
BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
5fbf9cb
BuildRequires: desktop-file-utils readline-devel
5fbf9cb
5fbf9cb
%description
5fbf9cb
Mathomatic is a small, portable symbolic math program that can
5fbf9cb
automatically solve, simplify, differentiate, combine, and compare
5fbf9cb
algebraic equations, perform polynomial and complex arithmetic,
5fbf9cb
etc. It was written by George Gesslein II and has been under
5fbf9cb
development since 1986.
5fbf9cb
5fbf9cb
%package tools
5fbf9cb
Summary:  Various small math tools from mathomatic
5fbf9cb
Group:    Applications/Engineering
5fbf9cb
Requires: %{name} = %{version}-%{release}
5fbf9cb
5fbf9cb
%description tools
5fbf9cb
This package contains small math tools from mathomatic to
5fbf9cb
 - calculate Pascal's triangle
5fbf9cb
 - compute any number of consecutive prime numbers
5fbf9cb
 - find the minimum number of positive integers that when squared 
5fbf9cb
   and added together, equal the given number
5fbf9cb
5fbf9cb
%prep
5fbf9cb
%setup -q
6055d98
%patch0 -p0
5fbf9cb
5fbf9cb
%build
6055d98
%{__make} %{?_smp_mflags} OPTFLAGS="%{optflags}" READLINE=1 prefix=%{_prefix} 
5fbf9cb
5fbf9cb
pushd primes
5fbf9cb
%{__make} %{?_smp_mflags} prefix=%{_prefix} CFLAGS="%{optflags}"
5fbf9cb
5fbf9cb
%install
5fbf9cb
%{__rm} -rf %{buildroot}
5fbf9cb
%{__make} install prefix=%{buildroot}%{_prefix} mandir=%{buildroot}%{_mandir}
5fbf9cb
%{__rm} -rf %{buildroot}%{_datadir}/doc/%{name}
5fbf9cb
desktop-file-install --delete-original \
5fbf9cb
    --dir %{buildroot}%{_datadir}/applications  \
5fbf9cb
    %{buildroot}%{_datadir}/applications/%{name}.desktop
5fbf9cb
5fbf9cb
pushd primes
5fbf9cb
%{__make} install prefix=%{buildroot}%{_prefix} mandir=%{buildroot}%{_mandir}
5fbf9cb
5fbf9cb
%clean
5fbf9cb
%{__rm} -rf %{buildroot}
5fbf9cb
5fbf9cb
%files
5fbf9cb
%defattr(-, root, root, -)
5fbf9cb
%doc AUTHORS COPYING README.txt changes.txt doc
5fbf9cb
%{_bindir}/%{name}
5fbf9cb
%{_mandir}/man1/%{name}.1*
5fbf9cb
%{_datadir}/pixmaps/%{name}.png
5fbf9cb
%{_datadir}/applications/%{name}.desktop
5fbf9cb
5fbf9cb
%files tools
21799fa
%defattr(-, root, root, -)
5fbf9cb
%{_bindir}/matho-pascal
5fbf9cb
%{_bindir}/matho-primes
5fbf9cb
%{_bindir}/matho-sumsq
5fbf9cb
%{_mandir}/man1/matho-pascal.1*
5fbf9cb
%{_mandir}/man1/matho-primes.1*
5fbf9cb
%{_mandir}/man1/matho-sumsq.1*
5fbf9cb
5fbf9cb
%changelog
6055d98
* Sat Dec  5 2009 Terje Rosten <terje.rosten@ntnu.no> - 15.0.0-1
6055d98
- 15.0.0
6055d98
6055d98
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14.3.1-3
6055d98
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
6055d98
5daae90
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14.3.1-2
5daae90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
5daae90
2bfd024
* Mon Feb  8 2009 Terje Rosten <terje.rosten@ntnu.no> - 14.3.1-1
2bfd024
- 14.3.1
2bfd024
c8a0593
* Mon Jan  5 2009 Terje Rosten <terje.rosten@ntnu.no> - 14.2.8-1
c8a0593
- 14.2.8
c8a0593
21799fa
* Fri Aug 22 2008 Terje Rosten <terje.rosten@ntnu.no> - 14.1.4-1
21799fa
- 14.1.4
21799fa
- add build patch (add optflags, dont strip)
21799fa
5fbf9cb
* Wed Jun  4 2008 Terje Rosten <terje.rosten@ntnu.no> - 14.0.4-1
5fbf9cb
- 14.0.4
5fbf9cb
5fbf9cb
* Wed May 21 2008 Terje Rosten <terje.rosten@ntnu.no> - 14.0.3-1
5fbf9cb
- 14.0.3
5fbf9cb
- cleanup
5fbf9cb
- build with readline support
5fbf9cb
- add tools subpackage
5fbf9cb
5fbf9cb
* Mon Nov  5 2007 Dries Verachtert - 12.7.9-1
5fbf9cb
- Updated to release 12.7.9.
5fbf9cb
5fbf9cb
* Tue Apr 27 2004 Dries Verachtert - 11.0e-1
5fbf9cb
- Initial package.
5fbf9cb