On 05/02/2011 14:41, Giovanni Mascellani wrote:
> I'm uploading to experimental.

I forgot: here is the final patch.

Giovanni.
-- 
Giovanni Mascellani <[email protected]>
Pisa, Italy

Web: http://poisson.phc.unipi.it/~mascellani
Jabber: [email protected] / [email protected]
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-02-05 14:25:41.000000000 +0100
@@ -1,3 +1,10 @@
+libwoodstox-java (1:3.9.2.dfsg-3) experimental; urgency=low
+
+  * Team upload.
+  * Install POM files (closes: #611590).
+
+ -- Giovanni Mascellani <[email protected]>  Sat, 05 Feb 2011 14:25:30 +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-02-05 14:25:29.000000000 +0100
@@ -4,7 +4,7 @@
 Maintainer: Debian Java Maintainers <[email protected]>
 Uploaders: Vincent Fourmond <[email protected]>
 Build-Depends-Indep: ant, ant-optional, default-jdk, junit
-Build-Depends: cdbs, debhelper (>= 5)
+Build-Depends: cdbs, debhelper (>= 5), maven-repo-helper (>= 1.4)
 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/install libwoodstox-java-3.9.2.dfsg/debian/install
--- libwoodstox-java-3.9.2.dfsg/debian/install	2008-05-28 23:13:54.000000000 +0200
+++ libwoodstox-java-3.9.2.dfsg/debian/install	1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-build/wstx-lgpl-3.9.2.jar usr/share/java
\ Manca newline alla fine del file
diff -Nru libwoodstox-java-3.9.2.dfsg/debian/libwoodstox-java.poms libwoodstox-java-3.9.2.dfsg/debian/libwoodstox-java.poms
--- libwoodstox-java-3.9.2.dfsg/debian/libwoodstox-java.poms	1970-01-01 01:00:00.000000000 +0100
+++ libwoodstox-java-3.9.2.dfsg/debian/libwoodstox-java.poms	2011-02-05 14:39:09.000000000 +0100
@@ -0,0 +1 @@
+dist/wstx-lgpl.pom --has-package-version --artifact=build/wstx-lgpl-*.jar --java-lib
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-02-05 14:49:17.000000000 +0100
@@ -0,0 +1,36 @@
+From: Giovanni Mascellani <[email protected]>
+Subject: filter tags in POM files
+Forwarded: not-needed
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=611590
+
+The upstream dist target does many things that are not necessary for
+the scope of building the Debian package. Just one of these things is
+useful: substituting the @VERSION@ tags in the POM file with the actual
+version value. Thus, this operation is moved in a specific `debian-build'
+target.
+
+---
+ build.xml |   11 +++++++++++
+ 1 file changed, 11 insertions(+)
+
+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-02-05 14:38:09.000000000 +0100
+@@ -512,6 +512,16 @@
+        </copy>
+     </target>
+ 
++	<target name="debian-build" depends="jar.wstx.lgpl">
++       <!-- Build POM files -->
++       <copy todir="${DistDir}">
++            <fileset dir="${SrcDir}/maven" includes="*.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-02-05 14:29:32.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,10 @@
 
 clean::
 	-rm -Rf build doc test dist
+	mh_clean
+
+install/libwoodstox-java::
+	mh_install
 
 get-orig-source:
 	uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to