[pkg-java] r8876 - trunk/plexus-i18n/debian

Ludovic Claude ludovicc-guest at alioth.debian.org
Sun Jul 5 19:40:38 UTC 2009


Author: ludovicc-guest
Date: 2009-07-05 19:40:37 +0000 (Sun, 05 Jul 2009)
New Revision: 8876

Added:
   trunk/plexus-i18n/debian/libplexus-i18n-java.poms
   trunk/plexus-i18n/debian/orig-tar.sh
Removed:
   trunk/plexus-i18n/debian/build.xml
Modified:
   trunk/plexus-i18n/debian/build.properties
   trunk/plexus-i18n/debian/changelog
   trunk/plexus-i18n/debian/control
   trunk/plexus-i18n/debian/rules
   trunk/plexus-i18n/debian/watch
Log:
* New version

Modified: trunk/plexus-i18n/debian/build.properties
===================================================================
--- trunk/plexus-i18n/debian/build.properties	2009-07-05 19:37:34 UTC (rev 8875)
+++ trunk/plexus-i18n/debian/build.properties	2009-07-05 19:40:37 UTC (rev 8876)
@@ -1,2 +1,3 @@
-classpath.compile=/usr/share/java/plexus-container-default.jar:\
-                  /usr/share/java/plexus-utils.jar
+javadoc.dir=build/api
+maven.test.skip=true
+build.javaVersion=1.5

Deleted: trunk/plexus-i18n/debian/build.xml
===================================================================
--- trunk/plexus-i18n/debian/build.xml	2009-07-05 19:37:34 UTC (rev 8875)
+++ trunk/plexus-i18n/debian/build.xml	2009-07-05 19:40:37 UTC (rev 8876)
@@ -1,23 +0,0 @@
-<?xml version="1.0"?>
-
-<project name="pkg-java" default="package" basedir="..">
-
-    <property file="debian/build.properties"/>
-    <property file="/usr/share/maven-ant-helper/maven-defaults.properties"/>
-    <property name="maven.test.exclude" value=""/>
-    <property name="maven.build.xml" value="/usr/share/maven-ant-helper/maven-build.xml"/>
-
-    <target name="clean">
-        <ant target="clean" antfile="${maven.build.xml}" dir="."/>
-    </target>
-
-    <target name="package">
-        <ant target="package" antfile="${maven.build.xml}" dir=".">
-            <property name="artifactId" value="${artfiactId}"/>
-        </ant>
-    </target>
-
-    <target name="javadoc">
-        <ant target="javadoc" antfile="${maven.build.xml}" dir="."/>
-    </target>
-</project>

Modified: trunk/plexus-i18n/debian/changelog
===================================================================
--- trunk/plexus-i18n/debian/changelog	2009-07-05 19:37:34 UTC (rev 8875)
+++ trunk/plexus-i18n/debian/changelog	2009-07-05 19:40:37 UTC (rev 8876)
@@ -1,3 +1,20 @@
+plexus-i18n (1.0-beta-10-1) unstable; urgency=low
+
+  * New upstream version
+  * Added myself to Uploaders.
+  * Add the Maven POM to the package
+  * Add a Build-Depends-Indep dependency on maven-repo-helper
+  * Use mh_installpom and mh_installjar to install the POM and the jar to the
+    Maven repository
+  * Update the watch file to reflect changes on the web site, use
+    SVN to download the sources
+  * Add maven-build.xml to debian/ in order to support compilation with Java 1.5
+  * Change the dependency on libplexus-container-default-java to 
+    libplexus-containers-java
+  * Use the default JDK instead of gcj for building the package
+
+ -- Ludovic Claude <ludovic.claude at laposte.net>  Sun, 05 Jul 2009 20:39:18 +0100
+
 plexus-i18n (1.0-beta-7+svn6675-3) unstable; urgency=low
 
   * Update Standards-Version: 3.8.2.

Modified: trunk/plexus-i18n/debian/control
===================================================================
--- trunk/plexus-i18n/debian/control	2009-07-05 19:37:34 UTC (rev 8875)
+++ trunk/plexus-i18n/debian/control	2009-07-05 19:40:37 UTC (rev 8876)
@@ -2,17 +2,20 @@
 Section: java
 Priority: optional
 Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
