[pkg-java] r14340 - trunk/libstax2-api-java/debian
Giovanni Mascellani
gio at alioth.debian.org
Sat Aug 20 09:49:06 UTC 2011
Author: gio
Date: 2011-08-20 09:49:05 +0000 (Sat, 20 Aug 2011)
New Revision: 14340
Added:
trunk/libstax2-api-java/debian/libstax2-api-java.poms
trunk/libstax2-api-java/debian/stax2-api.pom
Modified:
trunk/libstax2-api-java/debian/orig-tar.sh
trunk/libstax2-api-java/debian/rules
Log:
Now it builds correctly.
Added: trunk/libstax2-api-java/debian/libstax2-api-java.poms
===================================================================
--- trunk/libstax2-api-java/debian/libstax2-api-java.poms (rev 0)
+++ trunk/libstax2-api-java/debian/libstax2-api-java.poms 2011-08-20 09:49:05 UTC (rev 14340)
@@ -0,0 +1 @@
+debian/stax2-api.patched.pom --has-package-version --artifact=dist/stax2-api.jar --java-lib
Modified: trunk/libstax2-api-java/debian/orig-tar.sh
===================================================================
--- trunk/libstax2-api-java/debian/orig-tar.sh 2011-08-20 09:23:08 UTC (rev 14339)
+++ trunk/libstax2-api-java/debian/orig-tar.sh 2011-08-20 09:49:05 UTC (rev 14340)
@@ -3,13 +3,7 @@
# called by uscan with '--upstream-version' <version> <file>
TAR=../libstax2-api-java_$2.orig.tar.gz
-DIR=stax2-api-$2
-# clean up the upstream tarball
-#tar -x -z -f $TAR
-#tar -c -z -f $TAR --exclude '*.jar' $DIR
-#rm -rf $DIR
-
# move to directory 'tarballs'
if [ -r .svn/deb-layout ]; then
. .svn/deb-layout
Modified: trunk/libstax2-api-java/debian/rules
===================================================================
--- trunk/libstax2-api-java/debian/rules 2011-08-20 09:23:08 UTC (rev 14339)
+++ trunk/libstax2-api-java/debian/rules 2011-08-20 09:49:05 UTC (rev 14340)
@@ -8,12 +8,23 @@
DEB_ANT_COMPILER := modern
DEB_ANT_BUILD_TARGET := debiandist
DEB_BUILDDIR := .
-DEB_ANT_BUILDFILE := debian/build.xml
+DEB_ANT_BUILDFILE := build.xml
DEB_ANT_CLEAN_TARGET := clean
-DEB_ANT_CHECK_TARGET := test
clean::
- -rm -Rf build doc test dist
+ rm -Rf build doc test dist build.xml debian/stax2-api.patched.pom
+ mh_clean
+configure/libstax2-api-java::
+ # Move build.xml to the root dir
+ cp debian/build.xml build.xml
+
+ # Patch the POM to include the correct version number
+ cp debian/stax2-api.pom debian/stax2-api.patched.pom
+ sed -i debian/stax2-api.patched.pom -e 's/@VERSION@/$(DEB_UPSTREAM_VERSION)/g'
+
+install/libstax2-api-java::
+ mh_install -plibstax2-api-java
+
get-orig-source:
uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
Added: trunk/libstax2-api-java/debian/stax2-api.pom
===================================================================
--- trunk/libstax2-api-java/debian/stax2-api.pom (rev 0)
+++ trunk/libstax2-api-java/debian/stax2-api.pom 2011-08-20 09:49:05 UTC (rev 14340)
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+
+ <!-- General information -->
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.codehaus.woodstox</groupId>
+ <artifactId>stax2-api</artifactId>
+ <packaging>jar</packaging>
+ <name>Stax2 API</name>
+ <version>@VERSION@</version>
+ <description>Stax2 API is an extension to basic Stax 1.0 API that adds significant new functionality, such as full-featured bi-direction validation interface and high-performance Typed Access API.
+</description>
+
+ <!-- Contact information -->
+
+ <!-- In future, should there be separate Stax2 home page? -->
+ <url>http://woodstox.codehaus.org/StAX2</url>
+ <issueManagement>
+ <url>http://jira.codehaus.org/browse/WSTX</url>
+ </issueManagement>
+
+ <!-- Dependency information -->
+
+ <dependencies>
+ <!-- Stax API jar is needed; 1.0-2 seems to be the last "official"
+ version prior to JDK 6 that bundles API
+ -->
+ <dependency>
+ <groupId>javax.xml.stream</groupId>
+ <artifactId>stax-api</artifactId>
+ <version>1.0-2</version>
+ </dependency>
+ </dependencies>
+
+ <!-- Licensing -->
+ <licenses>
+ <license>
+ <name>The BSD License</name>
+ <url>http://www.opensource.org/licenses/bsd-license.php</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+
+ <organization>
+ <name>Codehaus</name>
+ <url>http://www.codehaus.org/</url>
+ </organization>
+
+</project>
More information about the pkg-java-commits
mailing list