summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrej Shadura <andrewsh@debian.org>2018-10-30 22:57:03 +0100
committerAndrej Shadura <andrewsh@debian.org>2018-10-31 13:30:13 +0100
commitf3c75b0fa64c1c2e9900c0b40df565d3581f51ba (patch)
treeb9baa740228254f1b8d218f8986a62c71a4eb36e
parentc07e532bfacd94a1417b7c6544911be2daf1aab2 (diff)
Add Debian packaging for libjdom2-java
-rw-r--r--debian/README.source4
-rw-r--r--debian/ant.properties10
-rw-r--r--debian/changelog264
-rw-r--r--debian/compat1
-rw-r--r--debian/control44
-rw-r--r--debian/copyright124
-rw-r--r--debian/libjdom2-java-doc.doc-base10
-rw-r--r--debian/libjdom2-java-doc.install1
-rw-r--r--debian/libjdom2-java.poms1
-rw-r--r--debian/manifest8
-rw-r--r--debian/maven.ignoreRules4
-rw-r--r--debian/maven.publishedRules1
-rw-r--r--debian/maven.rules1
-rwxr-xr-xdebian/orig-tar.sh23
-rw-r--r--debian/pom.xml140
-rwxr-xr-xdebian/rules23
-rw-r--r--debian/source/format1
-rw-r--r--debian/watch3
18 files changed, 663 insertions, 0 deletions
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..7e001e7
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,4 @@
+Information about libjdom2-java
+-------------------------------
+
+The upstream source tarball has been repacked to removed the third-party binary jar files.
diff --git a/debian/ant.properties b/debian/ant.properties
new file mode 100644
index 0000000..0dfd4c7
--- /dev/null
+++ b/debian/ant.properties
@@ -0,0 +1,10 @@
+compile.source=1.6
+compile.target=1.6
+
+version=2.x
+
+isorelax.jar = /usr/share/java/isorelax.jar
+jaxen.jar = /usr/share/java/jaxen.jar
+junit.jar = /usr/share/java/junit4.jar
+parser.jar = /usr/share/java/xercesImpl.jar
+xalan.jar = /usr/share/java/xalan2.jar
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d3e0560
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,264 @@
+libjdom2-java (2.0.6-1) unstable; urgency=medium
+
+ * New upstream release
+ * Removed unused sample and test files with unclear licensing terms
+ (Closes: #741419)
+
+ -- Emmanuel Bourg <ebourg@apache.org> Fri, 23 May 2014 22:58:20 +0200
+
+libjdom2-java (2.0.5-1) unstable; urgency=low
+
+ * New upstream release (Closes: #726432)
+ - Updated debian/watch
+ - Updated debian/copyright to acknowledge the new contributors
+ - source/target changed to 1.6
+ - New build dependencies on libisorelax-java and libxalan2-java
+ - Removed the build dependency on libregexp-java
+ - Updated the OSGi metadata
+ - Updated the Maven pom
+ * Use XZ compression for the upstream tarball
+
+ -- Emmanuel Bourg <ebourg@apache.org> Fri, 01 Nov 2013 20:30:05 +0200
+
+libjdom1-java (1.1.3-1) unstable; urgency=low
+
+ [ Emmanuel Bourg ]
+ * New upstream release:
+ - Updated the Maven pom
+ - Dropped the +dfsg qualifier since no non-free feature was removed
+ - Updated debian/orig-tar.sh for the new source layout
+ - Removed the unused lintian overrides
+ * Removed the javadoc jar from the documentation package
+ * debian/control:
+ - Updated Standards-Version to 3.9.4 (no changes)
+ - Use canonical URLs in the Vcs-* fields
+ - Removed java-virtual-machine from the suggested dependencies
+ * debian/copyright: Merged the duplicate Copyright fields
+
+ [ tony mancill ]
+ * Correct typo in package description. (Closes: #703155)
+ - Thanks to Pascal De Vuyst for the bug report.
+
+ -- Emmanuel Bourg <ebourg@apache.org> Mon, 29 Jul 2013 11:20:35 +0200
+
+libjdom1-java (1.1.2+dfsg-2) unstable; urgency=low
+
+ [ Jakub Adam ]
+ * Fix OSGi metadata after last upload
+
+ [ Damien Raude-Morvan ]
+ * Add Depends on libjaxen-java for libjdom1-java.
+
+ -- Damien Raude-Morvan <drazzib@debian.org> Sun, 20 Nov 2011 18:25:01 +0100
+
+libjdom1-java (1.1.2+dfsg-1) unstable; urgency=low
+
+ * New upstream release!
+ - d/watch: Update to github.
+ - d/README.source,d/orig-tar.sh: Updated.
+ - d/control: Add Build-Deps on libregexp-java for contrib.
+ * d/control: Add missing Build-Deps on libxerces2-java.
+ * Enable unit testing:
+ - d/control: Add Build-Deps on junit and ant-optional.
+ - d/ant.properties: Set junit.jar property.
+
+ -- Damien Raude-Morvan <drazzib@debian.org> Wed, 02 Nov 2011 22:13:47 +0100
+
+libjdom1-java (1.1.1+dfsg-5) unstable; urgency=low
+
+ [Jakub Adam]
+ * Add OSGi metadata to jar manifest
+
+ [tony mancill]
+ * Update Vcs-Svn link in debian/control
+ * Fix lintian warnings regarding DEP5 formatting in debian/copyright
+
+ -- Jakub Adam <jakub.adam@ktknet.cz> Mon, 17 Oct 2011 21:12:05 +0200
+
+libjdom1-java (1.1.1+dfsg-4) unstable; urgency=low
+
+ * Really upload to unstable.
+
+ -- Damien Raude-Morvan <drazzib@debian.org> Sun, 07 Aug 2011 18:50:00 +0200
+
+libjdom1-java (1.1.1+dfsg-3) experimental; urgency=low
+
+ * Upload to unstable.
+ * Bump Standards-Version to 3.9.2 (no changes needed).
+ * Remove Java runtime Depends.
+ * Add lintian-override for libjdom1-java-doc: codeless-jar.
+ * Fix debian/watch to use dversionmangle.
+
+ -- Damien Raude-Morvan <drazzib@debian.org> Sun, 07 Aug 2011 18:28:40 +0200
+
+libjdom1-java (1.1.1+dfsg-2) experimental; urgency=low
+
+ [Ludovic Claude]
+ * Bump Standards-Version to 3.9.1 (no changes needed)
+ * Use source format 3.0 (quilt)
+ * Add --has-package-version to the pom
+ * Replace dh_auto-install with
+ dh $@ --buildsystem=ant --with maven_repo_helper
+ * Install the javadoc jar in the Maven repository
+
+ [Damien Raude-Morvan]
+ * Remove Arnaud Vandyck from Uploaders
+
+ -- Ludovic Claude <ludovic.claude@laposte.net> Sun, 05 Dec 2010 00:05:21 +0100
+
+libjdom1-java (1.1.1+dfsg-1) unstable; urgency=low
+
+ * New upstream version.
+ - Update debian/pom.xml
+ * New libjdom1-java-doc package:
+ - Split API Javadoc from bytecode (Closes: #506366)
+ - Install API Javadoc to /usr/share/doc/libjdom1-java/api/
+ * Add myself to Uploaders
+ * Build-Depends on default-jdk instead of default-jdk-builddep
+ because we don't build a native GCJ package.
+ * Use Debhelper 7:
+ - Refactor debian/rules file (Closes: #538020)
+ - Define classpath in debian/ant.properties
+ * Bump Standards-Version to 3.8.3 (no changes needed)
+
+ -- Damien Raude-Morvan <drazzib@debian.org> Sun, 08 Nov 2009 19:06:15 +0100
+
+libjdom1-java (1.1+dfsg-3) unstable; urgency=low
+
+ * Upload to unstable.
+
+ -- Torsten Werner <twerner@debian.org> Sun, 09 Aug 2009 12:12:30 +0200
+
+libjdom1-java (1.1+dfsg-2) experimental; urgency=low
+
+ * Add watch file
+ * Change section to java, bump up Standards-Version to 3.8.1
+ * Add the Maven POM to the package,
+ * Add a Build-Depends-Indep dependency on maven-repo-helper
+ * Use mh_installpom and mh_installjar to install the POM and the jar to the
+ Maven repository
+
+ -- Ludovic Claude <ludovic.claude@laposte.net> Sat, 16 May 2009 02:32:36 +0100
+
+libjdom1-java (1.1+dfsg-1) unstable; urgency=low
+
+ * New upstream version.
+ * Updated and machine-interpretable copyright file.
+ * Repacked source tarball to remove binary jar files.
+ * debian/control: Added myself as Uploader, removed Wolfgang.
+ * debian/control: Added Homepage and Vcs-* fields.
+ * debian/control: Bump Standards-Version (no changes needed).
+ * Use debhelper 7 rather instead of cdbs.
+ * (Build-)depend on default-jdk-builddep and default-jre-headless.
+
+ -- Marcus Better <marcus@better.se> Mon, 29 Sep 2008 11:49:02 +0200
+
+libjdom1-java (1.0-4) unstable; urgency=low
+
+ * Build with java-gcj-compat-dev and libjaxen-java
+ * Standards-Version 3.7.2 (no changes)
+
+ -- Arnaud Vandyck <avdyk@debian.org> Sun, 5 Nov 2006 16:57:26 +0100
+
+libjdom1-java (1.0-3) unstable; urgency=low
+
+ * Removed libgnujaxp-java dependency - not needed anymore
+ + Updated debian/rules accordingly
+ + Removed dependencies from build-depends and depends
+ * Simplified depends line to kaffe | java1-runtime | java2-runtime
+ * debian/rules: Removed jikes build compiler property
+ * Removed Takashi from Uploaders
+
+ -- Wolfgang Baer <WBaer@gmx.de> Thu, 5 Jan 2006 10:18:57 +0100
+
+libjdom1-java (1.0-2) unstable; urgency=low
+
+ * Removed libjdom0-java.links file from old release
+ * libant1.6-java to ant transition
+ * Patched build.xml to build with target=1.3 to support JDK 1.3
+ * Removed clean:: target - not needed anymore
+ * Added suggests java-virtual-machine
+ * Generated (normal) javadoc through gjdoc
+ + Added javadoc target to ant targets
+ + Removed doxygen stuff (debian/rules, debian/control, doxygen.cfg)
+ + Register documentation with doc-base
+ * Standards-Version 3.6.2 (no changes)
+ * Added myself to uploaders
+
+ * Upload sponsored by Petter Reinholdtsen
+
+ -- Wolfgang Baer <WBaer@gmx.de> Sun, 11 Sep 2005 18:36:14 +0200
+
+libjdom1-java (1.0-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Arnaud Vandyck <avdyk@debian.org> Sun, 21 Nov 2004 16:58:40 +0100
+
+libjdom0-java (0.7b.20020216-3) unstable; urgency=low
+
+ * xalan is not needed to build and use libjdom! Changed dependency to
+ libgnujaxp-java, removed xalan (Closes: #251390)
+
+ -- Arnaud Vandyck <avdyk@debian.org> Mon, 31 May 2004 00:19:42 +0200
+
+libjdom0-java (0.7b.20020216-2) unstable; urgency=low
+
+ * changed libxalan2-java dependency to libxalan-java (which is in main),
+ thanks to Daniel Schepler (Closes: #251390)
+
+ -- Arnaud Vandyck <avdyk@debian.org> Fri, 28 May 2004 15:12:25 +0200
+
+libjdom0-java (0.7b.20020216-1) unstable; urgency=low
+
+ * changed the source name
+ * I need this old version for libnsuml-java
+ * removed the -doc package (everything is bundled with this package)
+
+ -- Arnaud Vandyck <avdyk@debian.org> Tue, 11 May 2004 01:41:11 +0200
+
+jdom (0.7b.20020216-4) unstable; urgency=low
+
+ * remove dependency for crimson and xerces, and add dependency
+ for xalan2.jar because javax.xml.tarnsform package move to
+ xalan2. (Closes: #140547)
+
+ -- Takashi Okamoto <tora@debian.org> Sat, 30 Mar 2002 18:42:16 +0900
+
+jdom (0.7b.20020216-3) unstable; urgency=low
+
+ * use doxygen instead of doc++.
+ * split package into libjdom-java and lijdom-java-doc.
+
+ -- Takashi Okamoto <tora@debian.org> Tue, 19 Feb 2002 23:31:12 +0900
+
+jdom (0.7b.20020216-2) unstable; urgency=low
+
+ * add API document by doc++.
+
+ -- Takashi Okamoto <tora@debian.org> Sun, 17 Feb 2002 22:49:10 +0900
+
+jdom (0.7b.20020216-1) unstable; urgency=low
+
+ * New upstream.
+ * fixed build error.(Closes: #133716)
+ * remove javadoc because I need SUN's javac to generate javadoc.
+ But I want to put jdom into main. So I gave up generating them.
+
+ -- Takashi Okamoto <tora@debian.org> Sat, 16 Feb 2002 13:59:47 +0900
+
+jdom (0.7b.20010728-2) unstable; urgency=low
+
+ * fixed build.sh use ant. ant is contrib package and should not be used
+ for main package.(Closes: #133716)
+
+ -- Takashi Okamoto <tora@debian.org> Thu, 14 Feb 2002 09:19:35 +0900
+
+jdom (0.7b.20010728-1) unstable; urgency=low
+
+ * Initial release.
+ * Closes: #106888 (ITP)
+
+ -- Takashi Okamoto <tora@debian.org> Sat, 28 Jul 2001 21:40:28 +0900
+
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..5cc70b1
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,44 @@
+Source: libjdom2-java
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
+Uploaders: Emmanuel Bourg <ebourg@apache.org>
+Build-Depends: ant, ant-optional, debhelper (>= 9), default-jdk
+Build-Depends-Indep: javahelper,
+ junit4,
+ libisorelax-java,
+ libjaxen-java,
+ libxalan2-java,
+ libxerces2-java,
+ maven-repo-helper (>= 1.5)
+Standards-Version: 3.9.5
+Vcs-Git: https://salsa.debian.org/java-team/libjdom2-java.git
+Vcs-Browser: https://salsa.debian.org/java-team/libjdom2-java
+Homepage: http://jdom.org
+
+Package: libjdom2-java
+Architecture: all
+Depends: libjaxen-java, ${misc:Depends}
+Suggests: libjdom2-java-doc
+Description: lightweight and fast library using XML
+ JDOM is, quite simply, a Java representation of an XML document. JDOM
+ provides a way to represent that document for easy and efficient
+ reading, manipulation, and writing. It has a straightforward API, is
+ lightweight and fast, and is optimized for the Java programmer. It's
+ an alternative to DOM and SAX, although it integrates well with both
+ DOM and SAX.
+
+Package: libjdom2-java-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}
+Suggests: libjdom2-java
+Description: lightweight and fast library using XML - documentation
+ JDOM is, quite simply, a Java representation of an XML document. JDOM
+ provides a way to represent that document for easy and efficient
+ reading, manipulation, and writing. It has a straightforward API, is
+ lightweight and fast, and is optimized for the Java programmer. It's
+ an alternative to DOM and SAX, although it integrates well with both
+ DOM and SAX.
+ .
+ This package contains API documentation (Javadoc) of libjdom2-java.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..c70f594
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,124 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: JDOM
+Upstream-Contact: Jason Hunter, Brett McLaughlin, Rolf Lear
+Source: https://github.com/hunterhacker/jdom
+
+Files: *
+Copyright: 2000-2004, Brett McLaughlin
+ 2000-2011, Jason Hunter <jhunter@servlets.com>
+ 2011-2013, Rolf Lear <jdom@tuis.net>
+License: BSD-4
+Comment:
+ Subject: Re: License clarification on jdom source files
+ From: Rolf <jdom@tuis.net>
+ Date: 01/12/2014 12:33 PM
+ To: Emmanuel Bourg <ebourg@apache.org>, Jason Hunter <jhunter@servlets.com>
+ .
+ Hi Emmanuel,
+ .
+ All source code in JDOM is licensed and copyrighted the same way. This
+ license is available in the root folder of all distributions, as well
+ as on the JDOM site, and in the root of the source code.
+ .
+ For convenience, it is also inserted in (apparently not all) the
+ source files.
+ .
+ I have inspected these files and can assure you that:
+ .
+ 1. those files were all personally written by me with the exception of
+ contrib/src/java/org/jdom2/contrib/ids/doc-files/TestIds.java
+ .
+ 2. the license for those files (including TestIds.java) is the same
+ as all other files in JDOM, as expressed in the LICENSE.txt file here:
+ https://github.com/hunterhacker/jdom/blob/master/LICENSE.txt
+ .
+ All these files are in the contrib package, which is not commonly
+ used by JDOM users. It is not likely that you are using, or shipping
+ these files. Are you sure this impacts your uncertainty?
+ .
+ Regardless, the ommission of the duplication of the licence text at
+ the top of the files is an ommission that can be corrected. Not that
+ I do not plan to do a new JDOM release just to get this header data
+ in to source code which is already licensed that way..
+ .
+ Rolf
+ .
+ On 11/01/2014 2:55 PM, Emmanuel Bourg wrote:
+ > Hi Rolf,
+ >
+ > I'm trying to package jdom 2 for Debian/Ubuntu but I'm blocked by a
+ > licensing uncertainty on some source files. These files are missing a
+ > license header:
+ >
+ > contrib/src/java/org/jdom2/contrib/android/TranslateTests.java
+ > contrib/src/java/org/jdom2/contrib/dtdaware/AttFilter.java
+ > contrib/src/java/org/jdom2/contrib/ids/doc-files/TestIds.java
+ > contrib/src/java/org/jdom2/contrib/perf/DevNull.java
+ > contrib/src/java/org/jdom2/contrib/perf/PerfDoc.java
+ > contrib/src/java/org/jdom2/contrib/perf/PerfTest.java
+ > contrib/src/java/org/jdom2/contrib/perf/PerfVerifier.java
+ > contrib/src/java/org/jdom2/contrib/perf/TimeRunnable.java
+ > contrib/src/java/org/jdom2/contrib/xpath/java/JavaXPathExpression.java
+ > contrib/src/java/org/jdom2/contrib/xpath/java/JavaXPathFactory.java
+ > contrib/src/java/org/jdom2/contrib/xpath/xalan/XalanXPathExpression.java
+ > contrib/src/java/org/jdom2/contrib/xpath/xalan/XalanXPathFactory.java
+ >
+ > Do you think you could add a header to clarify the situation ?
+ >
+ > Thank you,
+ >
+ > Emmanuel Bourg
+
+Files: debian/*
+Copyright: 2008, Marcus Better
+ 2011, Damien Raude-Morvan
+ 2013, Emmanuel bourg
+License: BSD-4
+
+License: BSD-4
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ .
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions, and the following disclaimer.
+ .
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions, and the disclaimer that follows
+ these conditions in the documentation and/or other materials
+ provided with the distribution.
+ .
+ 3. The name "JDOM" must not be used to endorse or promote products
+ derived from this software without prior written permission. For
+ written permission, please contact <request_AT_jdom_DOT_org>.
+ .
+ 4. Products derived from this software may not be called "JDOM", nor
+ may "JDOM" appear in their name, without prior written permission
+ from the JDOM Project Management <request_AT_jdom_DOT_org>.
+ .
+ In addition, we request (but do not require) that you include in the
+ end-user documentation provided with the redistribution and/or in the
+ software itself an acknowledgement equivalent to the following:
+ "This product includes software developed by the
+ JDOM Project (http://www.jdom.org/)."
+ Alternatively, the acknowledgment may be graphical using the logos
+ available at http://www.jdom.org/images/logos.
+ .
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE JDOM AUTHORS OR THE PROJECT
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+ .
+ This software consists of voluntary contributions made by many
+ individuals on behalf of the JDOM Project and was originally
+ created by Jason Hunter <jhunter_AT_jdom_DOT_org> and
+ Brett McLaughlin <brett_AT_jdom_DOT_org>. For more information
+ on the JDOM Project, please see <http://www.jdom.org/>.
diff --git a/debian/libjdom2-java-doc.doc-base b/debian/libjdom2-java-doc.doc-base
new file mode 100644
index 0000000..dab2098
--- /dev/null
+++ b/debian/libjdom2-java-doc.doc-base
@@ -0,0 +1,10 @@
+Document: libjdom2-java
+Title: Programmer API for jdom release 2.0
+Author: http://www.jdom.org/
+Abstract: Programmer API of the JDOM 2.0 release a
+ lightweight and fast XML library.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libjdom2-java/api/index.html
+Files: /usr/share/doc/libjdom2-java/api/*
diff --git a/debian/libjdom2-java-doc.install b/debian/libjdom2-java-doc.install
new file mode 100644
index 0000000..d1ffcb8
--- /dev/null
+++ b/debian/libjdom2-java-doc.install
@@ -0,0 +1 @@
+build/apidocs/* /usr/share/doc/libjdom2-java/api/
diff --git a/debian/libjdom2-java.poms b/debian/libjdom2-java.poms
new file mode 100644
index 0000000..6da8f2a
--- /dev/null
+++ b/debian/libjdom2-java.poms
@@ -0,0 +1 @@
+debian/pom.xml --no-parent --has-package-version --java-lib --usj-name=jdom2 --artifact=build/package/jdom-2.x.jar
diff --git a/debian/manifest b/debian/manifest
new file mode 100644
index 0000000..fddf233
--- /dev/null
+++ b/debian/manifest
@@ -0,0 +1,8 @@
+/usr/share/java/jdom2.jar:
+ Bundle-ManifestVersion: 2
+ Bundle-Name: JDOM XML
+ Bundle-Vendor: jdom.org
+ Bundle-SymbolicName: org.jdom2
+ Bundle-Version: 2.0.5
+ Export-Package: org.jdom2.contrib.beans;version="2.0.5",org.jdom2.internal;version="2.0.5",org.jdom2.output;uses:="org.jdom2.output.support,org.jdom2.internal,org.jdom2.adapters,org.jdom2,org.w3c.dom,org.xml.sax,org.xml.sax.ext,javax.xml.stream,javax.xml.stream.util";version="2.0.5",org.jdom2.contrib.input.scanner;version="2.0.5",org.jdom2.input;uses:="org.jdom2,org.w3c.dom,org.xml.sax,org.jdom2.input.sax,org.jdom2.input.stax,javax.xml.stream,javax.xml.stream.events,javax.xml.namespace";version="2.0.5",org.jdom2.util;uses:="org.jdom2,org.jdom2.internal";version="2.0.5",org.jdom2.transform;uses:="org.xml.sax.ext,org.jdom2,org.xml.sax.helpers,org.xml.sax,org.jdom2.input.sax,javax.xml.transform.sax,org.jdom2.output,javax.xml.transform,javax.xml.transform.stream";version="2.0.5",org.jdom2.contrib.helpers;version="2.0.5",org.jdom2.contrib.input.scanner.doc-files;version="2.0.5",org.jdom2.test;version="2.0.5",org.jdom2.adapters;uses:="org.jdom2,org.w3c.dom,javax.xml.parsers";version="2.0.5",org.jdom2.located;uses:="org.jdom2";version="2.0.5",org.jdom2.xpath.jaxen;uses:="org.jaxen.saxpath,org.jaxen,org.jdom2.input,org.jdom2,org.jaxen.util,org.jdom2.xpath,org.jdom2.xpath.util,org.jdom2.filter";version="2.0.5",org.jdom2.test.cases.special;version="2.0.5",org.jdom2.input.stax;uses:="org.jdom2";version="2.0.5",org.jdom2.contrib.dom;version="2.0.5",org.jdom2.contrib.ids;version="2.0.5",org.jdom2.output.support;uses:="org.jdom2,org.jdom2.output,org.jdom2.util,org.w3c.dom,org.jdom2.internal,org.xml.sax.ext,org.xml.sax.helpers,org.xml.sax,javax.xml.stream,javax.xml.stream.events,javax.xml.stream.util";version="2.0.5",org.jdom2.input.sax;uses:="javax.xml.parsers,javax.xml.validation,org.jdom2,org.xml.sax,javax.xml.transform,javax.xml.transform.stream,org.jdom2.input,org.xml.sax.ext,org.xml.sax.helpers,org.jdom2.internal";version="2.0.5",org.jdom2.contrib.input;version="2.0.5",org.jdom2.xpath.util;uses:="org.jdom2,org.jdom2.xpath,org.jdom2.filter";version="2.0.5",org.jdom2;uses:="org.jdom2.internal,org.jdom2.output,org.jdom2.filter,org.jdom2.util";version="2.0.5",org.jdom2.contrib.output;version="2.0.5",org.jdom2.xpath;uses:="org.jdom2,org.jdom2.filter,org.jdom2.internal,org.jdom2.xpath.jaxen";version="2.0.5",org.jdom2.contrib.ids.doc-files;version="2.0.5",org.jdom2.filter;uses:="org.jdom2";version="2.0.5"
+ Import-Package: javax.xml.namespace,javax.xml.parsers,javax.xml.stream,javax.xml.stream.events,javax.xml.stream.util,javax.xml.transform,javax.xml.transform.sax,javax.xml.transform.stream,javax.xml.validation,oracle.xml.parser;resolution:=optional,oracle.xml.parser.v2;resolution:=optional,org.apache.xerces.dom;resolution:=optional,org.apache.xerces.parsers;resolution:=optional,org.jaxen;resolution:=optional,org.jaxen.saxpath;resolution:=optional,org.jaxen.util;resolution:=optional,org.jdom;version="1.1",org.jdom.adapters;version="1.1",org.jdom.filter;version="1.1",org.jdom.input;version="1.1",org.jdom.output;version="1.1",org.jdom.transform;version="1.1",org.jdom.xpath;version="1.1",org.w3c.dom,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..3c13ea5
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,4 @@
+# ignore jdom jaxen and saxpath modules for now.
+org.jdom jaxen-core
+org.jdom jaxen-jdom
+org.jdom saxpath
diff --git a/debian/maven.publishedRules b/debian/maven.publishedRules
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/debian/maven.publishedRules
@@ -0,0 +1 @@
+
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..9af44f2
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1 @@
+s/xerces/xml-apis/ s/xmlParserAPIs/xml-apis/ jar s/.*/debian/
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..b453707
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,23 @@
+#!/bin/sh -e
+
+VERSION=$(echo $2)
+TAR=../libjdom2-java_${VERSION}.orig.tar.xz
+DIR=jdom-JDOM-*
+
+tar xvf $3
+rm $3
+XZ_OPT=--best tar -c -J -f $TAR \
+ --exclude '*.jar' \
+ --exclude '.gitignore' \
+ --exclude 'hamlet.xml' \
+ --exclude 'core/samples/catalog.xml' \
+ --exclude 'core/samples/catalog.xsl' \
+ $DIR
+rm -rf $DIR
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+ . .svn/deb-layout
+ mv $TAR $origDir
+ echo "moved $TAR to $origDir"
+fi
diff --git a/debian/pom.xml b/debian/pom.xml
new file mode 100644
index 0000000..685860e
--- /dev/null
+++ b/debian/pom.xml
@@ -0,0 +1,140 @@
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jdom</groupId>
+ <artifactId>jdom2</artifactId>
+ <packaging>jar</packaging>
+
+ <name>JDOM</name>
+ <version>2.0.5</version>
+
+ <description>
+ A complete, Java-based solution for accessing, manipulating,
+ and outputting XML data
+ </description>
+ <url>http://www.jdom.org</url>
+
+ <organization>
+ <name>JDOM</name>
+ <url>http://www.jdom.org</url>
+ </organization>
+
+ <mailingLists>
+ <mailingList>
+ <name>JDOM-interest Mailing List</name>
+ <post>jdom-interest@jdom.org</post>
+ <archive>http://jdom.markmail.org/</archive>
+ </mailingList>
+ </mailingLists>
+
+ <licenses>
+ <license>
+ <name>Similar to Apache License but with the acknowledgment clause removed</name>
+ <url>https://raw.github.com/hunterhacker/jdom/master/LICENSE.txt</url>
+ <distribution>repo</distribution>
+ <comments xml:space="preserve"><![CDATA[
+
+/*--
+
+ Copyright (C) 2000-2012 Jason Hunter & Brett McLaughlin.
+ 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. Redistributions of source code must retain the above copyright
+ notice, this list of conditions, and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions, and the disclaimer that follows
+ these conditions in the documentation and/or other materials
+ provided with the distribution.
+
+ 3. The name "JDOM" must not be used to endorse or promote products
+ derived from this software without prior written permission. For
+ written permission, please contact <request_AT_jdom_DOT_org>.
+
+ 4. Products derived from this software may not be called "JDOM", nor
+ may "JDOM" appear in their name, without prior written permission
+ from the JDOM Project Management <request_AT_jdom_DOT_org>.
+
+ In addition, we request (but do not require) that you include in the
+ end-user documentation provided with the redistribution and/or in the
+ software itself an acknowledgement equivalent to the following:
+ "This product includes software developed by the
+ JDOM Project (http://www.jdom.org/)."
+ Alternatively, the acknowledgment may be graphical using the logos
+ available at http://www.jdom.org/images/logos.
+
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE JDOM AUTHORS OR THE PROJECT
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+
+ This software consists of voluntary contributions made by many
+ individuals on behalf of the JDOM Project and was originally
+ created by Jason Hunter <jhunter_AT_jdom_DOT_org> and
+ Brett McLaughlin <brett_AT_jdom_DOT_org>. For more information
+ on the JDOM Project, please see <http://www.jdom.org/>.
+
+ */
+
+
+
+ ]]></comments>
+ </license>
+ </licenses>
+
+ <scm>
+ <url>git@github.com:/hunterhacker/jdom</url>
+ <connection>scm:git:git@github.com:hunterhacker/jdom</connection>
+ <developerConnection>scm:git:git@github.com:hunterhacker/jdom</developerConnection>
+ </scm>
+
+ <developers>
+ <developer>
+ <id>hunterhacker</id>
+ <name>Jason Hunter</name>
+ <email>jhunter@servlets.com</email>
+ </developer>
+ <developer>
+ <id>rolfl</id>
+ <name>Rolf Lear</name>
+ <email>jdom@tuis.net</email>
+ </developer>
+ </developers>
+
+ <dependencies>
+ <dependency>
+ <groupId>jaxen</groupId>
+ <artifactId>jaxen</artifactId>
+ <version>1.1.4</version>
+ <optional>true</optional>
+ </dependency>
+ <dependency>
+ <groupId>xerces</groupId>
+ <artifactId>xercesImpl</artifactId>
+ <version>2.10.0</version>
+ <optional>true</optional>
+ </dependency>
+ <dependency>
+ <groupId>xalan</groupId>
+ <artifactId>xalan</artifactId>
+ <version>2.7.1</version>
+ <optional>true</optional>
+ </dependency>
+
+ </dependencies>
+
+ <properties>
+ <jdk.version>1.5</jdk.version>
+ </properties>
+</project> \ No newline at end of file
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..0c3d08b
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,23 @@
+#!/usr/bin/make -f
+
+VERSION := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2 | cut -d'-' -f1)
+UPSTREAM_VERSION := $(shell echo "$(VERSION)" | sed 's/+dfsg//')
+
+JAVA_HOME := /usr/lib/jvm/default-java
+ANT_ARGS := -propertyfile debian/ant.properties
+ANT := JAVA_HOME=$(JAVA_HOME) ant $(ANT_ARGS)
+
+%:
+ dh $@ --buildsystem=ant --with maven_repo_helper,javahelper
+
+override_dh_auto_build:
+ $(ANT) jars junit
+
+override_dh_auto_clean:
+ rm -Rf build
+
+get-orig-source:
+ -uscan --download-version $(UPSTREAM_VERSION) --force-download --rename
+
+get-orig-pom:
+ wget -U '' -O debian/pom.xml http://repo1.maven.org/maven2/org/jdom/jdom2/$(UPSTREAM_VERSION)/jdom2-$(UPSTREAM_VERSION).pom
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..2c9b764
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts="dversionmangle=s/\+dfsg//" \
+https://github.com/hunterhacker/jdom/releases .*/JDOM-(.*).tar.gz debian debian/orig-tar.sh