--- joptsimple-3.1.orig/debian/libjoptsimple-java.install
+++ joptsimple-3.1/debian/libjoptsimple-java.install
@@ -0,0 +1 @@
+joptsimple-*.jar /usr/share/java
--- joptsimple-3.1.orig/debian/copyright
+++ joptsimple-3.1/debian/copyright
@@ -0,0 +1,39 @@
+This package was debianized by Samuel Thibault <sthibault@debian.org> on
+Tue, 01 Sep 2009 15:53:03 +0200.
+
+It was downloaded from http://jopt-simple.sourceforge.net/
+
+Upstream Author:
+
+
+Copyright:
+
+ Copyright (c) 2004-2009 Paul R. Holser, Jr.
+
+License:
+
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+The Debian packaging is:
+
+ Copyright (C) 2009 Samuel Thibault <sthibault@debian.org>
+
+and is licensed under the GPL version 3,
+see `/usr/share/common-licenses/GPL-3'.
--- joptsimple-3.1.orig/debian/libjoptsimple-java-doc.doc-base
+++ joptsimple-3.1/debian/libjoptsimple-java-doc.doc-base
@@ -0,0 +1,11 @@
+Document: libjoptsimple-java
+Title: Programmer API for the Command line parsing java library
+Author: Paul R. Holser, Jr.
+Abstract: JOpt Simple is a Java library for parsing command line options,
+ such as those you might pass to an invocation of javac. This is the javadoc
+ documentation.
+Section: Programming/Java
+
+Format: HTML
+Index: /usr/share/doc/libjoptsimple-java-doc/api/index.html
+Files: /usr/share/doc/libjoptsimple-java-doc/api/*.html
--- joptsimple-3.1.orig/debian/compat
+++ joptsimple-3.1/debian/compat
@@ -0,0 +1 @@
+7
--- joptsimple-3.1.orig/debian/watch
+++ joptsimple-3.1/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/jopt-simple/jopt-simple-(.+)-sources.jar
--- joptsimple-3.1.orig/debian/rules
+++ joptsimple-3.1/debian/rules
@@ -0,0 +1,48 @@
+#!/usr/bin/make -f
+
+JAVAC=javac
+JAVADOC=javadoc
+JAR=jar
+
+JAVACLASSES=/usr/share/java
+
+JAVAFLAGS=
+
+JARFILE=joptsimple-3.1.jar
+
+build: build-stamp
+build-stamp:
+ dh_testdir
+
+ $(JAVAC) $(JAVAFLAGS) `find . -name \*.java`
+ $(JAVADOC) -d api joptsimple
+ $(JAR) c `find . -name \*.class -o -name \*.xml -o -name \*.MF` > $(JARFILE)
+
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+
+ rm -f `find . -name \*.class`
+ rm -f $(JARFILE)
+ rm -fr api
+
+ dh_clean
+
+binary-indep: install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_install
+ dh_link /usr/share/java/$(JARFILE) /usr/share/java/joptsimple.jar
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- joptsimple-3.1.orig/debian/libjoptsimple-java-doc.docs
+++ joptsimple-3.1/debian/libjoptsimple-java-doc.docs
@@ -0,0 +1 @@
+api
--- joptsimple-3.1.orig/debian/control
+++ joptsimple-3.1/debian/control
@@ -0,0 +1,39 @@
+Source: joptsimple
+Priority: extra
+Maintainer: Samuel Thibault <sthibault@debian.org>
+Build-Depends: debhelper (>= 7)
+Build-Depends-Indep: default-jdk
+Standards-Version: 3.9.1
+Section: java
+Homepage: http://jopt-simple.sourceforge.net/
+Vcs-Browser: http://git.debian.org/?p=collab-maint/joptsimple.git;a=summary
+Vcs-Git: git://git.debian.org/git/collab-maint/joptsimple.git
+
+Package: libjoptsimple-java
+Architecture: all
+Depends: ${misc:Depends}, default-jre-headless | java2-runtime-headless
+Description: Command line parsing java library
+ JOpt Simple is a Java library for parsing command line options, such as
+ those you might pass to an invocation of javac.
+ .
+ In the interest of striving for simplicity, as closely as possible JOpt
+ Simple attempts to honor the command line option syntaxes of POSIX
+ getopt() and GNU getopt_long() . It also aims to make option parser
+ configuration and retrieval of options and their arguments simple and
+ expressive, without being overly clever.
+
+Package: libjoptsimple-java-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}
+Description: Command line parsing java library - Documentation
+ JOpt Simple is a Java library for parsing command line options, such as
+ those you might pass to an invocation of javac.
+ .
+ In the interest of striving for simplicity, as closely as possible JOpt
+ Simple attempts to honor the command line option syntaxes of POSIX
+ getopt() and GNU getopt_long() . It also aims to make option parser
+ configuration and retrieval of options and their arguments simple and
+ expressive, without being overly clever.
+ .
+ This package contains the javadoc documentation.
--- joptsimple-3.1.orig/debian/changelog
+++ joptsimple-3.1/debian/changelog
@@ -0,0 +1,21 @@
+joptsimple (3.1-3) unstable; urgency=low
+
+ * debian/control:
+ - Bump Standards-Version to 3.9.1 (no change needed).
+ - Make libjoptsimple-java depend on headless java.
+
+ -- Samuel Thibault <sthibault@debian.org> Tue, 24 Aug 2010 21:27:08 +0200
+
+joptsimple (3.1-2) unstable; urgency=low
+
+ * debian/control: Drop duplicate Section: java field.
+ * debian/watch: Add.
+ * debian/libjoptsimple-java-doc.doc-base: Add.
+
+ -- Samuel Thibault <sthibault@debian.org> Wed, 13 Jan 2010 00:36:23 +0100
+
+joptsimple (3.1-1) unstable; urgency=low
+
+ * Initial release (Closes: #544637)
+
+ -- Samuel Thibault <sthibault@debian.org> Tue, 01 Sep 2009 15:53:03 +0200