Package: libjcip-annotations-java Version: 20060626-2dvd1 Severity: wishlist Tags: patch
Please consider updating the package to follow the Debian Maven repository specification. Doing so will make it easier to package software that uses Maven as a build system and have jcip-annotations as a dependency. I include a patch that seems to have worked for me. It's a diff against the head of the svn repository. Thanks, Dennis van Dok See http://wiki.debian.org/Java/MavenRepoSpec -- System Information: Debian Release: wheezy/sid APT prefers oneiric-updates APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500, 'oneiric-proposed'), (500, 'oneiric') Architecture: amd64 (x86_64) Kernel: Linux 3.0.0-15-generic (SMP w/2 CPU cores) Locale: LANG=nl_NL.UTF-8, LC_CTYPE=nl_NL.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages libjcip-annotations-java depends on: ii default-jre- 1:1.6-42ubuntu2 Standard Java or Java compatible R ii gcj-4.4-jre- 4.4.6-2ubuntu2 Java runtime environment using GIJ ii gcj-4.5-jre- 4.5.3-9ubuntu1 Java runtime environment using GIJ ii gcj-4.6-jre- 4.6.1-4ubuntu2 Java runtime environment using GIJ ii gcj-jre-head 4:4.6.1-2ubuntu5 Java runtime environment using GIJ ii gij-4.3 [jav 4.3.4-4ubuntu1 The GNU Java bytecode interpreter ii openjdk-6-jr 6b23~pre11-0ubuntu1.11.10 OpenJDK Java runtime, using Hotspo ii openjdk-7-jr 7~b147-2.0-0ubuntu0.11.10.1 OpenJDK Java runtime, using Hotspo ii sun-java5-jr 1.5.0-19-0ubuntu0.9.04 Sun Java(TM) Runtime Environment ( ii sun-java6-jr 6.26-1natty1 Sun Java(TM) Runtime Environment ( libjcip-annotations-java recommends no packages. libjcip-annotations-java suggests no packages. -- no debconf information
diff -x .svn -ruN libjcip-latest/libjcip-annotations-java/debian//changelog libjcip-annotations-java/debian//changelog --- libjcip-latest/libjcip-annotations-java/debian//changelog 2012-01-18 11:52:44.105531133 +0100 +++ libjcip-annotations-java/debian//changelog 2012-01-18 09:55:42.150033862 +0100 @@ -1,10 +1,8 @@ -libjcip-annotations-java (20060626-3) unstable; urgency=low +libjcip-annotations-java (20060626-2dvd1) oneiric; urgency=low - * Remove Rafal from Uploaders list. - * Clean up Depends. - * Switch to source format 3.0. + * Add pom.xml file and maven-repo-helper commands. - -- Torsten Werner <twer...@debian.org> Tue, 09 Aug 2011 23:18:14 +0200 + -- Dennis van Dok (Software Engineer) <denni...@nikhef.nl> Thu, 12 Jan 2012 12:50:49 +0100 libjcip-annotations-java (20060626-2) unstable; urgency=low diff -x .svn -ruN libjcip-latest/libjcip-annotations-java/debian//control libjcip-annotations-java/debian//control --- libjcip-latest/libjcip-annotations-java/debian//control 2012-01-18 11:52:44.105531133 +0100 +++ libjcip-annotations-java/debian//control 2012-01-18 12:04:50.509073132 +0100 @@ -2,9 +2,10 @@ Section: java Priority: extra Maintainer: Debian Java Maintainers <pkg-java-maintain...@lists.alioth.debian.org> -Uploaders: Torsten Werner <twer...@debian.org> +Uploaders: Rafal Lewczuk <rafal.lewc...@gmail.com>, + Torsten Werner <twer...@debian.org> Build-Depends: cdbs, debhelper (>= 5) -Build-Depends-Indep: ant, default-jdk +Build-Depends-Indep: ant, default-jdk, maven-repo-helper Standards-Version: 3.8.3 Homepage: http://www.jcip.net Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/libjcip-annotations-java diff -x .svn -ruN libjcip-latest/libjcip-annotations-java/debian//libjcip-annotations-java.poms libjcip-annotations-java/debian//libjcip-annotations-java.poms --- libjcip-latest/libjcip-annotations-java/debian//libjcip-annotations-java.poms 1970-01-01 01:00:00.000000000 +0100 +++ libjcip-annotations-java/debian//libjcip-annotations-java.poms 2012-01-12 12:37:36.274910202 +0100 @@ -0,0 +1,26 @@ +# 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 or +# --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 +# --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. +# --classifier=<classifier>: Optional, the classifier for the jar. Empty by default. +# --ignore-pom: don't install the POM with mh_install or mh_installpoms. To use with POM files that are created +# temporarily for certain artifacts such as Javadoc jars. +# +debian/pom.xml --has-package-version diff -x .svn -ruN libjcip-latest/libjcip-annotations-java/debian//maven.rules libjcip-annotations-java/debian//maven.rules --- libjcip-latest/libjcip-annotations-java/debian//maven.rules 1970-01-01 01:00:00.000000000 +0100 +++ libjcip-annotations-java/debian//maven.rules 2012-01-12 12:37:36.274910202 +0100 @@ -0,0 +1,19 @@ +# Maven rules - transform Maven dependencies and plugins +# Format of this file is: +# [group] [artifact] [type] [version] [classifier] [scope] +# where each element can be either +# - the exact string, for example org.apache for the group, or 3.1 +# for the version. In this case, the element is simply matched +# and left as it is +# - * (the star character, alone). In this case, anything will +# match and be left as it is. For example, using * on the +# position of the artifact field will match any artifact id +# - a regular expression of the form s/match/replace/ +# in this case, elements that match are transformed using +# the regex rule. +# All elements much match before a rule can be applied +# Example rule: match jar with groupid= junit, artifactid= junit +# and version starting with 3., replacing the version with 3.x +# junit junit jar s/3\\..*/3.x/ + +net.jcip jcip-annotations jar s/.*/debian/ * * diff -x .svn -ruN libjcip-latest/libjcip-annotations-java/debian//pom.xml libjcip-annotations-java/debian//pom.xml --- libjcip-latest/libjcip-annotations-java/debian//pom.xml 1970-01-01 01:00:00.000000000 +0100 +++ libjcip-annotations-java/debian//pom.xml 2012-01-12 12:28:36.050564989 +0100 @@ -0,0 +1,11 @@ +<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>net.jcip</groupId> + <artifactId>jcip-annotations</artifactId> + <packaging>jar</packaging> + <version>1.0</version> + <name>"Java Concurrency in Practice" book annotations</name> + <url>http://jcip.net/</url> + <description>Java Concurrency In Practice annotations library</description> + +</project> diff -x .svn -ruN libjcip-latest/libjcip-annotations-java/debian//rules libjcip-annotations-java/debian//rules --- libjcip-latest/libjcip-annotations-java/debian//rules 2012-01-18 11:52:44.105531133 +0100 +++ libjcip-annotations-java/debian//rules 2012-01-12 13:07:17.270823645 +0100 @@ -1,10 +1,9 @@ #!/usr/bin/make -f - + include /usr/share/cdbs/1/class/ant.mk include /usr/share/cdbs/1/rules/debhelper.mk # Add here any variable or target overrides you need. - JAVA_HOME := /usr/lib/jvm/default-java DEB_ANT_BUILD_TARGET := dist DEB_ANT_BUILDFILE := debian/build.xml @@ -16,3 +15,9 @@ get-orig-source: sh debian/orig-tar.sh +binary-post-install/$(DEB_SOURCE_PACKAGE):: + mh_installpoms -p$(DEB_SOURCE_PACKAGE) + mh_installjar -p$(DEB_SOURCE_PACKAGE) -l debian/pom.xml dist/jcip.jar + +clean:: + mh_clean