[jzlib] 07/21: * Maven POMs: - debian/control: add a Build-Depends-Indep dependency on maven-repo-helper - debian/rules: use mh_installpoms and mh_installjar to install the POM and the jar to the Maven repository - debian/pom.xml: Debian pom.xml file as upstream doesn't provide one - debian/rules: new get-orig-pom to update debian/pom.xml at new upstream release.

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Fri Jan 12 11:51:35 UTC 2018


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

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

commit 8336a6fdc18db504c5c63f3046be0ca9832e9c15
Author: Damien Raude-Morvan <drazzib at debian.org>
Date:   Mon Nov 23 23:28:16 2009 +0000

    * Maven POMs:
      - debian/control: add a Build-Depends-Indep dependency on maven-repo-helper
      - debian/rules: use mh_installpoms and mh_installjar
        to install the POM and the jar to the Maven repository
      - debian/pom.xml: Debian pom.xml file as upstream doesn't provide one
      - debian/rules: new get-orig-pom to update debian/pom.xml at new upstream
        release.
---
 debian/changelog          | 12 ++++++++++++
 debian/control            |  1 +
 debian/libjzlib-java.poms |  1 +
 debian/pom.xml            | 30 ++++++++++++++++++++++++++++++
 debian/rules              | 15 +++++++++++++--
 5 files changed, 57 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index d9112ee..1015cf0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,15 @@
+jzlib (1.0.7-3) UNRELEASED; urgency=low
+
+  * Maven POMs:
+    - debian/control: add a Build-Depends-Indep dependency on maven-repo-helper
+    - debian/rules: use mh_installpoms and mh_installjar
+      to install the POM and the jar to the Maven repository
+    - debian/pom.xml: Debian pom.xml file as upstream doesn't provide one
+    - debian/rules: new get-orig-pom to update debian/pom.xml at new upstream
+      release.
+
+ -- Damien Raude-Morvan <drazzib at debian.org>  Tue, 24 Nov 2009 00:24:46 +0100
+
 jzlib (1.0.7-2) unstable; urgency=low
 
   * Set Maintainer field to Debian Java Team
diff --git a/debian/control b/debian/control
index 871ef85..71640bb 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,7 @@ Standards-Version: 3.8.3
 Section: java
 Priority: optional
 Build-Depends: debhelper (>= 5), cdbs, default-jdk, ant
+Build-Depends-Indep: maven-repo-helper
 Homepage: http://www.jcraft.com/jzlib/
 Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/jzlib/
 Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/jzlib/
diff --git a/debian/libjzlib-java.poms b/debian/libjzlib-java.poms
new file mode 100644
index 0000000..1a7e280
--- /dev/null
+++ b/debian/libjzlib-java.poms
@@ -0,0 +1 @@
+debian/pom.xml
diff --git a/debian/pom.xml b/debian/pom.xml
new file mode 100644
index 0000000..eb67eef
--- /dev/null
+++ b/debian/pom.xml
@@ -0,0 +1,30 @@
+<?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/maven-v4_0_0.xsd">
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>com.jcraft</groupId>
+  <artifactId>jzlib</artifactId>
+  <version>1.0.7</version>
+  <name>JZlib</name>
+  <description>JZlib is a re-implementation of zlib in pure Java</description>
+  <url>http://www.jcraft.com/jzlib/</url>
+
+  <organization>
+    <name>jcraft</name>
+    <url>http://www.jcraft.com/jsch</url>
+  </organization>
+
+  <licenses>
+    <license>
+      <name>BSD</name>
+      <url>http://www.jcraft.com/jzlib/LICENSE.txt</url>
+    </license>
+  </licenses>
+
+  <distributionManagement>
+    <status>deployed</status>
+  </distributionManagement>
+
+</project>
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
index b504c2a..a08d159 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,9 @@
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/ant.mk
 
+POM_VERSION          := 1.0.7
+MAVEN_REPO           := http://repository.sonatype.org/service/local/repositories/central/content
+
 JAVA_HOME            := /usr/lib/jvm/default-java
 ANT_HOME             := /usr/share/ant
 
@@ -12,8 +15,16 @@ DEB_ANT_BUILDFILE    := debian/build.xml
 DEB_ANT_ARGS         := -Ddeb.package=$(DEB_SOURCE_PACKAGE) -Ddeb.version=$(DEB_UPSTREAM_VERSION)
 
 install/libjzlib-java::
-	dh_install build/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).jar usr/share/java
-	dh_link usr/share/java/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).jar usr/share/java/$(DEB_SOURCE_PACKAGE).jar
+	mh_installpoms -plibjzlib-java
+	mh_installjar -plibjzlib-java -l debian/pom.xml build/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).jar
+
+clean::
+	-rm -rf debian/tmp
 
 get-orig-source:
 	uscan --force-download --rename
+
+get-orig-pom:
+	wget -O debian/pom.xml $(MAVEN_REPO)/com/jcraft/jzlib/$(POM_VERSION)/jzlib-$(POM_VERSION).pom
+	perl -p -i -e 's/<version>$(POM_VERSION)/<version>$(DEB_UPSTREAM_VERSION)/' debian/pom.xml
+

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



More information about the pkg-java-commits mailing list