Package: libjoda-time-java
Version: 1.6-3
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu natty ubuntu-patch



*** /tmp/tmpIp5T8V
In Ubuntu, the attached patch was applied to achieve the following:

  * Enabled maven artifact deployment (LP: #715668):
    - debian/control: Build-Depends added maven-repo-helper
    - debian/rules, debian/libjoda-time-java.poms:: install maven artifacts
      and new target to retrieve original POM files.      
    - debian/poms/joda-time.pom: localised pom for maven
  * Update Standards-Version: 3.9.1, no changes.

This change is required to support packaging of Jenkins (aka Hudson) which 
uses a Maven based build syste,

Thanks for considering the patch.


-- System Information:
Debian Release: squeeze/sid
  APT prefers natty-updates
  APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 'natty')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.35-25-generic (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
=== modified file 'debian/changelog'

=== modified file 'debian/control'
--- debian/control      2010-05-04 22:31:09 +0000
+++ debian/control      2011-02-09 10:06:48 +0000
@@ -3,9 +3,9 @@
 Priority: optional
 Maintainer: Debian Java Maintainers 
<pkg-java-maintain...@lists.alioth.debian.org>
 Uploaders: Torsten Werner <twer...@debian.org>, Varun Hiremath 
<va...@debian.org>
-Build-Depends: cdbs, debhelper (>= 5)
+Build-Depends: cdbs, debhelper (>= 5), maven-repo-helper
 Build-Depends-Indep: default-jdk, ant, junit
-Standards-Version: 3.8.4
+Standards-Version: 3.9.1
 Homepage: http://joda-time.sourceforge.net
 Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/libjoda-time-java
 Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/libjoda-time-java/

=== added file 'debian/libjoda-time-java.poms'
--- debian/libjoda-time-java.poms       1970-01-01 00:00:00 +0000
+++ debian/libjoda-time-java.poms       2011-02-09 10:06:35 +0000
@@ -0,0 +1 @@
+debian/poms/joda-time.pom

=== added directory 'debian/poms'
=== added file 'debian/poms/joda-time.pom'
--- debian/poms/joda-time.pom   1970-01-01 00:00:00 +0000
+++ debian/poms/joda-time.pom   2008-12-01 22:15:20 +0000
@@ -0,0 +1,155 @@
+<?xml version="1.0" encoding="UTF-8"?><project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>joda-time</groupId>
+  <artifactId>joda-time</artifactId>
+  <name>Joda time</name>
+  <version>1.6</version>
+  <description>Date and time library to replace JDK date 
handling.</description>
+  <url>http://joda-time.sourceforge.net</url>
+  <issueManagement>
+    
<url>http://sourceforge.net/tracker/?atid=617889&amp;group_id=97367&amp;func=browse</url>
+  </issueManagement>
+  <inceptionYear>2002</inceptionYear>
+  <mailingLists>
+    <mailingList>
+      <name>Joda Interest list</name>
+      
<subscribe>https://lists.sourceforge.net/lists/listinfo/joda-interest</subscribe>
+      
<unsubscribe>https://lists.sourceforge.net/lists/listinfo/joda-interest</unsubscribe>
+      
<archive>http://sourceforge.net/mailarchive/forum.php?forum_name=joda-interest</archive>
+    </mailingList>
+  </mailingLists>
+  <developers>
+    <developer>
+      <id>scolebourne</id>
+      <name>Stephen Colebourne</name>
+      <email>scolebou...@joda.org</email>
+      <organization></organization>
+      <roles>
+        <role>Project Lead</role>
+      </roles>
+    </developer>
+    <developer>
+      <id>broneill</id>
+      <name>Brian S O'Neill</name>
+      <email>brone...@users.sourceforge.net</email>
+      <organization></organization>
+      <roles>
+        <role>Senior Developer</role>
+      </roles>
+    </developer>
+  </developers>
+  <contributors>
+    <contributor>
+      <name>Guy Allard</name>
+    </contributor>
+    <contributor>
+      <name>Fredrik Borgh</name>
+    </contributor>
+    <contributor>
+      <name>Jeroen van Erp</name>
+    </contributor>
+    <contributor>
+      <name>Gwyn Evans</name>
+    </contributor>
+    <contributor>
+      <name>Sean Geoghegan</name>
+    </contributor>
+    <contributor>
+      <name>Ashish Katyal</name>
+    </contributor>
+    <contributor>
+      <name>Antonio Leitao</name>
+    </contributor>
+    <contributor>
+      <name>Kostas Maistrelis</name>
+    </contributor>
+    <contributor>
+      <name>Al Major</name>
+    </contributor>
+    <contributor>
+      <name>Blair Martin</name>
+    </contributor>
+    <contributor>
+      <name>Julen Parra</name>
+    </contributor>
+    <contributor>
+      <name>Mike Schrag</name>
+    </contributor>
+    <contributor>
+      <name>Kandarp Shah</name>
+    </contributor>
+    <contributor>
+      <name>Francois Staes</name>
+    </contributor>
+    <contributor>
+      <name>Maxim Zhao</name>
+    </contributor>
+    <contributor>
+      <name>Ryan Propper</name>
+    </contributor>
+  </contributors>
+  <licenses>
+    <license>
+      <name>Apache 2</name>
+      <url>http://www.apache.org/licenses/</url>
+    </license>
+  </licenses>
+  <scm>
+    
<connection>scm:svn:https://joda-time.svn.sourceforge.net/svnroot/joda-time/trunk/JodaTime/</connection>
+    
<url>http://joda-time.svn.sourceforge.net/viewvc/joda-time/trunk/JodaTime/</url>
+  </scm>
+  <organization>
+    <name>Joda.org</name>
+    <url>http://www.joda.org</url>
+  </organization>
+  <build>
+    <sourceDirectory>src/java</sourceDirectory>
+    <testSourceDirectory>src/test</testSourceDirectory>
+    <resources>
+      <resource>
+        <directory>${basedir}/target/classes</directory>
+        <includes>
+          <include>org/joda/time/tz/data/**</include>
+        </includes>
+      </resource>
+      <resource>
+        <targetPath>META-INF</targetPath>
+        <directory>.</directory>
+        <includes>
+          <include>NOTICE.txt</include>
+        </includes>
+      </resource>
+    </resources>
+    <testResources>
+      <testResource>
+        <directory>${basedir}/src/testdata</directory>
+        <includes>
+          <include>*.dat</include>
+        </includes>
+      </testResource>
+    </testResources>
+    <plugins>
+      <plugin>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <includes>
+            <include>org/joda/time/**/TestAll.java</include>
+          </includes>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+  <distributionManagement>
+    <repository>
+      <id>default</id>
+      <name>Default Repository</name>
+      <url>file://home/groups/j/jo/joda-time/htdocs/repository</url>
+    </repository>
+    <site>
+      <id>default</id>
+      <name>Default Site</name>
+      
<url>scp://shell.sourceforge.net//home/groups/j/jo/joda-time/htdocs/</url>
+    </site>
+    <status>converted</status>
+  </distributionManagement>
+</project>

=== modified file 'debian/rules'
--- debian/rules        2009-08-11 11:41:44 +0000
+++ debian/rules        2011-02-09 10:06:35 +0000
@@ -6,6 +6,8 @@
 JAVA_HOME              := /usr/lib/jvm/default-java
 DEB_ANT_BUILD_TARGET   := jar
 DEB_JARS                := junit
+PACKAGE                        := joda-time
+MAVEN_REPO              := http://repo1.maven.org/maven2
 
 # update timezone data
 makebuilddir/libjoda-time-java::
@@ -15,6 +17,13 @@
 
 install/libjoda-time-java::
        dh_link /usr/share/java/joda-time-$(DEB_UPSTREAM_VERSION).jar 
/usr/share/java/joda-time.jar
+       mh_installpoms -plib$(PACKAGE)-java
+       mh_installjar -plib$(PACKAGE)-java -l debian/poms/$(PACKAGE).pom 
build/$(PACKAGE)-$(DEB_UPSTREAM_VERSION).jar 
 
 get-orig-source:
        -uscan --upstream-version 0 --rename
+
+get-orig-pom:
+       mkdir -p debian/poms
+       wget  -U NoSuchBrowser/1.0 -O debian/poms/$(PACKAGE).pom \
+               
$(MAVEN_REPO)/joda-time/$(PACKAGE)/$(DEB_UPSTREAM_VERSION)/$(PACKAGE)-$(DEB_UPSTREAM_VERSION).pom

Reply via email to