-Uploaders: Trygve Laugstol <trygvis at inamo.no>, Paul Cager <paul-debian at home.paulcager.org>, Torsten Werner <twerner at debian.org>
-Build-Depends-Indep: java-gcj-compat-dev (>=1.0.65), ant-optional, libxalan2-java, junit, maven-ant-helper (>= 3), libplexus-container-default-java (>= 1.0-alpha-9-stable-1), libplexus-utils-java (>= 1:1.4.1)
-Build-Depends: ant, debhelper (>= 5), cdbs (>= 0.4.5.3)
-Standards-Version: 3.8.2
+Uploaders: Trygve Laugstol <trygvis at inamo.no>, Paul Cager <paul-debian at home.paulcager.org>, 
+ Torsten Werner <twerner at debian.org>, Ludovic Claude <ludovic.claude at laposte.net>
+Build-Depends-Indep: maven-repo-helper, maven-ant-helper (>> 4), ant, ant-optional, 
+ libxalan2-java, libplexus-utils-java (>= 1:1.4.5), libplexus-containers-java
+Build-Depends: debhelper (>= 5), cdbs (>= 0.4.5.3), default-jdk-builddep
+Standards-Version: 3.8.1
+Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/plexus-i18n
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/plexus-i18n/
 Homepage: http://plexus.codehaus.org/
-Vcs-Svn: svn+ssh://svn.debian.org/svn/pkg-java/trunk/plexus-i18n
-Vcs-Browser: http://svn.debian.org/svn/pkg-java/trunk/plexus-i18n/
 
 Package: libplexus-i18n-java
 Architecture: all
-Depends: libplexus-container-default-java, libplexus-utils-java, ${misc:Depends}
+Section: java
+Depends: ${misc:Depends}, libplexus-utils-java, libplexus-containers-java
 Suggests: libplexus-i18n-java-doc
 Description: a component to support internationalization of applications using Plexus
  Plexus I18n is a set of Plexus-components supporting internationalization of
@@ -21,8 +24,7 @@
 Package: libplexus-i18n-java-doc
 Architecture: all
 Section: doc
-Depends: classpath-doc, libplexus-container-default-java-doc, libplexus-utils-java-doc,
- ${misc:Depends}
+Depends: ${misc:Depends}, classpath-doc, libplexus-containers-java-doc, libplexus-utils-java-doc
 Suggests: libplexus-i18n-java
 Description: API Documentation for plexus-i18n
  Plexus I18n is a set of Plexus-components supporting internationalization of

Added: trunk/plexus-i18n/debian/libplexus-i18n-java.poms
===================================================================
--- trunk/plexus-i18n/debian/libplexus-i18n-java.poms	                        (rev 0)
+++ trunk/plexus-i18n/debian/libplexus-i18n-java.poms	2009-07-05 19:40:37 UTC (rev 8876)
@@ -0,0 +1 @@
+pom.xml --no-parent

Added: trunk/plexus-i18n/debian/orig-tar.sh
===================================================================
--- trunk/plexus-i18n/debian/orig-tar.sh	                        (rev 0)
+++ trunk/plexus-i18n/debian/orig-tar.sh	2009-07-05 19:40:37 UTC (rev 8876)
@@ -0,0 +1,19 @@
+#!/bin/sh -e
+
+# $2 = version
+
+TAR=../plexus-i18n_$2.orig.tar.gz
+DIR=plexus-i18n-$2
+TAG=plexus-i18n-$2
+
+svn export http://svn.codehaus.org/plexus/plexus-components/tags/$TAG/ $DIR
+tar -c -z -f $TAR $DIR
+rm -rf $DIR ../$TAG
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+  . .svn/deb-layout
+  mv $TAR $origDir
+  echo "moved $TAR to $origDir"
+fi
+


Property changes on: trunk/plexus-i18n/debian/orig-tar.sh
___________________________________________________________________
Added: svn:executable
   + *

