--- simple-xml-2.3.2.orig/debian/orig-tar.sh
+++ simple-xml-2.3.2/debian/orig-tar.sh
@@ -0,0 +1,19 @@
+#!/bin/sh -e
+
+# called by uscan with '--upstream-version' <version> <file>
+DIR=simple-xml-$2
+TAR=../simple-xml_$2.orig.tar.gz
+
+# clean up the upstream tarball
+tar -x -z -f $3
+tar -c -z -f $TAR -X debian/orig-tar.exclude $DIR
+rm -rf $DIR $3
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+    . .svn/deb-layout
+    mv $TAR $origDir
+    echo "moved $TAR to $origDir"
+fi
+
+exit 0
--- simple-xml-2.3.2.orig/debian/libsimple-xml-java.poms
+++ simple-xml-2.3.2/debian/libsimple-xml-java.poms
@@ -0,0 +1 @@
+debian/pom.xml
--- simple-xml-2.3.2.orig/debian/rules
+++ simple-xml-2.3.2/debian/rules
@@ -0,0 +1,18 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/ant.mk
+
+JAVA_HOME            := /usr/lib/jvm/default-java
+DEB_JARS             := stax stax-api
+DEB_ANT_BUILD_TARGET := build javadoc
+DEB_ANT_BUILDFILE    := build.xml
+DEB_ANT_ARGS         := -Dpackage=$(DEB_SOURCE_PACKAGE) -DartifactId=$(DEB_SOURCE_PACKAGE) -Dversion=$(DEB_UPSTREAM_VERSION)
+
+binary-post-install/lib$(DEB_SOURCE_PACKAGE)-java::
+	mh_installpoms -plib$(DEB_SOURCE_PACKAGE)-java
+	mh_installjar -plib$(DEB_SOURCE_PACKAGE)-java -l debian/pom.xml jar/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).jar
+
+clean::
+	rm -rf api build
+	-rm -rf debian/tmp
--- simple-xml-2.3.2.orig/debian/orig-tar.exclude
+++ simple-xml-2.3.2/debian/orig-tar.exclude
@@ -0,0 +1,4 @@
+*.jar
+jar
+lib
+javadoc
--- simple-xml-2.3.2.orig/debian/ant.properties
+++ simple-xml-2.3.2/debian/ant.properties
@@ -0,0 +1,2 @@
+build.sysclasspath=only
+javadoc.path=api
--- simple-xml-2.3.2.orig/debian/README.source
+++ simple-xml-2.3.2/debian/README.source
@@ -0,0 +1,18 @@
+The original upstream source package has been modified in the way
+that it does not include any binary files (e.g. *.jar), neither 
+dependencies of this library nor the library itself.
+
+The dependencies of this software will be provided by the corresponding
+Debian packages and the binary of this software will be created
+if you build this source package.
+
+Files or directories which were removed from the orignal source tarball:
+
+lib/
+jar/
+javadoc/
+test/lib/*.jar
+
+The tarball can be recreated with the command uscan (which is going to call
+the orig-tar.sh script)
+
--- simple-xml-2.3.2.orig/debian/copyright
+++ simple-xml-2.3.2/debian/copyright
@@ -0,0 +1,36 @@
+This package was debianized by Fabian Köster <f.koester@tarent.de> on
+Sun, 04 Oct 2009 17:43:51 +0200.
+
+It was downloaded from <http://simple.sourceforge.net/>.
+
+Upstream Author:
+
+    Niall Gallagher <niallg@users.sf.net>
+
+Copyright:
+
+    Copyright (C) 2005-2010, Niall Gallagher <niallg@users.sf.net>
+
+License:
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+On Debian systems, the complete text of the Apache version 2.0 license
+can be found in `/usr/share/common-licenses/Apache-2.0'.
+
+The Debian packaging is:
+
+    Copyright (C) 2009 Fabian Köster <f.koester@tarent.de>
+
+and is licensed under the GPL version 3, 
+see `/usr/share/common-licenses/GPL-3'.
--- simple-xml-2.3.2.orig/debian/changelog
+++ simple-xml-2.3.2/debian/changelog
@@ -0,0 +1,16 @@
+simple-xml (2.3.2-1) unstable; urgency=low
+
+  * Standards-Version updated to version 3.8.4
+  
+  [ Fabian Köster ]
+  * New upstream release
+  * Correct license information in debian/pom.xml
+  * Exclude generated Javadoc from orig-tarball
+
+ -- Sylvestre Ledru <sylvestre@debian.org>  Fri, 05 Mar 2010 19:44:34 +0100
+
+simple-xml (2.2-1) unstable; urgency=low
+
+  * Initial release (Closes: #549566)
+
+ -- Fabian Köster <f.koester@tarent.de>  Tue, 26 Jan 2010 13:54:18 +0100
--- simple-xml-2.3.2.orig/debian/maven.rules
+++ simple-xml-2.3.2/debian/maven.rules
@@ -0,0 +1 @@
+junit junit jar s/3\..*/3.x/ *
--- simple-xml-2.3.2.orig/debian/compat
+++ simple-xml-2.3.2/debian/compat
@@ -0,0 +1 @@
+7
--- simple-xml-2.3.2.orig/debian/libsimple-xml-java-doc.doc-base
+++ simple-xml-2.3.2/debian/libsimple-xml-java-doc.doc-base
@@ -0,0 +1,9 @@
+Document: libsimple-xml-java-doc
+Title: Javadoc API for Simple
+Author: Niall Gallagher <niallg@users.sf.net>
+Abstract: The javadoc API of the Simple XML Serialization and Configuration Framework
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libsimple-xml-java-doc/api/index.html
+Files: /usr/share/doc/libsimple-xml-java-doc/api/*
--- simple-xml-2.3.2.orig/debian/pom.xml
+++ simple-xml-2.3.2/debian/pom.xml
@@ -0,0 +1,94 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.simpleframework</groupId>
+  <artifactId>simple-xml</artifactId>
+  <packaging>jar</packaging>
+  <version>2.3.2</version>
+  <name>Simple XML</name>
+  <url>http://simple.sourceforge.net</url>
+  <description>Simple is a high performance XML serialization and configuration framework for Java</description>
+  <licenses>
+    <license>
+      <name>The Apache Software License, Version 2.0</name>
+      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+      <distribution>repo</distribution>
+    </license>
+  </licenses>
+  <scm>
+     <url>http://svn.sourceforge.net/viewvc/simple/trunk/download/stream</url>
+     <connection>https://svn.sourceforge.net/svnroot/simple/trunk/download/stream</connection>
+  </scm>  
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>stax</groupId>
+      <artifactId>stax-api</artifactId>
+      <version>1.0.1</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>stax</groupId>
+      <artifactId>stax</artifactId>
+      <version>1.2.0</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>xmlunit</groupId>
+      <artifactId>xmlunit</artifactId>
+      <version>1.0</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+  <reporting>
+    <plugins>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>cobertura-maven-plugin</artifactId>
+      </plugin>
+    </plugins>
+  </reporting>
+  <build>
+    <extensions>
+      <extension>
+        <groupId>org.apache.maven.wagon</groupId>
+         <artifactId>wagon-ssh-external</artifactId>
+         <version>1.0-alpha-5</version>
+      </extension>
+    </extensions>
+    <plugins>
+      <plugin>
+         <groupId>org.apache.maven.plugins</groupId>
+         <artifactId>maven-compiler-plugin</artifactId>
+         <configuration>
+              <source>1.5</source>
+              <target>1.5</target>
+         </configuration>
+      </plugin>
+      <plugin>
+         <groupId>org.apache.maven.plugins</groupId>
+         <artifactId>maven-source-plugin</artifactId>
+         <executions>
+            <execution>
+                <id>attach-sources</id>
+                <goals>
+                    <goal>jar</goal>
+                </goals>
+            </execution>
+         </executions>
+      </plugin>
+    </plugins>
+  </build>
+  <distributionManagement>
+    <repository>
+      <id>sourceforge</id>
+      <name>Source Forge Repository</name>
+      <url>scp://web.sourceforge.net/home/groups/s/si/simpleweb/htdocs/maven</url>
+    </repository>
+  </distributionManagement>
+</project>
--- simple-xml-2.3.2.orig/debian/libsimple-xml-java.dirs
+++ simple-xml-2.3.2/debian/libsimple-xml-java.dirs
@@ -0,0 +1 @@
+usr/share/java
--- simple-xml-2.3.2.orig/debian/control
+++ simple-xml-2.3.2/debian/control
@@ -0,0 +1,43 @@
+Source: simple-xml
+Section: libs
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
+Uploaders: Fabian Köster <f.koester@tarent.de>
+Build-Depends: ant, debhelper (>= 7), cdbs, default-jdk
+Build-Depends-Indep: maven-repo-helper
+Standards-Version: 3.8.4
+Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/simple-xml
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/simple-xml
+Homepage: http://simple.sourceforge.net/
+
+Package: libsimple-xml-java
+Section: java
+Architecture: all
+Depends: ${misc:Depends}, default-jre-headless | java2-runtime-headless
+Suggests: java-virtual-machine, libsimple-xml-java-doc
+Description: A XML serialization and configuration framework for Java
+ Simple is a high performance XML serialization and configuration framework for
+ Java. Its goal is to provide an XML framework that enables rapid development
+ of XML configuration and communication systems.
+ This framework aids the development of XML systems with minimal effort and 
+ reduced errors. It offers full object serialization and deserialization, 
+ maintaining each reference encountered.
+ In essence it is similar to C# XML serialization for the Java platform, but
+ offers additional features for interception and manipulation. 
+
+Package: libsimple-xml-java-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}
+Suggests: libsimple-xml-java
+Description: API Documentation for libsimple-xml-java
+ Simple is a high performance XML serialization and configuration framework for
+ Java. Its goal is to provide an XML framework that enables rapid development
+ of XML configuration and communication systems.
+ This framework aids the development of XML systems with minimal effort and 
+ reduced errors. It offers full object serialization and deserialization, 
+ maintaining each reference encountered.
+ In essence it is similar to C# XML serialization for the Java platform, but
+ offers additional features for interception and manipulation. 
+ .
+ This package provides the Javadoc API for Simple.
--- simple-xml-2.3.2.orig/debian/watch
+++ simple-xml-2.3.2/debian/watch
@@ -0,0 +1,5 @@
+# Compulsory line, this is a version 3 file
+version=3
+
+http://sf.net/simple/simple-xml-(.*)\.tar\.gz debian debian/orig-tar.sh
+
--- simple-xml-2.3.2.orig/debian/libsimple-xml-java-doc.docs
+++ simple-xml-2.3.2/debian/libsimple-xml-java-doc.docs
@@ -0,0 +1 @@
+api
