Package: libwoodstox-java
Version: 1:3.9.2.dfsg-2
Severity: normal
Tags: patch

Hi.

This patch makes libwoodstox-java install the POM file associated with
the distributed jar. Having it makes it easier to compile project that
use maven or ivy as build system (osmosis v. 0.38, in my case). Could
you please apply it to the package?

BTW, I'm aware that the package is team maintained, but I nonetheless
prefer to receive some feedback before actually upload the package.

Thanks, Giovanni.

--- System information. ---
Architecture: amd64
Kernel:       Linux 2.6.32-5-amd64

Debian Release: 6.0
  500 unstable        www.debian-multimedia.org
  500 unstable        poisson.phc.unipi.it
  500 unstable        mi.mirror.garr.it
  500 testing         mi.mirror.garr.it
  500 stable          volatile.debian.org
  500 stable          security.debian.org
    1 experimental    mi.mirror.garr.it

--- Package information. ---
Depends                     (Version) | Installed
=====================================-+-===========
default-jre-headless                  | 1:1.6-40
 OR java2-runtime-headless            |


Package's Recommends field is empty.

Package's Suggests field is empty.



-- 
Giovanni Mascellani <mascell...@poisson.phc.unipi.it>
Pisa, Italy

Web: http://poisson.phc.unipi.it/~mascellani
Jabber: g.mascell...@jabber.org / giova...@elabor.homelinux.org
diff -Nru libwoodstox-java-3.9.2.dfsg/debian/changelog libwoodstox-java-3.9.2.dfsg/debian/changelog
--- libwoodstox-java-3.9.2.dfsg/debian/changelog	2010-05-08 12:46:18.000000000 +0200
+++ libwoodstox-java-3.9.2.dfsg/debian/changelog	2011-01-30 20:07:30.000000000 +0100
@@ -1,3 +1,10 @@
+libwoodstox-java (1:3.9.2.dfsg-3) unstable; urgency=low
+
+  * Team upload.
+  * Install POM files.
+
+ -- Giovanni Mascellani <g...@debian.org>  Sun, 30 Jan 2011 20:05:48 +0100
+
 libwoodstox-java (1:3.9.2.dfsg-2) unstable; urgency=low
 
   * Team upload
diff -Nru libwoodstox-java-3.9.2.dfsg/debian/control libwoodstox-java-3.9.2.dfsg/debian/control
--- libwoodstox-java-3.9.2.dfsg/debian/control	2010-05-08 12:46:18.000000000 +0200
+++ libwoodstox-java-3.9.2.dfsg/debian/control	2011-01-30 20:10:43.000000000 +0100
@@ -4,7 +4,7 @@
 Maintainer: Debian Java Maintainers <pkg-java-maintain...@lists.alioth.debian.org>
 Uploaders: Vincent Fourmond <fourm...@debian.org>
 Build-Depends-Indep: ant, ant-optional, default-jdk, junit
-Build-Depends: cdbs, debhelper (>= 5)
+Build-Depends: cdbs, debhelper (>= 5), maven-repo-helper
 Standards-Version: 3.8.4
 Homepage: http://woodstox.codehaus.org/
 Vcs-Svn: svn://svn.debian.org/svn/pkg-java/packages/trunk/libwoodstox-java/
diff -Nru libwoodstox-java-3.9.2.dfsg/debian/patches/30-build-poms.patch libwoodstox-java-3.9.2.dfsg/debian/patches/30-build-poms.patch
--- libwoodstox-java-3.9.2.dfsg/debian/patches/30-build-poms.patch	1970-01-01 01:00:00.000000000 +0100
+++ libwoodstox-java-3.9.2.dfsg/debian/patches/30-build-poms.patch	2011-01-31 00:58:36.000000000 +0100
@@ -0,0 +1,22 @@
+Index: libwoodstox-java-3.9.2.dfsg/build.xml
+===================================================================
+--- libwoodstox-java-3.9.2.dfsg.orig/build.xml	2011-01-31 00:56:48.000000000 +0100
++++ libwoodstox-java-3.9.2.dfsg/build.xml	2011-01-31 00:58:17.000000000 +0100
+@@ -512,6 +512,17 @@
+        </copy>
+     </target>
+ 
++	<target name="debian-build" depends="jar.wstx.lgpl">
++       <!-- Build POM files -->
++       <copy todir="${DistDir}">
++            <fileset dir="${SrcDir}/maven" includes="*.pom" />
++            <globmapper from="*.pom" to="*-${WSTX_VERSION}.pom" />
++            <filterset>
++              <filter token="VERSION" value="${WSTX_VERSION}" />
++            </filterset>
++       </copy>
++	</target>
++
+     <target name="all" depends="clean,javadoc,test,dist">
+         <!-- This target simply depends on others to do its job -->
+     </target>
diff -Nru libwoodstox-java-3.9.2.dfsg/debian/patches/series libwoodstox-java-3.9.2.dfsg/debian/patches/series
--- libwoodstox-java-3.9.2.dfsg/debian/patches/series	2010-05-08 12:21:24.000000000 +0200
+++ libwoodstox-java-3.9.2.dfsg/debian/patches/series	2011-01-31 00:59:34.000000000 +0100
@@ -1,2 +1,3 @@
 10-disable-unused.dpatch
 20-testsuite-enable.dpatch
+30-build-poms.patch
diff -Nru libwoodstox-java-3.9.2.dfsg/debian/rules libwoodstox-java-3.9.2.dfsg/debian/rules
--- libwoodstox-java-3.9.2.dfsg/debian/rules	2010-05-08 12:44:00.000000000 +0200
+++ libwoodstox-java-3.9.2.dfsg/debian/rules	2011-01-31 01:01:20.000000000 +0100
@@ -7,7 +7,7 @@
 ANT_HOME             := /usr/share/ant
 DEB_ANT_COMPILER     := modern
 DEB_JARS             := ant-nodeps junit ant-junit ant-trax
-DEB_ANT_BUILD_TARGET := jar.wstx.lgpl
+DEB_ANT_BUILD_TARGET := debian-build
 DEB_BUILDDIR         := .
 DEB_ANT_BUILDFILE    := build.xml
 DEB_ANT_CLEAN_TARGET := clean
@@ -15,6 +15,11 @@
 
 clean::
 	-rm -Rf build doc test dist
+	mh_clean
+
+install/libwoodstox-java::
+	mh_installjar -plibwoodstox-java -l dist/wstx-lgpl-3.9.2.pom build/wstx-lgpl-3.9.2.jar
+	mh_installpom -plibwoodstox-java dist/wstx-lgpl-3.9.2.pom
 
 get-orig-source:
 	uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to