Modified: trunk/plexus-i18n/debian/rules
===================================================================
--- trunk/plexus-i18n/debian/rules	2009-07-05 19:37:34 UTC (rev 8875)
+++ trunk/plexus-i18n/debian/rules	2009-07-05 19:40:37 UTC (rev 8876)
@@ -2,43 +2,30 @@
 
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/ant.mk
-include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
-PACKAGE              := $(shell dpkg-parsechangelog | egrep '^Source:' | cut -f2 -d' ')
-VERSION              := $(shell dpkg-parsechangelog | egrep '^Version:' | sed "s,Version: \(.*\)-.*,\1,g")
-PLAIN_VERSION        := $(shell echo $(VERSION) | sed 's/+svn.*//')
-JAVA_HOME            := /usr/lib/jvm/java-gcj
-ANT_HOME             := /usr/share/ant
-DEB_JARS             := $(ANT_HOME)/lib/ant-launcher.jar $(ANT_HOME)/lib/ant-trax.jar xalan2 \
-                        plexus-container-default.jar \
-			plexus-utils.jar \
-			junit.jar \
-			ant-junit.jar
+PACKAGE              := $(DEB_SOURCE_PACKAGE)
+VERSION              := $(DEB_UPSTREAM_VERSION)
+JAVA_HOME            := /usr/lib/jvm/default-java
+DEB_JARS             := ant-nodeps plexus-container-default \
+                        plexus-utils junit ant-junit
 DEB_ANT_BUILD_TARGET := package javadoc
-DEB_ANT_BUILDFILE    := ./debian/build.xml
-DEB_ANT_ARGS         := -DartfiactId=$(PACKAGE) -Dpackage=$(PACKAGE) -Dversion=$(PLAIN_VERSION)
+DEB_ANT_BUILDFILE    := /usr/share/maven-ant-helper/maven-build.xml
+DEB_ANT_ARGS         := -Dbasedir=$(realpath .) -Dpackage=$(PACKAGE) -Dversion=$(VERSION)
 API_DOCS             := build/api
-#SVN                  := http://svn.codehaus.org/plexus/tags/plexus-i18n-$(VERSION)
-SVN_REV              := $(shell dpkg-parsechangelog | egrep '^Version:' | sed 's/.*+svn//' | sed 's/-.*//')
-SVN                  := http://svn.codehaus.org/plexus/plexus-components/trunk/$(PACKAGE) -r $(SVN_REV)
 
 makebuilddir/lib$(PACKAGE)-java::
 	install -d build/classes/META-INF/plexus/
 	install -m644 debian/components.xml build/classes/META-INF/plexus/
 
 get-orig-source:
-	echo "Getting version $(VERSION) from $(SVN)"
-	rm -rf orig_tmp
-	mkdir orig_tmp
-	cd orig_tmp && \
-		svn export -q $(SVN) $(PACKAGE) && \
-		tar czf ../../$(PACKAGE)_$(VERSION).orig.tar.gz $(PACKAGE)
-	rm -rf orig_tmp
+	uscan --download-version $(VERSION) --force-download --rename
 
 binary-post-install/lib$(PACKAGE)-java::
-	dh_install -plib$(PACKAGE)-java build/$(PACKAGE)-$(PLAIN_VERSION).jar usr/share/java
-	dh_link -plib$(PACKAGE)-java usr/share/java/$(PACKAGE)-$(PLAIN_VERSION).jar usr/share/java/$(PACKAGE).jar
+	mh_installpoms -plib$(PACKAGE)-java
+	mh_installjar -plib$(PACKAGE)-java pom.xml -l build/$(PACKAGE)-$(VERSION).jar
 
 binary-post-install/lib$(PACKAGE)-java-doc::
-	mv build/javadoc build/api
 	dh_install -plib$(PACKAGE)-java-doc $(API_DOCS) usr/share/doc/lib$(PACKAGE)-java
+
+clean::
+	-rm -rf debian/tmp

Modified: trunk/plexus-i18n/debian/watch
===================================================================
--- trunk/plexus-i18n/debian/watch	2009-07-05 19:37:34 UTC (rev 8875)
+++ trunk/plexus-i18n/debian/watch	2009-07-05 19:40:37 UTC (rev 8876)
@@ -1,3 +1,4 @@
 version=3
-opts=dversionmangle=s/\+svn\d*// \
-http://repository.codehaus.org/org/codehaus/plexus/plexus-i18n/ (\d.*)/
+http://svn.codehaus.org/plexus/plexus-components/tags/ \
+  plexus-i18n-(.*)/ debian debian/orig-tar.sh
+




More information about the pkg-java-commits mailing list