[med-svn] [ngs-sdk] 02/02: Add a maven2 pom file for libngs-java

Vincent Danjean vdanjean at debian.org
Wed Jul 6 21:06:48 UTC 2016


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

vdanjean pushed a commit to branch master
in repository ngs-sdk.

commit 13e12c1baff08fe964ea8fdec29ad121f483ca66
Author: Vincent Danjean <vdanjean at debian.org>
Date:   Wed Jul 6 22:56:13 2016 +0200

    Add a maven2 pom file for libngs-java
    
    The debian/rules has a target to download the file from the maven official repo
    Of course, thes rule must be manually invoked when required
---
 debian/changelog               |   6 ++++++
 debian/control                 |   4 +++-
 debian/libngs-java.poms        |  29 +++++++++++++++++++++++++++++
 debian/ngs-java.pom            |  34 ++++++++++++++++++++++++++++++++++
 debian/ngs-java.pom.asc        |  17 +++++++++++++++++
 debian/rules                   |  14 +++++++++++++-
 debian/source/include-binaries |   1 +
 debian/sra-tools.gpg           | Bin 0 -> 2262 bytes
 8 files changed, 103 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 4f9b404..0f57548 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+ngs-sdk (1.2.4-2) unstable; urgency=medium
+
+  * Add a maven2 pom file for libjava-ngs
+
+ -- Vincent Danjean <vdanjean at debian.org>  Wed, 06 Jul 2016 21:57:29 +0200
+
 ngs-sdk (1.2.4-1) unstable; urgency=medium
 
   * New upstream version
diff --git a/debian/control b/debian/control
index fbffd93..dcd6408 100644
--- a/debian/control
+++ b/debian/control
@@ -1,7 +1,8 @@
 Source: ngs-sdk
 Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
 Uploaders: Andreas Tille <tille at debian.org>,
-           Olivier Sallou <osallou at debian.org>
+           Olivier Sallou <osallou at debian.org>,
+           Vincent Danjean <vdanjean at debian.org>
 Section: science
 Priority: optional
 Build-Depends: debhelper (>= 9),
@@ -11,6 +12,7 @@ Build-Depends: debhelper (>= 9),
                python3-all-dev,
                dh-python,
                javahelper,
