--- mathomatic-12.6.3.orig/primes/matho-around.1.debdiff +++ mathomatic-12.6.3/primes/matho-around.1.debdiff @@ -0,0 +1,26 @@ +.TH matho-around 1 "June 24, 2004" "matho-around" + +.SH NAME +matho-around \- display prime factors of integers around the specified number + +.SH SYNOPSIS +.B matho-around +.RI [ number_1 [number_2] ] +.br + +.SH DESCRIPTION +This program displays the prime factors of the 21 integers closest to and +including the specified number. A number or number range may be specified on +the command line. + +.SH BUGS +Not known at the moment, if you find one, please report it. + +.SH SEE ALSO +mathomatic(1), matho-twin(1), matho-sumsq(1), matho-primes(1) + +.SH AUTHOR +George Gesslein II + +This manpage was created by David Moreno Garza for the +Debian Project but may be used by others. --- mathomatic-12.6.3.orig/primes/matho-primes.1.debdiff +++ mathomatic-12.6.3/primes/matho-primes.1.debdiff @@ -0,0 +1,26 @@ +.TH matho-primes 1 "June 24, 2004" "matho-primes" + +.SH NAME +matho-primes \- Generate consecutive prime numbers up to 14 digits + +.SH SYNOPSIS +.B matho-primes +[start [stop]] ["pal" [base]] + +.SH DESCRIPTION +This program computes any number of consecutive primes using an extended +sieve algorithm. Generates up to 14 digit primes. Typing "primes pal" will +display only palindromic primes. This new version allows a range to be +specified on the command line. + +.SH BUGS +Not known at the moment, if you find one, please report it. + +.SH SEE ALSO +mathomatic(1), matho-twin(1), matho-sumsq(1), matho-around(1) + +.SH AUTHOR +George Gesslein II + +This manpage was created by David Moreno Garza for the +Debian Project but may be used by others. --- mathomatic-12.6.3.orig/primes/matho-sumsq.1.debdiff +++ mathomatic-12.6.3/primes/matho-sumsq.1.debdiff @@ -0,0 +1,29 @@ +.TH matho-sumsq 1 "June 24, 2004" "matho-sumsq" + +.SH NAME +matho-sumsq \- Find the sum of the squares for a given integer + +.SH SYNOPSIS +.B matho-sumsq +.RI [ numbers ] + +.SH DESCRIPTION +This program finds the minimum number of positive integers that when squared +and added together, equal the given number. There is a proof that no more +than 4 squares summed together are required to represent any positive +integer. The command line may contain integers to find the squares of, +otherwise the program counts up from 0. If the number of squares is 2 or +less, this program displays all possible combinations, otherwise it just +displays the first combination it finds. + +.SH BUGS +Not known at the moment, if you find one, please report it. + +.SH SEE ALSO +mathomatic(1), matho-twin(1), matho-around(1), matho-primes(1) + +.SH AUTHOR +George Gesslein II + +This manpage was created by David Moreno Garza for the +Debian Project but may be used by others. --- mathomatic-12.6.3.orig/primes/matho-twin.1.debdiff +++ mathomatic-12.6.3/primes/matho-twin.1.debdiff @@ -0,0 +1,26 @@ +.TH matho-twin 1 "June 24, 2004" "matho-twin" + +.SH NAME +matho-twin \- filter for displaying only twin primes + +.SH SYNOPSIS +.B matho-twin + +.SH DESCRIPTION + This is a filter program for finding twin primes from the output of +"primes". Twin primes are two primes that differ in value by 2. + +.SH USAGE +matho-primes | matho-twin + +.SH BUGS +Not known at the moment, if you find one, please report it. + +.SH SEE ALSO +mathomatic(1), matho-primes(1), matho-sumsq(1), matho-around(1) + +.SH AUTHOR +George Gesslein II + +This manpage was created by David Moreno Garza for the +Debian Project but may be used by others. --- mathomatic-12.6.3.orig/debian/TODO.Debian +++ mathomatic-12.6.3/debian/TODO.Debian @@ -0,0 +1,2 @@ +- tiny python programs: "fact/factorial" and "primes/mult". +- what are those primes/*.debdiff for? (they were there before my adoption) --- mathomatic-12.6.3.orig/debian/control +++ mathomatic-12.6.3/debian/control @@ -0,0 +1,34 @@ +Source: mathomatic +Section: math +Priority: optional +Maintainer: Sandro Tosi +Build-Depends: debhelper (>= 5), libreadline5-dev, dpatch +Standards-Version: 3.7.2 + +Package: mathomatic +Architecture: any +Depends: ${shlibs:Depends} +Description: Portable Computer Algebra System (CAS) + Mathomatic implements most of the rules of algebra for the + mathematical operators +, -, *, /, and power (including roots). + . + Mathomatic can symbolically: + - Solve equations; + - Completely simplify equations; + - Differentiate; + - Do sensitivity and finite series analysis; + - Combine and solve simultaneous algebraic equations; + - Do complex number and polynomial arithmetic; + - Generate efficient "C" code. + . + Homepage: http://www.mathomatic.com/ + +Package: mathomatic-primes +Architecture: any +Depends: mathomatic (= ${Source-Version}) +Description: Prime Number Tools for Mathomatic + Mathomatic implements a couple of extra tools for prime number + handling, such as priming, twins, around and 'sumsqing' which are + covered on this package. + . + Homepage: http://www.mathomatic.com/ --- mathomatic-12.6.3.orig/debian/compat +++ mathomatic-12.6.3/debian/compat @@ -0,0 +1 @@ +5 --- mathomatic-12.6.3.orig/debian/watch +++ mathomatic-12.6.3/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://www.panix.com/~gesslein/mathomatic-(.*)\.tar\.bz2 --- mathomatic-12.6.3.orig/debian/changelog +++ mathomatic-12.6.3/debian/changelog @@ -0,0 +1,91 @@ +mathomatic (12.6.3-1) unstable; urgency=low + + * New upstream release + * debian/control + - new maintainer (Closes #387359) + - correctly indented Homepage meta-field + - bump Standards-Version to 3.7.2 + - reformatted short & long descriptions + - dependecy against dpatch, debhelper >= 5 + * debian/compat + - bump to 5 + * debian/mathomatic-primes.menu + - title changed + * debian/copyright + - new maintainer + - added copyright by upstream and License section + - added copyright notes for files not under LGPL + * debian/rules + - dpatch system + - using dh_installdocs + * debian/patches/10_fix_makefile.dpatch + - uses dpatch to modify makefile + * debian/patches/15_fix_primes_makefile.dpatch + - uses dpatch to modify primes/makefile + * debian/docs + - removed in favour of dh_installdocs + + -- Sandro Tosi Sun, 17 Sep 2006 00:01:08 +0200 + +mathomatic (12.5.16-1) unstable; urgency=low + + * New upstream release. + + -- David Moreno Garza Wed, 10 May 2006 20:26:10 -0500 + +mathomatic (12.5.5-1) unstable; urgency=low + + * New upstream release (Closes: #345163). + * Added a watch file. + + -- David Moreno Garza Thu, 29 Dec 2005 17:17:51 -0600 + +mathomatic (12.4.10-1) unstable; urgency=low + + * New upstream release. + * Building against libreadline5 now (Closes: #326326). + + -- David Moreno Garza Sun, 4 Sep 2005 23:16:31 -0500 + +mathomatic (12.4.9-1) unstable; urgency=low + + * New upstream release. + * Changed maintainer's address. + + -- David Moreno Garza Tue, 30 Aug 2005 07:53:02 -0500 + +mathomatic (12.1c-1) unstable; urgency=low + + * New upstream release + + -- David Moreno Garza Wed, 2 Mar 2005 11:03:44 -0600 + +mathomatic (11.6e-1) unstable; urgency=low + + * New upstream release + + -- David Moreno Garza Tue, 25 Jan 2005 10:26:07 -0600 + +mathomatic (11.4c-1) unstable; urgency=low + + * New upstream release + * NMU sponsored by MJ Ray . + + -- David Moreno Garza Thu, 21 Oct 2004 23:16:04 -0500 + +mathomatic (11.3d-1) unstable; urgency=low + + * New upstream release. + * Added readline support (Closes: #269341). + * Renamed binaries of mathomatic-primes (Closes: #270835). + * Changed section from 'science' to 'math' (Closes: #268934). + * NMU sponsored by MJ Ray . + + -- David Moreno Garza Sun, 12 Sep 2004 17:41:13 -0500 + +mathomatic (11.3c-1) unstable; urgency=low + + * Initial release (Closes: #247428). + * NMU sponsored by MJ Ray . + + -- David Moreno Garza Sun, 15 Aug 2004 11:11:09 -0500 --- mathomatic-12.6.3.orig/debian/mathomatic-primes.menu +++ mathomatic-12.6.3/debian/mathomatic-primes.menu @@ -0,0 +1,5 @@ +?package(mathomatic-primes):\ + needs="text"\ + section="Apps/Math"\ + title="Primes Numbers (Mathomatic)"\ + command="/usr/bin/matho-primes" --- mathomatic-12.6.3.orig/debian/patches/00list +++ mathomatic-12.6.3/debian/patches/00list @@ -0,0 +1,2 @@ +10_fix_makefile.dpatch +15_fix_primes_makefile.dpatch --- mathomatic-12.6.3.orig/debian/patches/10_fix_makefile.dpatch +++ mathomatic-12.6.3/debian/patches/10_fix_makefile.dpatch @@ -0,0 +1,31 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 10_fix_makefile.dpatch by Sandro Tosi +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad mathomatic~/makefile mathomatic/makefile +--- mathomatic~/makefile 2006-07-23 12:22:54.000000000 +0200 ++++ mathomatic/makefile 2006-09-16 22:32:19.000000000 +0200 +@@ -10,9 +10,9 @@ + CFLAGS += $(READLINE:1=-DREADLINE) + LIBS += $(READLINE:1=-lreadline -lncurses) + +-prefix ?= /usr/local ++prefix ?= $(DESTDIR)/usr + bindir ?= $(prefix)/bin +-mandir ?= $(prefix)/man ++mandir ?= $(prefix)/share/man + docdir ?= $(prefix)/share/doc + + AOUT = mathomatic +@@ -21,7 +21,7 @@ + factor.o super.o unfactor.o poly.o diff.o integrate.o \ + complex.o complex_lib.o list.o gcd.o factor_int.o + MAN1 = mathomatic.1 +-DOCS = COPYING README.txt changes.txt ++DOCS = README.txt changes.txt + + all: $(TARGETS) + @echo Make completed. --- mathomatic-12.6.3.orig/debian/patches/15_fix_primes_makefile.dpatch +++ mathomatic-12.6.3/debian/patches/15_fix_primes_makefile.dpatch @@ -0,0 +1,22 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 15_fix_primes_makefile.dpatch by Sandro Tosi +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad mathomatic~/primes/makefile mathomatic/primes/makefile +--- mathomatic~/primes/makefile 2006-08-21 02:26:10.000000000 +0200 ++++ mathomatic/primes/makefile 2006-09-16 23:06:32.000000000 +0200 +@@ -3,9 +3,9 @@ + CFLAGS += -O2 -Wall + LDFLAGS += -s -lm + +-prefix ?= /usr/local ++prefix ?= $(DESTDIR)/usr + bindir ?= $(prefix)/bin +-mandir ?= $(prefix)/man ++mandir ?= $(prefix)/share/man + + TARGETS = matho-primes matho-pascal matho-sumsq + MANPAGES1 = matho-primes.1 matho-pascal.1 matho-sumsq.1 --- mathomatic-12.6.3.orig/debian/mathomatic.menu +++ mathomatic-12.6.3/debian/mathomatic.menu @@ -0,0 +1,5 @@ +?package(mathomatic):\ + needs="text"\ + section="Apps/Math"\ + title="mathomatic"\ + command="/usr/bin/mathomatic" --- mathomatic-12.6.3.orig/debian/copyright +++ mathomatic-12.6.3/debian/copyright @@ -0,0 +1,44 @@ +This package was debianized by David Moreno Garza on +Mon, 21 Jun 2004 18:59:41 -0500. + +It is now maintained by Sandro Tosi . + +It was downloaded from http://www.mathomatic.com/ + +Upstream Author: George Gesslein II + +Copyright: 1987-2006 George Gesslein II. + +License: + You are free to distribute this software under the terms of + the GNU Lesser General Public License. + +On Debian systems, the complete text of the GNU Lesser General Public +License can be found in /usr/share/common-licenses/LGPL file. + + +The folowing files have different copyright notes: + +primes/{lsqrt.c, matho-pascal.c, matho-primes.c, matho-sumsq.c}: + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +fact/fact.java + +/* + * Factorial function in Java. + * Written by Gordon McKinney (http://gmckinney.info). + */ --- mathomatic-12.6.3.orig/debian/rules +++ mathomatic-12.6.3/debian/rules @@ -0,0 +1,61 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +include /usr/share/dpatch/dpatch.make + +CFLAGS = -Wall -g -O3 + +configure: configure-stamp + +configure-stamp: + dh_testdir + touch configure-stamp + + +build: build-stamp +build-stamp: patch-stamp configure-stamp + dh_testdir + $(MAKE) READLINE=1 + $(MAKE) -C primes + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + -$(MAKE) clean + -$(MAKE) -C primes clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs -A usr/bin + $(MAKE) install DESTDIR=$(CURDIR)/debian/mathomatic + $(MAKE) -C primes install DESTDIR=$(CURDIR)/debian/mathomatic-primes + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + mv debian/mathomatic/usr/share/doc/mathomatic/changes.txt debian/mathomatic/usr/share/doc/mathomatic/changelog + dh_installchangelogs + dh_installdocs README.txt tasks.txt + dh_installexamples + dh_installmenu + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch + +.PHONY: build clean binary-indep binary-arch binary install configure --- mathomatic-12.6.3.orig/debian/mathomatic-primes.docs +++ mathomatic-12.6.3/debian/mathomatic-primes.docs @@ -0,0 +1 @@ +primes/README.txt