[pkg-java] r11106 - trunk/jzlib/debian
Damien Raude-Morvan
drazzib at alioth.debian.org
Mon Nov 23 23:28:17 UTC 2009
Author: drazzib
Date: 2009-11-23 23:28:16 +0000 (Mon, 23 Nov 2009)
New Revision: 11106
Added:
trunk/jzlib/debian/libjzlib-java.poms
trunk/jzlib/debian/pom.xml
Modified:
trunk/jzlib/debian/changelog
trunk/jzlib/debian/control
trunk/jzlib/debian/rules
Log:
* 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.
Modified: trunk/jzlib/debian/changelog
===================================================================
--- trunk/jzlib/debian/changelog 2009-11-23 23:16:13 UTC (rev 11105)
+++ trunk/jzlib/debian/changelog 2009-11-23 23:28:16 UTC (rev 11106)
@@ -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
Modified: trunk/jzlib/debian/control
===================================================================
--- trunk/jzlib/debian/control 2009-11-23 23:16:13 UTC (rev 11105)
+++ trunk/jzlib/debian/control 2009-11-23 23:28:16 UTC (rev 11106)
@@ -5,6 +5,7 @@
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/
Added: trunk/jzlib/debian/libjzlib-java.poms
===================================================================
--- trunk/jzlib/debian/libjzlib-java.poms (rev 0)
+++ trunk/jzlib/debian/libjzlib-java.poms 2009-11-23 23:28:16 UTC (rev 11106)
@@ -0,0 +1 @@
+debian/pom.xml
Added: trunk/jzlib/debian/pom.xml
===================================================================
--- trunk/jzlib/debian/pom.xml (rev 0)
+++ trunk/jzlib/debian/pom.xml 2009-11-23 23:28:16 UTC (rev 11106)
@@ -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
Modified: trunk/jzlib/debian/rules
===================================================================
--- trunk/jzlib/debian/rules 2009-11-23 23:16:13 UTC (rev 11105)
+++ trunk/jzlib/debian/rules 2009-11-23 23:28:16 UTC (rev 11106)
@@ -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_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
+
More information about the pkg-java-commits
mailing list