[jsap] 01/02: Initial packaging

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Thu Aug 6 08:38:17 UTC 2015


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository jsap.

commit 6a99b193fa18ae52e3d72d411995b11081fb3421
Author: Guillaume Turri <guillaume.turri at gmail.com>
Date:   Thu Aug 6 10:23:20 2015 +0200

    Initial packaging
---
 debian/README.source                 |  9 +++++
 debian/changelog                     |  5 +++
 debian/compat                        |  1 +
 debian/control                       | 39 ++++++++++++++++++++++
 debian/copyright                     | 32 ++++++++++++++++++
 debian/libjsap-java-doc.doc-base.api | 10 ++++++
 debian/libjsap-java-doc.install      |  2 ++
 debian/libjsap-java.poms             | 28 ++++++++++++++++
 debian/maven.cleanIgnoreRules        |  1 +
 debian/maven.ignoreRules             |  1 +
 debian/maven.properties              |  4 +++
 debian/maven.publishedRules          |  2 ++
 debian/maven.rules                   |  5 +++
 debian/pom.xml                       | 65 ++++++++++++++++++++++++++++++++++++
 debian/rules                         | 29 ++++++++++++++++
 debian/source/format                 |  1 +
 debian/watch                         |  2 ++
 17 files changed, 236 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..52bcbe9
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,9 @@
+Information about jsap
+----------------------
+
+This package was debianized using the mh_make command
+from the maven-debian-helper package.
+
+The build system uses Maven but prevents it from downloading
+anything from the Internet, making the build compliant with
+the Debian policy.
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d16dfc6
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+jsap (2.1-1) unstable; urgency=medium
+
+  * Initial release (Closes: #793567)
+
+ -- Guillaume Turri <guillaume.turri at gmail.com>  Thu, 06 Aug 2015 09:55:13 +0200
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..8acdb14
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,39 @@
+Source: jsap
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Guillaume Turri <guillaume.turri at gmail.com>
+Build-Depends: debhelper (>= 9), cdbs, default-jdk, maven-debian-helper (>= 1.5)
+Build-Depends-Indep: libxstream-java, junit4, default-jdk-doc, libmaven-javadoc-plugin-java
+Standards-Version: 3.9.6
+Vcs-Git: git://anonscm.debian.org/pkg-java/jsap.git
+Vcs-Browser: http://anonscm.debian.org/cgit/pkg-java/jsap.git
+Homepage: http://www.martiansoftware.com/jsap/
+
+Package: libjsap-java
+Architecture: all
+Depends: ${misc:Depends}, ${maven:Depends}
+Suggests: ${maven:OptionalDepends}, libjsap-java-doc
+Description: Java Simple Argument Parser
+ Library which ease the parsing of arguments (e.g. from a command line)
+ for Java developers.
+ It has features like:
+   * support both switch and flags
+   * cast the arguments to the expected type of object
+   * can handle configuration file with default values
+
+Package: libjsap-java-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}
+Recommends: ${maven:DocDepends}, ${maven:DocOptionalDepends}
+Suggests: libjsap-java
+Description: Java Simple Argument Parser (documentation)
+ Library which ease the parsing of arguments (e.g. from a command line)
+ for Java developers.
+ It has features like:
+   * support both switch and flags
+   * cast the arguments to the expected type of object
+   * can handle configuration file with default values
+ .
+ This package contains the API documentation of libjsap-java.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..b277aa0
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,32 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: JSAP
+Source: https://sourceforge.net/projects/jsap/
+Files-Excluded: *jar doc/javadoc
+
+Files: *
+Copyright: 2004-2006, Marty Lamb <mlamb at martiansoftware.com>
+License: LGPL-2.1
+Comment:
+ JSAP is Free Software.  The LGPL license is sufficiently
+ flexible to allow the use of JSAP in both open source
+ and commercial projects.  Using JSAP (by importing JSAP's
+ public interfaces in your Java code), and extending JSAP
+ (by subclassing) are considered by the authors of JSAP
+ to be dynamic linking.  Hence our interpretation of the
+ LGPL is that the use of the unmodified JSAP source or
+ binary, or the rebundling of unmodified JSAP classes into
+ your program's .jar file, does not affect the license of
+ your application code.
+ .
+ If you modify JSAP and redistribute your modifications,
+ the LGPL applies.
+
+Files: debian/*
+Copyright: 2015, Guillaume Turri <guillaume.turri at gmail.com>
+License: LGPL-2.1
+
+License: LGPL-2.1
+ On Debian systems, the full text of the LGPL-2.1 license
+ can be found in the file '/usr/share/common-licenses/LGPL-2.1'
+
+
diff --git a/debian/libjsap-java-doc.doc-base.api b/debian/libjsap-java-doc.doc-base.api
new file mode 100644
index 0000000..941c37e
--- /dev/null
+++ b/debian/libjsap-java-doc.doc-base.api
@@ -0,0 +1,10 @@
+Document: libjsap-java
+Title: API Javadoc for JSAP
+Author: JSAP developers
+Abstract: This is the API Javadoc provided for the
+ libjsap-java library.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libjsap-java/api/index.html
+Files: /usr/share/doc/libjsap-java/api/*
diff --git a/debian/libjsap-java-doc.install b/debian/libjsap-java-doc.install
new file mode 100644
index 0000000..712c11b
--- /dev/null
+++ b/debian/libjsap-java-doc.install
@@ -0,0 +1,2 @@
+target/apidocs/* usr/share/doc/libjsap-java/api
+
diff --git a/debian/libjsap-java.poms b/debian/libjsap-java.poms
new file mode 100644
index 0000000..0417132
--- /dev/null
+++ b/debian/libjsap-java.poms
@@ -0,0 +1,28 @@
+# List of POM files for the package
+# Format of this file is:
+# <path to pom file> [option]*
+# where option can be:
+#   --ignore: ignore this POM and its artifact if any
+#   --ignore-pom: don't install the POM. To use on POM files that are created
+#     temporarily for certain artifacts such as Javadoc jars. [mh_install, mh_installpoms]
+#   --no-parent: remove the <parent> tag from the POM
+#   --package=<package>: an alternative package to use when installing this POM
+#      and its artifact
+#   --has-package-version: to indicate that the original version of the POM is the same as the upstream part
+#      of the version for the package.
+#   --keep-elements=<elem1,elem2>: a list of XML elements to keep in the POM
+#      during a clean operation with mh_cleanpom or mh_installpom
+#   --artifact=<path>: path to the build artifact associated with this POM,
+#      it will be installed when using the command mh_install. [mh_install]
+#   --java-lib: install the jar into /usr/share/java to comply with Debian
+#      packaging guidelines
+#   --usj-name=<name>: name to use when installing the library in /usr/share/java
+#   --usj-version=<version>: version to use when installing the library in /usr/share/java
+#   --no-usj-versionless: don't install the versionless link in /usr/share/java
+#   --dest-jar=<path>: the destination for the real jar.
+#     It will be installed with mh_install. [mh_install]
+#   --classifier=<classifier>: Optional, the classifier for the jar. Empty by default.
+#   --site-xml=<location>: Optional, the location for site.xml if it needs to be installed.
+#     Empty by default. [mh_install]
+#
+pom.xml --has-package-version
diff --git a/debian/maven.cleanIgnoreRules b/debian/maven.cleanIgnoreRules
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/debian/maven.cleanIgnoreRules
@@ -0,0 +1 @@
+
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1 @@
+
diff --git a/debian/maven.properties b/debian/maven.properties
new file mode 100644
index 0000000..7c29bd7
--- /dev/null
+++ b/debian/maven.properties
@@ -0,0 +1,4 @@
+# Include here properties to pass to Maven during the build.
+# For example:
+# maven.test.skip=true
+
diff --git a/debian/maven.publishedRules b/debian/maven.publishedRules
new file mode 100644
index 0000000..92f1a36
--- /dev/null
+++ b/debian/maven.publishedRules
@@ -0,0 +1,2 @@
+
+com.martiansoftware jsap jar s/.*/debian/ * *
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..e10d5a3
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,5 @@
+
+com.martiansoftware jsap jar s/.*/debian/ * *
+com.thoughtworks.xstream xstream jar s/.*/debian/ * *
+junit junit jar s/4\..*/4.x/ * *
+s/ant/org.apache.ant/ * * s/.*/debian/ * *
diff --git a/debian/pom.xml b/debian/pom.xml
new file mode 100644
index 0000000..6f832f7
--- /dev/null
+++ b/debian/pom.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>com.martiansoftware</groupId>
+  <artifactId>jsap</artifactId>
+  <name>JSAP</name>
+  <version>2.1</version>
+  <description>the Java-based Simple Argument Parser</description>
+  <url>http://www.martiansoftware.com/jsap/</url>
+  <licenses>
+    <license>
+      <name>LGPL</name>
+      <url>http://www.martiansoftware.com/jsap/license.html</url>
+      <distribution>repo</distribution>
+    </license>
+  </licenses>
+  <scm>
+    <url>http://jsap.cvs.sourceforge.net/jsap/</url>
+  </scm>
+  <developers>
+    <developer>
+      <name>John Mutchek</name>
+    </developer>
+    <developer>
+      <name>Marty Lamb</name>
+    </developer>
+    <developer>
+      <name>Sebastiano Vigna</name>
+    </developer>
+  </developers>
+  <dependencies>
+    <dependency>
+      <groupId>com.thoughtworks.xstream</groupId>
+      <artifactId>xstream</artifactId>
+      <version>1.4.8</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.ant</groupId>
+      <artifactId>ant</artifactId>
+      <version>1.9.6</version>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>4.10</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <configuration>
+          <archive>
+            <manifest>
+              <addClasspath>true</addClasspath>
+            </manifest>
+          </archive>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..3808e63
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,29 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/maven.mk
+
+JAVA_HOME := /usr/lib/jvm/default-java
+
+pre-build::
+	# Project Mavenization
+	cp debian/pom.xml .
+
+	mkdir -p src/main
+	cp -r src/java src/main
+	mkdir -p src/test/java/com/martiansoftware/jsap/defaultsources/
+	mkdir -p src/test/java/com/martiansoftware/jsap/stringparsers/
+
+	mv src/main/java/com/martiansoftware/jsap/Test*                src/test/java/com/martiansoftware/jsap
+	mv src/main/java/com/martiansoftware/jsap/defaultsources/Test* src/test/java/com/martiansoftware/jsap/defaultsources/
+	mv src/main/java/com/martiansoftware/jsap/stringparsers/Test*  src/test/java/com/martiansoftware/jsap/stringparsers/
+
+	mh_patchpoms -plibjsap-java --keep-pom-version
+
+clean::
+	rm -f pom.xml
+	rm -rf src/main
+	rm -rf src/test
+
+get-orig-source:
+	uscan --download-current-version --force-download --symlink
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..e2f0f2a
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/jsap/JSAP-(\d\S+)-src\.tar\.(?:bz2|gz|xz)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jsap.git



More information about the pkg-java-commits mailing list