Package: libssw-java
Severity: wishlist
Tags: patch

Dear Maintainer,

Please consider providing maven artifact information with
maven-repo-helper to allow other the maven-based build systems
of other packages that depend upon libssw-java to automatically
resolve dependency information.

The attached patch(es) can be applied with 'git am' accomplish this.
(You can ignore the second patch and modify the debian/changelog as
you deem fit.  Alternately, I can perform an NMU upload if you would
prefer.)

Cheers,
tony
From 959c73dfa0d9dedaf5711179c9b0b5611d9b5e79 Mon Sep 17 00:00:00 2001
From: tony mancill <tmanc...@debian.org>
Date: Sun, 10 Jul 2016 21:31:25 -0700
Subject: [PATCH 1/2] install maven-repo coordinates for ssw.jar

This commit modifies the package build to use maven-repo-helper
to install a POM file beneath /usr/share/maven-repo/ssw/.
---
 debian/control             | 3 ++-
 debian/libssw-java-1.0.pom | 8 ++++++++
 debian/libssw-java.poms    | 1 +
 debian/rules               | 2 +-
 4 files changed, 12 insertions(+), 2 deletions(-)
 create mode 100644 debian/libssw-java-1.0.pom
 create mode 100644 debian/libssw-java.poms

diff --git a/debian/control b/debian/control
index ff3101a..39d5fda 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,8 @@ Build-Depends: debhelper (>= 9),
                javahelper,
                dh-autoreconf,
                help2man,
-               zlib1g-dev
+               zlib1g-dev,
+               maven-repo-helper
 Standards-Version: 3.9.8
 Testsuite: autopkgtest
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/libssw.git
diff --git a/debian/libssw-java-1.0.pom b/debian/libssw-java-1.0.pom
new file mode 100644
index 0000000..0ddf236
--- /dev/null
+++ b/debian/libssw-java-1.0.pom
@@ -0,0 +1,8 @@
+<?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="http://maven.apache.org/POM/4.0.0";
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>ssw</groupId>
+  <artifactId>ssw</artifactId>
+  <version>1.0</version>
+</project>
diff --git a/debian/libssw-java.poms b/debian/libssw-java.poms
new file mode 100644
index 0000000..1c02394
--- /dev/null
+++ b/debian/libssw-java.poms
@@ -0,0 +1 @@
+debian/libssw-java-1.0.pom --usj-name=ssw
diff --git a/debian/rules b/debian/rules
index 9ba2f1a..6ba50ff 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,7 +6,7 @@ DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
 PKG_VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/-.*//')
 
 %:
-	dh $@
+	dh $@ --with javahelper --with jh_maven_repo_helper
 
 override_dh_auto_clean:
 	rm -f debian/libssw*install debian/libssw*links debian/ssw-align.1
-- 
2.8.1

From ef80ee0a8ce9e908aeba1ca883ddebce28671e8c Mon Sep 17 00:00:00 2001
From: tony mancill <tmanc...@debian.org>
Date: Sun, 10 Jul 2016 21:33:15 -0700
Subject: [PATCH 2/2] interim changelog

---
 debian/changelog | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index c6e8aa1..19a1d56 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+libssw (1.0-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Install maven-repo artifacts.
+    - Build-depend on maven-repo-helper
+    - Add debian/libssw-java-1.0.pom and debian/libssw-java.poms
+    - Update debian/rules to build with jh_maven_repo_helper
+
+ -- tony mancill <tmanc...@debian.org>  Sun, 10 Jul 2016 21:07:21 -0700
+
 libssw (1.0-2) unstable; urgency=medium
 
   * adjust list of architectures to only include SSE2 capable ones
-- 
2.8.1

Attachment: signature.asc
Description: PGP signature

Reply via email to