+               maven-repo-helper,
                default-jdk
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/ngs-sdk.git
diff --git a/debian/libngs-java.poms b/debian/libngs-java.poms
new file mode 100644
index 0000000..a47c3bd
--- /dev/null
+++ b/debian/libngs-java.poms
@@ -0,0 +1,29 @@
+# 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]
+#
+
+debian/ngs-java.pom --has-package-version --usj-name=ngs-java
diff --git a/debian/ngs-java.pom b/debian/ngs-java.pom
new file mode 100644
index 0000000..819ddce
--- /dev/null
+++ b/debian/ngs-java.pom
@@ -0,0 +1,34 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>gov.nih.nlm.ncbi</groupId>
+    <artifactId>ngs-java</artifactId>
+    <packaging>jar</packaging>
+    <description>ngs api</description>
+    <version>1.2.4</version>
+    <name>ngs-java</name>
+    <organization>
+        <name>gov.nih.nlm.ncbi</name>
+    </organization>
+    <url>https://github.com/ncbi/ngs</url>
+    <licenses>
+        <license>
+            <name>NCBI License</name>
+            <url>https://raw.githubusercontent.com/ncbi/ngs/master/LICENSE</url>
+            <distribution>repo</distribution>
+        </license>
+    </licenses>
+    <scm>
+        <url>git at github.com:ncbi/ngs.git</url>
+        <connection>scm:git:git at github.com:ncbi/ngs.git</connection>
+    </scm>
+    <developers>
+        <developer>
+            <id>sra-tools</id>
+            <name>SRA Development Team</name>
+            <url>https://github.com/ncbi/ngs</url>
+        </developer>
+    </developers>
+    <dependencies>
+    </dependencies>
+</project>
diff --git a/debian/ngs-java.pom.asc b/debian/ngs-java.pom.asc
new file mode 100644
index 0000000..ac13b91
--- /dev/null
+++ b/debian/ngs-java.pom.asc
@@ -0,0 +1,17 @@
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.22 (GNU/Linux)
+
+iQIcBAABAgAGBQJXT1zbAAoJEDjMz9QjSUPXa3MP/R/VLwop1po7RHVmVgWpb+cT
+tS+VH5bvh8UldGLF3+U4QNrtDDMJIEie2U5a5F4N9nvtgE+Q/LBT2toxUMLj4WXC
+38ir7Fa6lNZwe1I9Z9xGVpWLmh6Usn2BDwmDkAwNYP1VM4tf5mUwx0cVcBWtGdVP
+7uqBzvKcycc4e6DKyJkDBUtEpe1pa5S7CiFC/Wq8KmpSeT+JO074IIqUdrSvoaQL
+V3UB9Eye15+bYvE7cWwFyTCH3LmVK5QNVh6EkpKoAIvq2f4Zp1RIxbHbZdt3XIps
+qfgUJqNdnNG1pdLTLPsxMCpHsDIuMdySZQq97nHzfzAX+YRRD3q+O8mT6RoH5dOT
+v13ffJKMQIsVnbVqMvHlngPQ/YcjzLwc+ccxtFzxaQswC4ew83YRieNMauVOupv2
+nkUK1+qUz/6QDT5vKfhJNjyc9+GAesaGVj3ou0fPNoza5KEf9fPqx5dZekaBPdKA
+qpxnHAg4NTfBbnYRYicMb/CGVJ988SWGFbwfIK0hYq8f8b9nSr0S78LHhzoinCWX
+rYenAoBNqV852k0ZMmXdMUDZK8YfLFffL7BTqNSn8UROGHrNwjRDir4bH6wusMES
+AVsM4T3T1ua5P7D2no68JlNQ6fGdvJC0qG9grmU3egamMn9Yw4VhjYW22Gg+t/Cx
+TIYgR09r86nQL4Ym9x9k
+=mIby
+-----END PGP SIGNATURE-----
diff --git a/debian/rules b/debian/rules
index 5a49a91..f5f413b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,7 +14,7 @@ build2vers := $(shell pyversions -sv)
 build3vers := $(shell py3versions -sv)
 
 %:
-	dh $@ --with python2,python3,javahelper
+	dh $@ --with python2,python3,javahelper,jh_maven_repo_helper
 
 override_dh_auto_clean:
 	if [ -e ngs-sdk/Makefile.config.$(OS).$(CPU) ] ; then \
@@ -79,3 +79,15 @@ override_dh_install:
 	done
 	find debian -name "*.pyc" -delete
 	find debian -type d -name __pycache__ | xargs rm -rf
+
+# require network, not automatically run
+# use it when the pom file must be re-downloaded from maven repo
+BASE_URL:=https://repo.maven.apache.org/maven2/gov/nih/nlm/ncbi/ngs-java
+WGET=wget --no-clobber
+get-poms:
+	$(RM) debian/ngs-java.pom debian/ngs-java.pom.asc
+	# extract upstream version
+	VERSION=$$(dpkg-parsechangelog -S Version | sed -e 's/\([+]dfsg\.\?[0-9]*\)\?-[^-]\+$$//') ; \
+	$(WGET) -O debian/ngs-java.pom $(BASE_URL)/$$VERSION/ngs-java-$$VERSION.pom && \
+	$(WGET) -O debian/ngs-java.pom.asc $(BASE_URL)/$$VERSION/ngs-java-$$VERSION.pom.asc
+	gpg --trust-model=always --status-fd 1 --no-default-keyring --keyring debian/sra-tools.gpg --verify debian/ngs-java.pom.asc
diff --git a/debian/source/include-binaries b/debian/source/include-binaries
new file mode 100644
index 0000000..2e3bedb
--- /dev/null
+++ b/debian/source/include-binaries
@@ -0,0 +1 @@
+debian/sra-tools.gpg
diff --git a/debian/sra-tools.gpg b/debian/sra-tools.gpg
new file mode 100644
index 0000000..79541b6
Binary files /dev/null and b/debian/sra-tools.gpg differ

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/ngs-sdk.git



More information about the debian-med-commit mailing list