--- apoo-2.2.orig/debian/dirs
+++ apoo-2.2/debian/dirs
@@ -0,0 +1 @@
+
--- apoo-2.2.orig/debian/copyright
+++ apoo-2.2/debian/copyright
@@ -0,0 +1,21 @@
+This is apoo, written and maintained by Rogerio Reis <rvr@ncc.up.pt>
+on Sun,  7 Nov 1999 16:50:50 +0000.
+
+Can be downloaded from http://www.ncc.up.pt/~rvr/Apoo
+
+Copyright (C) 1999-2003  Rogerio Reis <rvr@ncc.up.pt>  & Nelma Moreira <nam@ncc.up.pt>
+
+  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 with
+  the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL
+  if not, write to the  Free Software Foundation, Inc., 51 Franklin
+  St, Fifth Floor, Boston, MA 02110-1301, USA.
--- apoo-2.2.orig/debian/changelog
+++ apoo-2.2/debian/changelog
@@ -0,0 +1,156 @@
+apoo (2.2-2.4.201403122103) ucs4-0-0-0; urgency=low
+
+  * UCS auto build. No patches were applied to the original source package
+
+ -- Univention builddaemon <buildd@univention.de>  Wed, 12 Mar 2014 21:03:33 +0100
+
+apoo (2.2-2) unstable; urgency=low
+
+  *  (Closes: #485329).
+
+ -- Rogerio Reis <rvr@debian.org>  Thu, 11 Jun 2009 16:27:07 +0100
+
+apoo (2.2-1) unstable; urgency=low
+
+  * New upstream release
+  * New interface coping with activation frames in the stack 
+
+ -- Rogerio Reis <rvr@debian.org>  Tue, 22 Jan 2008 13:59:59 +0000
+
+apoo (2.1-1) unstable; urgency=low
+
+  * New upstream release
+  * Integer overflow (in the interface) fixed
+
+ -- Rogerio Reis <rvr@debian.org>  Mon, 13 Nov 2006 11:16:40 +0000
+
+apoo (2.0-1) unstable; urgency=low
+
+  * New upstream release
+  * Now with a GTK2-based inteface
+
+ -- Rogerio Reis <rvr@debian.org>  Tue, 31 Oct 2006 14:31:40 +0000
+
+apoo (1.3-8) unstable; urgency=low
+
+  * NMU ack (Closes: #380753).
+
+ -- Rogerio Reis <rvr@debian.org>  Mon, 21 Aug 2006 14:14:53 +0100
+
+apoo (1.3-7.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Update package to the last python policy (Closes: #380753):
+    + modules are private, so we only need one version at the time.
+    + simplify packaging accordingly.
+  * Use more dh_* tools to simplify overcomplicated packaging.
+  * Make exec-apoo find its tools, by appending /usr/lib/apoo to the sys.path.
+
+ -- Pierre Habouzit <madcoder@debian.org>  Sun, 13 Aug 2006 02:14:03 +0200
+
+apoo (1.3-7) unstable; urgency=low
+
+  * Bug fix: "apoo: Spelling mistakes in package descripton", thanks to
+    Simon Waters (Closes: #362726).
+
+ -- Rogerio Reis <rvr@debian.org>  Mon,  8 May 2006 13:42:56 +0100
+
+apoo (1.3-5) unstable; urgency=low
+
+  * Bug fix: "Stop building modules for python2.2", thanks
+    to Matthias Klose (Closes: #351118).
+
+ -- Rogerio Reis <rvr@debian.org>  Wed, 15 Feb 2006 11:40:21 +0000
+
+apoo (1.3-4.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * debian/python2.4-apoo.postinst: Use python2.4 rather than python2.2.
+    Closes: #348770.
+  * debian/control:
+    - Remove spurious Architecture field from the source section.
+    - Fix typo in the description of python2.4-apoo.
+
+ -- Matej Vela <vela@debian.org>  Thu, 26 Jan 2006 09:41:48 +0100
+
+apoo (1.3-4) unstable; urgency=low
+
+  * Bug fix: "the input of a zero was ignored by the interface (!!)"
+
+ -- Rogerio Reis <rvr@debian.org>  Thu, 15 Dec 2005 11:49:36 +0000
+
+apoo (1.3-3) unstable; urgency=low
+
+  * Python 2.4 supported
+
+ -- Rogerio Reis <rvr@debian.org>  Mon, 17 Oct 2005 15:14:34 +0100
+
+apoo (1.3-2) unstable; urgency=low
+
+  * Input integers throught graphical interface bug solved
+
+ -- Rogerio Reis <rvr@debian.org>  Mon, 13 Dec 2004 12:30:19 +0000
+
+apoo (1.3-1) unstable; urgency=low
+
+  * New upstream release
+  * Memory mapped IO (new flavour)
+
+ -- Rogerio Reis <rvr@debian.org>  Mon,  6 Dec 2004 12:56:43 +0000
+
+apoo (1.2-1) unstable; urgency=low
+
+  * New upstream release
+  * Memory mapped IO
+
+ -- Rogerio Reis <rvr@debian.org>  Thu,  2 Dec 2004 10:39:51 +0000
+
+apoo (1.1-7) unstable; urgency=low
+
+  * online documentation corrected
+
+ -- Rogerio Reis <rvr@debian.org>  Wed, 15 Sep 2004 22:42:08 +0100
+
+apoo (1.1-6) unstable; urgency=low
+
+  * Bug fix: "build error without failure, missing build-dep", thanks to
+    Frank Lichtenheld (Closes: #250210).
+
+ -- Rogerio Reis <rvr@debian.org>  Fri,  4 Jun 2004 16:17:54 +0100
+
+apoo (1.1-5) unstable; urgency=low
+
+  * Generation of both normal and "optimized" objects.
+  * Documentation corrected (icons now are local).
+  * Description changed.
+
+ -- Rogerio Reis <rvr@debian.org>  Tue, 14 Oct 2003 22:26:54 +0100
+
+apoo (1.1-4) unstable; urgency=low
+
+  * compileall call now depends on the python version installed (closes: #205921)
+
+ -- Rogerio Reis <rvr@debian.org>  Mon, 18 Aug 2003 09:07:31 +0100
+
+apoo (1.1-3) unstable; urgency=low
+
+  * Error in control file. Lint complained of the usage of Build-Depends
+    instead of Build-Depends-Indep.
+  * apoo generated as dummy package. python2.2-apoo and python2.3-apoo
+    generated.
+  
+ -- Rogerio Reis <rvr@debian.org>  Tue, 12 Aug 2003 00:35:40 +0100
+
+apoo (1.1-2) unstable; urgency=low
+
+  * Help windows not resizable.
+  * Timestamps of some files were from the epoch.
+
+ -- Rogerio Reis <rvr@debian.org>  Sun, 10 Aug 2003 00:47:40 +0100
+
+apoo (1.1-1) unstable; urgency=low
+
+  * Initial Release. (closes: #204761)
+
+ -- Rogerio Reis <rvr@debian.org>  Sun, 10 Aug 2003 00:16:17 +0100
+
--- apoo-2.2.orig/debian/compat
+++ apoo-2.2/debian/compat
@@ -0,0 +1 @@
+4
--- apoo-2.2.orig/debian/apoo.menu
+++ apoo-2.2/debian/apoo.menu
@@ -0,0 +1,2 @@
+?package(apoo):needs="X11" section="Applications/Education"\
+  title="apoo" command="/usr/bin/apoo"
--- apoo-2.2.orig/debian/apoo.dirs
+++ apoo-2.2/debian/apoo.dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/lib/apoo
--- apoo-2.2.orig/debian/apoo.1x
+++ apoo-2.2/debian/apoo.1x
@@ -0,0 +1,27 @@
+.TH APOO 1x
+.SH NAME
+apoo \- An Assembly course aid
+.SH SYNOPSIS
+.B apoo
+
+.SH DESCRIPTION
+This manual page documents briefly the
+.BR apoo
+command.
+
+This manual page was written for the Debian GNU/Linux distribution
+because the original program does not have a manual page.
+Instead, it has documentation in /usr/share/doc/apoo.
+.PP
+.B apoo
+
+A virtual machine (a CPU) created for teaching purposes. All the programs 
+are written in Python and are very easy to extend to incorporate new 
+assembly-like pseudo-intuctions. A TK-based interface is provided, to 
+help debugging or just examining the execution of programs.
+Another program permits a tutor to create exercises and write conditions
+to grade the students solutions. 
+
+.SH AUTHOR
+This manual page was written by Rogerio Reis <rvr@ncc.up.pt>,
+for the Debian GNU/Linux system (but may be used by others).
--- apoo-2.2.orig/debian/rules
+++ apoo-2.2/debian/rules
@@ -0,0 +1,72 @@
+#!/usr/bin/make -f
+INSTALL = /usr/bin/install
+INSTALL_PROGRAM = $(INSTALL) -m 755 -o root -g root
+INSTALL_DATA = $(INSTALL) -m 644 -o root -g root
+INSTALL_DIR = $(INSTALL) -d -m 755 -o root -g root
+DESTDIR=`pwd`/debian/apoo
+DOCS = docs/help_apoo.txt docs/help_assembly.txt docs/help_tester.txt
+
+EXAMPLES = examples/abs.apoo examples/fact.apoo examples/fib.apoo \
+    examples/ifx1.apoo examples/ln.apoo examples/ln2.apoo \
+    examples/max.apoo examples/mems.apoo examples/push.apoo \
+    examples/sti.apoo examples/submax.apoo examples/subsoma.apoo \
+    examples/t1.apoo examples/t1.tutor \
+    examples/test1.apoo examples/test1.tutor examples/test2.apoo \
+    examples/test2.tutor examples/teste2.apoo examples/while.apoo \
+    examples/while1.apoo
+
+PYFILES = interface.py vpu.py vpu_tutor.py constants.py
+
+PYTHON = /usr/bin/python
+
+DIRS =  usr/bin usr/lib/apoo usr/share/doc
+
+build: 
+	dh_testdir
+
+clean:
+	dh_testdir
+	dh_testroot
+	dh_clean
+	$(RM) apoo exec-apoo
+	$(RM) -f *.pyc *.pyo
+
+install:
+
+binary-indep: build install
+	dh_testdir -i 
+	dh_testroot -i
+	dh_clean -k
+
+	dh_installdirs -i
+	dh_installman -i debian/apoo.1x
+	dh_link /usr/share/man/man1/apoo.1x /usr/share/man/man1/exec-apoo.1x
+
+	${INSTALL_DATA} ${PYFILES} $(DESTDIR)/usr/lib/apoo
+	set -e; \
+	for file in apoo exec-apoo; do \
+	    python subst.py %python% $(PYTHON) < $$file.master > $$file; \
+	    ${INSTALL_PROGRAM} $$file $(DESTDIR)/usr/bin;                \
+	done
+
+	dh_installexamples -i ${EXAMPLES}
+
+	dh_installdirs -i
+	dh_installdocs -i ${DOCS} html/
+	dh_installchangelogs -i
+	dh_pysupport -i
+	dh_compress -i -X.txt 
+	dh_installmenu -i
+	dh_fixperms -i
+	dh_installdeb -i
+	dh_shlibdeps -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+# Build architecture-dependent files here.
+binary-arch: 
+	echo ""
+
+binary: binary-indep 
+.PHONY: build clean binary-indep binary-arch binary install configure
--- apoo-2.2.orig/debian/control
+++ apoo-2.2/debian/control
@@ -0,0 +1,21 @@
+Source: apoo
+Section: misc
+Priority: optional
+Maintainer: Rogerio Reis <rvr@debian.org>
+Build-Depends: debhelper (>> 4.0.0),
+Build-Depends-Indep: python-dev, python-support (>= 0.4.0)
+Standards-Version: 3.8.0
+
+Package: apoo
+Architecture: all
+Depends: ${python:Depends}, python-gtk2
+Conflicts: python2.3-apoo (<< 1.3-7.1), python2.4-apoo (<< 1.3-7.1)
+Replaces: python2.3-apoo (<< 1.3-7.1), python2.4-apoo (<< 1.3-7.1)
+Description: An Assembly course aid
+ A virtual machine (a CPU) created for teaching purposes. All the programs
+ are written in Python and are very easy to extend to incorporate new
+ assembly-like pseudo-instuctions. A gtk2-based interface is provided, to
+ help debugging or just examining the execution of programs.
+ Another program permits a tutor to create exercises and write rules to
+ automatically grade the students' solutions.
+
--- apoo-2.2.orig/debian/docs
+++ apoo-2.2/debian/docs
@@ -0,0 +1,3 @@
+docs/help_apoo.txt
+docs/help_assembly.txt
+docs/help_tester.txt
