--- libxpp2-java-2.1.10.orig/debian/rules
+++ libxpp2-java-2.1.10/debian/rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+# debian/rules file for libxpp2-java (uses cdbs)
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/ant.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+
+export UPSTREAM_VERSION = $(shell head -1 debian/changelog | cut -f2 -d\( | cut -f1 -d\) | cut -f1 -d\-)
+
+JAVA_HOME := /usr/lib/jvm/default-java
+
+DEB_JARS := $(ANT_HOME)/lib/ant-launcher.jar junit
+DEB_ANT_BUILD_TARGET := compile junit api
+
+install/libxpp2-java::
+	install -m 644 build/lib/PullParser-$(UPSTREAM_VERSION).jar debian/libxpp2-java/usr/share/java/xpp2-$(UPSTREAM_VERSION).jar
+	ln -s xpp2-$(UPSTREAM_VERSION).jar debian/libxpp2-java/usr/share/java/xpp2.jar
--- libxpp2-java-2.1.10.orig/debian/libxpp2-java.dirs
+++ libxpp2-java-2.1.10/debian/libxpp2-java.dirs
@@ -0,0 +1 @@
+usr/share/java
--- libxpp2-java-2.1.10.orig/debian/README.Debian-source
+++ libxpp2-java-2.1.10/debian/README.Debian-source
@@ -0,0 +1,10 @@
+From the original upstream distribution the prebuilt
+jar files and the prebuilt sources were removed:
+
+rm -rf build
+rm lib/ant/*.jar lib/ant/*.ja
+rm lib/junit/*.jar
+rm lib/midpapi/*.jar
+rm lib/xerces2_patched/*.jar
+
+Also the prebuild api documentation was removed.
--- libxpp2-java-2.1.10.orig/debian/control
+++ libxpp2-java-2.1.10/debian/control
@@ -0,0 +1,26 @@
+Source: libxpp2-java
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
+Uploaders: Michael Koch <konqueror@gmx.de>
+Build-Depends: debhelper (>= 7), cdbs (>= 0.4.28), ant, default-jdk
+Build-Depends-Indep: junit
+Standards-Version: 3.8.3
+Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/libxpp2-java
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/libxpp2-java
+Homepage: http://www.extreme.indiana.edu/xgws/xsoap/xpp/xpp2/
+
+Package: libxpp2-java
+Architecture: all
+Depends: default-jre-headless | java1-runtime-headless | java2-runtime-headless, ${misc:Depends}
+Description: XML pull parser library for java V2
+ Xml Pull Parser (in short XPP) is a streaming pull XML parser for java.
+ This version XPP2 is the predecessor of XPP3 (see package libxpp3-java).
+ .
+ XPP2 consists of two parts: generic API and its implementations. This 
+ Debian version only provides the default implementation optimized for
+ size and speed and is not exposing DTD, entities, comments, or processing 
+ instructions to the user.
+ .
+ If you need a xml pull parser implementing the XmlPull API you want to
+ have a look at the libxpp3-java package.
--- libxpp2-java-2.1.10.orig/debian/compat
+++ libxpp2-java-2.1.10/debian/compat
@@ -0,0 +1 @@
+7
--- libxpp2-java-2.1.10.orig/debian/changelog
+++ libxpp2-java-2.1.10/debian/changelog
@@ -0,0 +1,57 @@
+libxpp2-java (2.1.10-6) unstable; urgency=low
+
+  * Make package Depends on java runtime alternatives.
+    Thanks to Justus Piater.
+  * Added Homepage, Vcs-Browser and Vcs-Svn fields
+
+ -- Michael Koch <konqueror@gmx.de>  Mon, 28 Sep 2009 11:26:35 +0200
+
+libxpp2-java (2.1.10-5) unstable; urgency=low
+
+  * (Build-)Depends on default-jdk.
+  * Build-depends on debhelper >= 7.
+  * Moved debhelper, cdbs and ant to Build-Depends.
+  * Let libxpp2-java Depends on ${misc:Depends}.
+  * Fixed typo in long description.
+  * Converted debian/copyright to UTF-8.
+  * Removed Wolfgang and added myself to Uploaders.
+  * Updated Standards-Version to 3.8.3.
+
+ -- Michael Koch <konqueror@gmx.de>  Mon, 14 Sep 2009 22:14:21 +0200
+
+libxpp2-java (2.1.10-4) unstable; urgency=low
+
+  * Removed explicit usage of jikes build compiler property
+    for kaffe jikes -> ecj transition
+  * Added patch to raise build target to 1.3 - required for ecj
+
+ -- Wolfgang Baer <WBaer@gmx.de>  Fri,  6 Jan 2006 19:01:08 +0100
+
+libxpp2-java (2.1.10-3) unstable; urgency=low
+
+  * Added ant-optional due to ant reorganization
+  * Registered javadoc apis with doc-base
+
+  * Upload sponsored by Arnaud Vandyck
+
+ -- Wolfgang Baer <WBaer@gmx.de>  Fri, 16 Sep 2005 15:46:04 +0200
+
+libxpp2-java (2.1.10-2) unstable; urgency=low
+
+  * Upload to unstable
+  * Changed libant1.6-java build-dep to ant
+  * Standards-Version 3.6.2 (no changes)
+
+  * Upload sponsored by Petter Reinholdtsen
+
+ -- Wolfgang Baer <WBaer@gmx.de>  Sat, 13 Aug 2005 13:56:43 +0200
+
+libxpp2-java (2.1.10-1) experimental; urgency=low
+
+  * Initial Release (closes: #305229)
+  * Enabled junit tests
+  * Patched build.xml to exclude SAX/JAXP interfaces from jar
+    + This way it compiles against the SAX/JAXP API of kaffe
+
+ -- Wolfgang Baer <WBaer@gmx.de>  Sat, 23 Apr 2005 15:23:09 +0200
+
--- libxpp2-java-2.1.10.orig/debian/libxpp2-java.doc-base
+++ libxpp2-java-2.1.10/debian/libxpp2-java.doc-base
@@ -0,0 +1,10 @@
+Document: libxpp2-java
+Title: Programmer API for XPP V2
+Author: Aleksander Andrzej Slominski <aslom@cs.indiana.edu>
+Abstract: Javadocs for Xml Pull Parser V2, a streaming pull XML parser
+ for java. This version is the predecessor of XPP3.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libxpp2-java/api/index.html
+Files: /usr/share/doc/libxpp2-java/api/*.html
--- libxpp2-java-2.1.10.orig/debian/libxpp2-java.docs
+++ libxpp2-java-2.1.10/debian/libxpp2-java.docs
@@ -0,0 +1 @@
+doc/api
--- libxpp2-java-2.1.10.orig/debian/watch
+++ libxpp2-java-2.1.10/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://www.extreme.indiana.edu/xgws/xsoap/xpp/download/PullParser2/PullParser([\d.]+)\.tgz
--- libxpp2-java-2.1.10.orig/debian/copyright
+++ libxpp2-java-2.1.10/debian/copyright
@@ -0,0 +1,65 @@
+This package was debianized by Wolfgang Baer <WBaer@gmx.de> on
+Sat, 23 Apr 2005 15:23:09 +0200.
+
+It was downloaded from 
+<http://www.extreme.indiana.edu/xgws/xsoap/xpp/xpp2/index.html>
+
+Copyright:
+
+Upstream Author: Aleksander Andrzej Slominski <aslom@cs.indiana.edu>
+
+License:
+
+ Copyright (c) 2002 The Trustees of Indiana University. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ 1) All redistributions of source code must retain the above
+    copyright notice, the list of authors in the original source
+    code, this list of conditions and the disclaimer listed in this
+    license;
+
+ 2) All redistributions in binary form must reproduce the above 
+    copyright notice, this list of conditions and the disclaimer
+    listed in this license in the documentation and/or other
+    materials provided with the distribution;
+
+ 3) Any documentation included with all redistributions must include
+    the following acknowledgement:
+
+     "This product includes software developed by the Indiana 
+     University Extreme! Lab.  For further information please visit 
+     http://www.extreme.indiana.edu/"
+
+    Alternatively, this acknowledgment may appear in the software
+    itself, and wherever such third-party acknowledgments normally
+    appear.
+
+ 4) The name "Indiana Univeristy" and "Indiana Univeristy
+    Extreme! Lab" shall not be used to endorse or promote
+    products derived from this software without prior written
+    permission from Indiana University.  For written permission,
+    please contact http://www.extreme.indiana.edu/.
+
+ 5) Products derived from this software may not use "Indiana
+    Univeristy" name nor may "Indiana Univeristy" appear in their name,
+    without prior written permission of the Indiana University.
+ 
+ Indiana University provides no reassurances that the source code
+ provided does not infringe the patent or any other intellectual
+ property rights of any other entity.  Indiana University disclaims any
+ liability to any recipient for claims brought by any other entity
+ based on infringement of intellectual property rights or otherwise.
+
+ LICENSEE UNDERSTANDS THAT SOFTWARE IS PROVIDED "AS IS" FOR WHICH 
+ NO WARRANTIES AS TO CAPABILITIES OR ACCURACY ARE MADE. INDIANA
+ UNIVERSITY GIVES NO WARRANTIES AND MAKES NO REPRESENTATION THAT
+ SOFTWARE IS FREE OF INFRINGEMENT OF THIRD PARTY PATENT, COPYRIGHT, OR
+ OTHER PROPRIETARY RIGHTS.  INDIANA UNIVERSITY MAKES NO WARRANTIES THAT
+ SOFTWARE IS FREE FROM "BUGS", "VIRUSES", "TROJAN HORSES", "TRAP
+ DOORS", "WORMS", OR OTHER HARMFUL CODE.  LICENSEE ASSUMES THE ENTIRE
+ RISK AS TO THE PERFORMANCE OF SOFTWARE AND/OR ASSOCIATED MATERIALS,
+ AND TO THE PERFORMANCE AND VALIDITY OF INFORMATION GENERATED USING
+ SOFTWARE.
--- libxpp2-java-2.1.10.orig/debian/patches/02_buildxml_target.patch
+++ libxpp2-java-2.1.10/debian/patches/02_buildxml_target.patch
@@ -0,0 +1,29 @@
+--- build.xml.orig	2006-01-06 19:01:39.000000000 +0100
++++ build.xml	2006-01-06 19:03:05.000000000 +0100
+@@ -9,7 +9,7 @@
+   <property name="midp4palm.home" value="c:/util/midp4palm1.0" />
+ 
+ 
+-  <property name="target" value="1.1" />
++  <property name="target" value="1.3" />
+   <!-- set global properties for this build -->
+ 
+   <property name="name" value="XML Pull Parser"/>
+@@ -318,7 +318,7 @@
+   <!-- =================================================================== -->
+ 
+   <target name="api_sax2" depends="prepare">
+-    <mkdir dir="${build_api_sax2}"/>
++    <mkdir dir="${build_api_sax2}"/>
+     <!-- Use the debian sax package to build against 
+     <javac target="${target}" debug="${debug}" deprecation="${deprecation}"
+       srcdir="${src_api_sax2}" destdir="${build_api_sax2}"
+@@ -336,7 +336,7 @@
+   </target>
+ 
+   <target name="api_jaxp11" depends="api_sax2">
+-    <mkdir dir="${build_api_jaxp11}"/>
++    <mkdir dir="${build_api_jaxp11}"/>
+     <!-- Use the debian jaxp package to build against 
+     <javac target="${target}" debug="${debug}" deprecation="${deprecation}"
+       srcdir="${src_api_jaxp11}" destdir="${build_api_jaxp11}"
--- libxpp2-java-2.1.10.orig/debian/patches/01_buildxml.patch
+++ libxpp2-java-2.1.10/debian/patches/01_buildxml.patch
@@ -0,0 +1,34 @@
+--- build.xml.orig	2005-04-30 20:14:10.000000000 +0200
++++ build.xml	2005-04-23 16:39:39.000000000 +0200
+@@ -318,11 +318,12 @@
+   <!-- =================================================================== -->
+ 
+   <target name="api_sax2" depends="prepare">
+-    <mkdir dir="${build_api_sax2}"/>
++    <mkdir dir="${build_api_sax2}"/>
++    <!-- Use the debian sax package to build against 
+     <javac target="${target}" debug="${debug}" deprecation="${deprecation}"
+       srcdir="${src_api_sax2}" destdir="${build_api_sax2}"
+     >
+-    </javac>
++    </javac>-->
+   </target>
+ 
+   <target name="driver_sax2" depends="api_sax2,intf">
+@@ -335,13 +336,14 @@
+   </target>
+ 
+   <target name="api_jaxp11" depends="api_sax2">
+-    <mkdir dir="${build_api_jaxp11}"/>
++    <mkdir dir="${build_api_jaxp11}"/>
++    <!-- Use the debian jaxp package to build against 
+     <javac target="${target}" debug="${debug}" deprecation="${deprecation}"
+       srcdir="${src_api_jaxp11}" destdir="${build_api_jaxp11}"
+       classpath="${build_api_sax2}"
+     >
+ 
+-    </javac>
++    </javac>-->
+   </target>
+ 
+   <target name="driver_jaxp11" depends="api_sax2,driver_sax2,api_jaxp11,intf">
