--- pyecm-2.0.orig/debian/copyright
+++ pyecm-2.0/debian/copyright
@@ -0,0 +1,30 @@
+This package was debianized by Martin Kelly <aomighty@gmail.com> on
+Wed,  2 May 2007 22:11:26 -0700.
+
+It was downloaded from http://sourceforge.net/projects/pyecm/
+
+Authors: Eric Larson <elarson3@uoregon.edu>, Martin Kelly <aomighty@gmail.com>
+
+Copyright: 2006-2008 Martin Kelly
+
+License:
+
+   This package 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 package 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 package; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+The Debian packaging is Copyright 2007-2010 Martin Kelly <aomighty@gmail.com>
+and is licensed under the GPL, see above.
--- pyecm-2.0.orig/debian/pyecm.1
+++ pyecm-2.0/debian/pyecm.1
@@ -0,0 +1,49 @@
+.TH PYECM "1" "pyecm 2.0"
+.SH NAME
+pyecm \- Number factorization with the Elliptic Curve Method
+.SH SYNOPSIS
+\fBpyecm\fP [\fIOPTIONS\fP] [\fIFACTORS\fP]...
+.SH DESCRIPTION
+.PP
+\fBpyecm\fP factors numbers using the Elliptic Curve Method (ECM). If FACTORS is given, it will factor each one of these. Otherwise, it will factor from
+standard input. You can type "exit" to quit pyecm at any time.
+.TP
+\fB\-h, \-\-help\fP
+Get help using pyecm.
+.TP
+\fB\-\-portion=num\fP
+Does only part of the work for factoring, corresponding to what fraction of
+the total work the machine is doing. Useful for working in parallel. For
+example, if there are three machines: 1GHz, 1GHz, and 2GHz, print should be set
+to 0.25 for the 1GHz machines and 0.5 for the 2GHz machine. Implies \-r
+and \-v. \-r is needed to avoid duplicating work and \-v is needed to report
+results.
+.TP
+\fB\-\-ov=num\fP
+Sets the value of the internal parameter ov, which determines the trade\-off
+between memory and time usage. Do not touch if you do not know what you are
+doing. Please read all the documentation and understand the full implications
+of the parameter before using this switch.
+.TP
+\fB\-n, \-\-noverbose\fP
+Terse. On by default. Needed to cancel the \-v from the \-\-portion or
+\-\-random switches. If both \-n and \-v are specified, the one specified last
+takes precedence.
+.TP
+\fB\-r, \-\-random\fP
+Chooses random values for sigma, an internal parameter in the calculation.
+Implies \-v; if you're doing something random, you want to know what's happening.
+.TP
+\fB\-v, \-\-verbose\fP
+Explains what is being done with intermediate calculations and results.
+.SH EXAMPLES
+.TP
+pyecm 2^3\-1 1000 "(3^13+2)*5"
+Factor 7, 1000, then 7971625.
+.TP
+pyecm
+Get factors from standard input.
+.SH AUTHOR
+Written by Eric Larson and Martin Kelly.
+.SH "REPORTING BUGS"
+Please send bugs to Eric Larson <elarson3@uoregon.edu>.
--- pyecm-2.0.orig/debian/watch
+++ pyecm-2.0/debian/watch
@@ -0,0 +1,4 @@
+# Compulsory line, this is a version 3 file
+version=3
+
+http://sf.net/pyecm/pyecm-(.*)\.tar\.gz
--- pyecm-2.0.orig/debian/dirs
+++ pyecm-2.0/debian/dirs
@@ -0,0 +1 @@
+usr/bin
--- pyecm-2.0.orig/debian/control
+++ pyecm-2.0/debian/control
@@ -0,0 +1,23 @@
+Source: pyecm
+Section: math
+Priority: optional
+Maintainer: Martin Kelly <aomighty@gmail.com>
+Build-Depends: debhelper (>= 5.0.38)
+Build-Depends-Indep: python (>= 2.3.5-11), python-central (>= 0.5.6)
+Standards-Version: 3.9.0.0
+Homepage: http://sourceforge.net/projects/pyecm
+XS-Python-Version: >= 2.3
+
+Package: pyecm
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}
+Recommends: python-gmpy, python-psyco | not+i386
+XB-Python-Version: ${python:Versions}
+Description: Integer factorization with the Elliptic Curve Method (ECM)
+ Pyecm is a Python program to factor numbers using the Elliptic Curve Method
+ (ECM).  It is relatively fast in that it can quickly factors numbers up to 50
+ digits.
+ .
+ Because it is written in Python, pyecm is very portable. It is also fairly
+ easy to use. Use of python-gmpy and/or python-psyco will speed it up
+ immensely.
--- pyecm-2.0.orig/debian/manpages
+++ pyecm-2.0/debian/manpages
@@ -0,0 +1 @@
+debian/pyecm.1
--- pyecm-2.0.orig/debian/rules
+++ pyecm-2.0/debian/rules
@@ -0,0 +1,33 @@
+#!/usr/bin/make -f
+
+build:
+
+clean:
+	dh_testdir
+	dh_testroot
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_installdirs
+	install pyecm.py $(CURDIR)/debian/pyecm/usr/bin/pyecm 
+
+binary-indep: install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs CHANGELOG.txt
+	dh_installdocs
+	dh_installman
+	dh_compress
+	dh_fixperms
+	dh_pycentral
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary-arch:
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary
--- pyecm-2.0.orig/debian/changelog
+++ pyecm-2.0/debian/changelog
@@ -0,0 +1,74 @@
+pyecm (2.0-3) unstable; urgency=low
+
+  * Bumped Standards-Version to 3.9.0.0 (no changes needed)
+  * Changed the python-psyco Recommends to python-psyco | not+i386
+    (Closes: #583060)
+
+ -- Martin Kelly <aomighty@gmail.com>  Mon, 05 Jul 2010 18:25:40 -0500
+
+pyecm (2.0-2) unstable; urgency=low
+
+  * Bump Standards-Version to 3.8.4.0 (no changes needed)
+  * Added "${misc:Depends} to Depends to remove Lintian warning
+  * Replaced "python-dev" with "python" in Build-Depends-Indep to remove
+    lintian warning
+  * Updated dates in copyright file
+  * Changed copyright file to list copyright as "Copyright" instead of "(C)"
+    to fix lintian warning
+
+ -- Martin Kelly <aomighty@gmail.com>  Mon, 08 Feb 2010 20:30:09 -0500
+
+pyecm (2.0-1) unstable; urgency=low
+
+  * New upstream release
+  * Fixed description in control file (Closes: #465446)
+  * Updated the manpage
+  * Updated Policy to 3.8.0
+  * Gave Homepage: its own header in control as specified by policy
+  * Moved the binary-arch target to binary-indep because this package is
+    architecture-independent.
+  * Updated the copyright to include 2008
+
+ -- Martin Kelly <aomighty@gmail.com>  Mon,  7 Jul 2008 13:19:23 -0700
+
+pyecm (1.2.2-1) unstable; urgency=low
+
+  * New upstream release
+  * Slightly modified the package description text in control
+
+ -- Martin Kelly <aomighty@gmail.com>  Fri,  1 Jun 2007 23:57:28 -0700
+
+pyecm (1.2.1-1) unstable; urgency=low
+
+  * New upstream release
+  * Updated the manpage version (WHOOPS!), escaped the "--" in the manpage
+  with "\-\-"
+  * Added Recommends: python-gmpy
+  * Added a note about using python-gmpy and/or psyco in control.
+  * Made the python-psyco Recommends lines dependent upon
+  architecture, as it should be.
+  * Cleaned up the rules file
+
+ -- Martin Kelly <aomighty@gmail.com>  Wed, 30 May 2007 12:08:52 -0700
+
+pyecm (1.1.2-1) unstable; urgency=low
+
+  * New upstream release
+  * Changed the dh_installchangelogs call to CHANGELOG.txt, as per the upstream name change
+
+ -- Martin Kelly <aomighty@gmail.com>  Fri, 18 May 2007 11:12:37 -0700
+
+pyecm (1.1.1-1) unstable; urgency=low
+
+  * New upstream release
+  * New upstream changelog is now being installed
+  * Minor manpage changes
+
+ -- Martin Kelly <aomighty@gmail.com>  Tue, 15 May 2007 17:39:55 -0700
+
+pyecm (1.1-1) unstable; urgency=low
+
+  * Initial release (Closes: #392721).
+
+ -- Martin Kelly <aomighty@gmail.com>  Wed,  2 May 2007 22:11:26 -0700 
+
--- pyecm-2.0.orig/debian/compat
+++ pyecm-2.0/debian/compat
@@ -0,0 +1 @@
+5
