[pkg-java] r14803 - in trunk/commons-vfs/debian: . patches

Damien Raude-Morvan drazzib at alioth.debian.org
Sun Sep 11 00:07:22 UTC 2011


Author: drazzib
Date: 2011-09-11 00:07:22 +0000 (Sun, 11 Sep 2011)
New Revision: 14803

Added:
   trunk/commons-vfs/debian/maven.ignoreRules
   trunk/commons-vfs/debian/maven.properties
   trunk/commons-vfs/debian/patches/disable_webdav_provider.diff
   trunk/commons-vfs/debian/patches/series
   trunk/commons-vfs/debian/patches/skip_examples.diff
Removed:
   trunk/commons-vfs/debian/patches/01_build-xml-nodownload.diff
   trunk/commons-vfs/debian/patches/02_no_home_dir.diff
   trunk/commons-vfs/debian/patches/series
Modified:
   trunk/commons-vfs/debian/changelog
   trunk/commons-vfs/debian/control
   trunk/commons-vfs/debian/copyright
   trunk/commons-vfs/debian/docs
   trunk/commons-vfs/debian/libcommons-vfs-java-doc.install
   trunk/commons-vfs/debian/libcommons-vfs-java.poms
   trunk/commons-vfs/debian/maven.rules
   trunk/commons-vfs/debian/rules
Log:
* New upstream release:
  - Drop all previous patches.
  - d/control: Build-Depends on libcommons-net2-java, junit4,
    libcommons-compress-java.
* Bump Standards-Version 3.9.2: no changes needed.
* d/copyright: Use DEP-5 format.
* Switch to Maven build system:
  - d/patches/skip_examples.diff: Don't build examples module.
  - d/patches/disable_webdav_provider.diff: Disable webdav provider.
  - Drop B-D on ant, but add B-D on maven-debian-helper
  - Use ${maven:Depends} and ${maven:OptionalDepends} for Depends
    and Recommends.
* d/docs: Update for new release.

Modified: trunk/commons-vfs/debian/changelog
===================================================================
--- trunk/commons-vfs/debian/changelog	2011-09-10 23:08:42 UTC (rev 14802)
+++ trunk/commons-vfs/debian/changelog	2011-09-11 00:07:22 UTC (rev 14803)
@@ -1,3 +1,21 @@
+commons-vfs (2.0-1) unstable; urgency=low
+
+  * New upstream release:
+    - Drop all previous patches.
+    - d/control: Build-Depends on libcommons-net2-java, junit4,
+      libcommons-compress-java.
+  * Bump Standards-Version 3.9.2: no changes needed.
+  * d/copyright: Use DEP-5 format.
+  * Switch to Maven build system:
+    - d/patches/skip_examples.diff: Don't build examples module.
+    - d/patches/disable_webdav_provider.diff: Disable webdav provider.
+    - Drop B-D on ant, but add B-D on maven-debian-helper
+    - Use ${maven:Depends} and ${maven:OptionalDepends} for Depends
+      and Recommends.
+  * d/docs: Update for new release.
+
+ -- Damien Raude-Morvan <drazzib at debian.org>  Sun, 11 Sep 2011 00:44:27 +0200
+
 commons-vfs (1.0-6) unstable; urgency=low
 
   * Team upload

Modified: trunk/commons-vfs/debian/control
===================================================================
--- trunk/commons-vfs/debian/control	2011-09-10 23:08:42 UTC (rev 14802)
+++ trunk/commons-vfs/debian/control	2011-09-11 00:07:22 UTC (rev 14803)
@@ -3,18 +3,31 @@
 Priority: optional
 Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
 Uploaders: Damien Raude-Morvan <drazzib at debian.org>
-Build-Depends-Indep: ant-optional, junit, libcommons-net-java, libcommons-logging-java,
- libcommons-httpclient-java, libcommons-collections3-java, libjsch-java, maven-repo-helper
-Build-Depends: ant, debhelper (>= 7), cdbs, default-jdk
-Standards-Version: 3.9.1
+Build-Depends-Indep: ant-doc,
+                     junit4,
+                     libcommons-collections3-java,
+                     libcommons-collections3-java-doc,
+                     libcommons-compress-java,
+                     libcommons-httpclient-java,
+                     libcommons-httpclient-java-doc,
+                     libcommons-logging-java,
+                     libcommons-logging-java-doc,
+                     libcommons-net2-java,
+                     libcommons-net2-java-doc,
+                     libjdom1-java-doc,
+                     libjsch-java,
+                     libmaven-antrun-plugin-java,
+                     libmaven-javadoc-plugin-java
+Build-Depends: cdbs, debhelper (>= 7), default-jdk, maven-debian-helper
+Standards-Version: 3.9.2
 Homepage: http://commons.apache.org/vfs/
 Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/commons-vfs
 Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/commons-vfs
 
 Package: libcommons-vfs-java
 Architecture: all
-Depends: ${misc:Depends}, libcommons-logging-java
-Recommends: libcommons-net-java, libcommons-httpclient-java, libcommons-collections3-java, libjsch-java
+Depends: ${maven:Depends}, ${misc:Depends}
+Recommends: ${maven:OptionalDepends}
 Suggests: libcommons-vfs-java-doc
 Description: Java API for accessing various filesystems
  Commons VFS provides a single API for accessing various different file
@@ -28,6 +41,7 @@
 Architecture: all
 Section: doc
 Depends: ${misc:Depends}
+Recommends: default-jdk-doc
 Suggests: libcommons-vfs-java
 Description: Java API for accessing various filesystems - documentation
  Commons VFS provides a single API for accessing various different file

Modified: trunk/commons-vfs/debian/copyright
===================================================================
--- trunk/commons-vfs/debian/copyright	2011-09-10 23:08:42 UTC (rev 14802)
+++ trunk/commons-vfs/debian/copyright	2011-09-11 00:07:22 UTC (rev 14803)
@@ -1,8 +1,9 @@
-This package was debianized by Damien Raude-Morvan <drazzib at drazzib.com>
-
-It was downloaded from http://commons.apache.org/vfs
-
-Upstream Authors: Adam Murdoch <adammurdoch at apache.org>
+Format: http://dep.debian.net/deps/dep5/
+Upstream-Name: Apache Commons VFS
+Upstream-Contact: http://commons.apache.org/vfs/
+Source: http://www.apache.org/dist/commons/vfs/
+Comment:
+    Upstream Authors: Adam Murdoch <adammurdoch at apache.org>
                   James Strachan <jstrachan at apache.org>
                   Mario Ivankovits <imario at apache.org>
                   Rahul Akolkar <rahul at apache.org>
@@ -10,13 +11,14 @@
                   Anthony Goubard <adagoubard at chello.nl>
                   Christopher Ottley <xknight at users.sourceforge.net>
 
-Copyright: © 2002-2008 The Apache Software Foundation
+Files: *
+Copyright: Copyright 2002-2011 The Apache Software Foundation
+License: Apache-2.0
 
-License: Apache 2.0
+Files: debian/*
+Copyright: Copyright (C) 2008-2011, Damien Raude-Morvan <drazzib at drazzib.com>
+License: Apache-2.0
 
-On Debian systems the full text of the Apache License can be found
-in `/usr/share/common-licenses/Apache-2.0'.
-
-The Debian packaging is
-Copyright (C) 2008, Damien Raude-Morvan <drazzib at drazzib.com>
-and is licensed under the BSD, see `/usr/share/common-licenses/BSD'.
+License: Apache-2.0
+ On Debian systems the full text of the Apache License can be found
+ in `/usr/share/common-licenses/Apache-2.0'.

Modified: trunk/commons-vfs/debian/docs
===================================================================
--- trunk/commons-vfs/debian/docs	2011-09-10 23:08:42 UTC (rev 14802)
+++ trunk/commons-vfs/debian/docs	2011-09-11 00:07:22 UTC (rev 14803)
@@ -1,2 +1,3 @@
+RELEASE-NOTES.txt
+README.txt
 NOTICE.txt
-RELEASE_NOTES.txt

Modified: trunk/commons-vfs/debian/libcommons-vfs-java-doc.install
===================================================================
--- trunk/commons-vfs/debian/libcommons-vfs-java-doc.install	2011-09-10 23:08:42 UTC (rev 14802)
+++ trunk/commons-vfs/debian/libcommons-vfs-java-doc.install	2011-09-11 00:07:22 UTC (rev 14803)
@@ -1 +1 @@
-dist/docs/api /usr/share/doc/libcommons-vfs-java/
+target/site/apidocs/* /usr/share/doc/libcommons-vfs-java/api/

Modified: trunk/commons-vfs/debian/libcommons-vfs-java.poms
===================================================================
--- trunk/commons-vfs/debian/libcommons-vfs-java.poms	2011-09-10 23:08:42 UTC (rev 14802)
+++ trunk/commons-vfs/debian/libcommons-vfs-java.poms	2011-09-11 00:07:22 UTC (rev 14803)
@@ -1 +1,4 @@
-core/pom.xml --no-parent
+pom.xml --no-parent
+examples/pom.xml
+core/pom.xml
+dist/pom.xml --ignore

Added: trunk/commons-vfs/debian/maven.ignoreRules
===================================================================
--- trunk/commons-vfs/debian/maven.ignoreRules	                        (rev 0)
+++ trunk/commons-vfs/debian/maven.ignoreRules	2011-09-11 00:07:22 UTC (rev 14803)
@@ -0,0 +1,22 @@
+# Maven ignore rules - ignore some Maven dependencies and plugins
+# Format of this file is:
+# [group] [artifact] [type] [version] [classifier] [scope]
+# where each element can be either
+# - the exact string, for example org.apache for the group, or 3.1
+#   for the version. In this case, the element is simply matched
+#   and left as it is
+# - * (the star character, alone). In this case, anything will
+#   match and be left as it is. For example, using * on the
+#  position of the artifact field will match any artifact id
+# All elements much match before a rule can be applied
+# Example rule: match jar with groupid= junit, artifactid= junit
+# and version starting with 3., this dependency is then removed
+# from the POM
+#   junit junit jar s/3\\..*/3.x/
+
+org.codehaus.mojo findbugs-maven-plugin * * * *
+org.apache.maven.plugins maven-checkstyle-plugin * * * *
+org.apache.maven.plugins maven-changes-plugin * * * *
+org.apache.commons commons-build-plugin * * * *
+
+org.apache.jackrabbit jackrabbit-webdav * * * *
\ No newline at end of file

Added: trunk/commons-vfs/debian/maven.properties
===================================================================
--- trunk/commons-vfs/debian/maven.properties	                        (rev 0)
+++ trunk/commons-vfs/debian/maven.properties	2011-09-11 00:07:22 UTC (rev 14803)
@@ -0,0 +1,4 @@
+maven.test.skip=true
+
+maven.compiler.source=1.5
+maven.compiler.target=1.5

Modified: trunk/commons-vfs/debian/maven.rules
===================================================================
--- trunk/commons-vfs/debian/maven.rules	2011-09-10 23:08:42 UTC (rev 14802)
+++ trunk/commons-vfs/debian/maven.rules	2011-09-11 00:07:22 UTC (rev 14803)
@@ -1,6 +1,6 @@
-junit junit jar s/3\..*/3.x/
+junit junit jar s/4\..*/4.x/
 s/ant/org.apache.ant/ * * s/.*/debian/
 commons-collections commons-collections jar s/3\..*/3.x/
 s/jdom/org.jdom/ * * s/.*/debian/
 commons-httpclient commons-httpclient jar s/.*/3.x/
-commons-net commons-net jar s/1\..*/1.x/
+commons-net commons-net jar s/2\..*/2.x/

Deleted: trunk/commons-vfs/debian/patches/01_build-xml-nodownload.diff
===================================================================
--- trunk/commons-vfs/debian/patches/01_build-xml-nodownload.diff	2011-09-10 23:08:42 UTC (rev 14802)
+++ trunk/commons-vfs/debian/patches/01_build-xml-nodownload.diff	2011-09-11 00:07:22 UTC (rev 14803)
@@ -1,96 +0,0 @@
-Description: Adapt build.xml file to Debian packaging
- - Remove build.classpath variable
- - Remove get.deps target
-Author: Damien Raude-Morvan <drazzib at drazzib.com>
-Forwarded: not-needed
-Origin: vendor
-Last-Update: 2009-07-16
---- a/build.xml
-+++ b/build.xml
-@@ -36,32 +36,6 @@
-   </property>
-   <property name="proxy.password" value="">
-   </property>
--  <path id="build.classpath">
--    <pathelement location="${libdir}/ant/jars/ant-1.6.2.jar">
--    </pathelement>
--    <pathelement location="${libdir}/commons-net/jars/commons-net-1.4.1.jar">
--    </pathelement>
--    <pathelement location="${libdir}/commons-logging/jars/commons-logging-1.0.4.jar">
--    </pathelement>
--    <pathelement location="${libdir}/commons-collections/jars/commons-collections-3.1.jar">
--    </pathelement>
--    <pathelement location="${libdir}/jcifs/jars/jcifs-0.8.3.jar">
--    </pathelement>
--    <pathelement location="${libdir}/slide/jars/jakarta-slide-webdavlib-20050629.161100.jar">
--    </pathelement>
--    <pathelement location="${libdir}/jdom/jars/jdom-1.0.jar">
--    </pathelement>
--    <pathelement location="${libdir}/commons-httpclient/jars/commons-httpclient-2.0.2.jar">
--    </pathelement>
--    <pathelement location="${libdir}/com.jcraft/jars/jsch-0.1.23.jar">
--    </pathelement>
--    <pathelement location="${libdir}/xml-apis/jars/xml-apis-1.0.b2.jar">
--    </pathelement>
--    <pathelement location="${libdir}/oro/jars/oro-2.0.8.jar">
--    </pathelement>
--    <pathelement location="${libdir}/maven/plugins/maven-xdoc-plugin-1.9.2.jar">
--    </pathelement>
--  </path>
-   <target name="init" description="o Initializes some properties">
-     <mkdir dir="${libdir}">
-     </mkdir>
-@@ -86,7 +60,7 @@
-       </and>
-     </condition>
-   </target>
--  <target name="compile" description="o Compile the code" depends="get-deps">
-+  <target name="compile" description="o Compile the code">
-     <mkdir dir="${classesdir}">
-     </mkdir>
-     <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
-@@ -94,8 +68,6 @@
-         <pathelement location="${basedir}/core/src/main/java">
-         </pathelement>
-       </src>
--      <classpath refid="build.classpath">
--      </classpath>
-     </javac>
-     <copy todir="${classesdir}">
-       <fileset dir="${basedir}/core/src/main/java">
-@@ -151,8 +123,6 @@
-       <formatter usefile="false" type="plain">
-       </formatter>
-       <classpath>
--        <path refid="build.classpath">
--        </path>
-         <pathelement path="${testclassesdir}">
-         </pathelement>
-         <pathelement path="${classesdir}">
-@@ -184,14 +154,12 @@
-         </pathelement>
-       </src>
-       <classpath>
--        <path refid="build.classpath">
--        </path>
-         <pathelement path="${classesdir}">
-         </pathelement>
-       </classpath>
-     </javac>
-   </target>
--  <target name="javadoc" description="o Generate javadoc" depends="get-deps">
-+  <target name="javadoc" description="o Generate javadoc">
-     <mkdir dir="${javadocdir}">
-     </mkdir>
-     <tstamp>
-@@ -203,10 +171,6 @@
-     <property name="title" value="Commons VFS 1.0 API">
-     </property>
-     <javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="${basedir}/core/src/main/java" packagenames="org.apache.commons.vfs.*">
--      <classpath>
--        <path refid="build.classpath">
--        </path>
--      </classpath>
-     </javadoc>
-   </target>
-   <target name="get-dep-ant.jar" description="o Download the dependency : ant.jar" unless="ant.jar" depends="init,setProxy,noProxy,get-custom-dep-ant.jar">

Deleted: trunk/commons-vfs/debian/patches/02_no_home_dir.diff
===================================================================
--- trunk/commons-vfs/debian/patches/02_no_home_dir.diff	2011-09-10 23:08:42 UTC (rev 14802)
+++ trunk/commons-vfs/debian/patches/02_no_home_dir.diff	2011-09-11 00:07:22 UTC (rev 14803)
@@ -1,32 +0,0 @@
-Description: (build.xml) Don't use user.home as many buildd
- don't have a $HOME directory
-Author: Damien Raude-Morvan <drazzib at drazzib.com>
-Forwarded: not-needed
-Origin: vendor
-Last-Update: 2009-07-16
---- a/build.xml
-+++ b/build.xml
-@@ -8,14 +8,10 @@
- 
-   <property file="build.properties">
-   </property>
--  <property file="${user.home}/build.properties">
--  </property>
-   <!--Build properties-->
- 
-   <property name="defaulttargetdir" value="${basedir}/target">
-   </property>
--  <property name="libdir" value="${user.home}/.maven/repository">
--  </property>
-   <property name="classesdir" value="${basedir}/target/classes">
-   </property>
-   <property name="testclassesdir" value="${basedir}/target/test-classes">
-@@ -37,8 +33,6 @@
-   <property name="proxy.password" value="">
-   </property>
-   <target name="init" description="o Initializes some properties">
--    <mkdir dir="${libdir}">
--    </mkdir>
-     <condition property="noget">
-       <equals arg2="only" arg1="${build.sysclasspath}">
-       </equals>

Added: trunk/commons-vfs/debian/patches/disable_webdav_provider.diff
===================================================================
--- trunk/commons-vfs/debian/patches/disable_webdav_provider.diff	                        (rev 0)
+++ trunk/commons-vfs/debian/patches/disable_webdav_provider.diff	2011-09-11 00:07:22 UTC (rev 14803)
@@ -0,0 +1,58 @@
+Description: Disable webdav module (source code build and javadoc package)
+ because jackrabbit JCR provider is not yet in Debian.
+Author: Damien Raude-Morvan <drazzib at debian.org>
+Last-Update: 2011-09-11
+Forwarded: not-needed
+Index: b/core/pom.xml
+===================================================================
+--- a/core/pom.xml
++++ b/core/pom.xml
+@@ -167,6 +167,36 @@
+         </configuration>
+       </plugin>
+ 
++      <plugin>
++        <artifactId>maven-compiler-plugin</artifactId>
++  <executions>
++    <execution>
++      <id>default-compile</id>
++      <phase>compile</phase>
++      <configuration>
++        <excludes>
++          <exclude>**/webdav/*</exclude>
++        </excludes>
++      </configuration>
++      <goals>
++        <goal>compile</goal>
++      </goals>
++    </execution>
++    <execution>
++      <id>default-testCompile</id>
++      <phase>test-compile</phase>
++      <configuration>
++        <testExcludes>
++          <exclude>**/webdav/test/*</exclude>
++        </testExcludes>
++      </configuration> 
++      <goals>
++        <goal>testCompile</goal>
++      </goals>
++    </execution>
++  </executions>
++      </plugin>
++
+     </plugins>
+   </build>
+   <profiles>
+Index: b/pom.xml
+===================================================================
+--- a/pom.xml
++++ b/pom.xml
+@@ -243,6 +243,7 @@
+             </tag>
+           </tags>
+           <aggregate>true</aggregate>
++          <excludePackageNames>*.webdav.*</excludePackageNames>
+         </configuration>
+       </plugin>
+       <plugin>

Deleted: trunk/commons-vfs/debian/patches/series
===================================================================
--- trunk/commons-vfs/debian/patches/series	2011-09-10 23:08:42 UTC (rev 14802)
+++ trunk/commons-vfs/debian/patches/series	2011-09-11 00:07:22 UTC (rev 14803)
@@ -1,2 +0,0 @@
-01_build-xml-nodownload.diff
-02_no_home_dir.diff

Added: trunk/commons-vfs/debian/patches/series
===================================================================
--- trunk/commons-vfs/debian/patches/series	                        (rev 0)
+++ trunk/commons-vfs/debian/patches/series	2011-09-11 00:07:22 UTC (rev 14803)
@@ -0,0 +1,2 @@
+disable_webdav_provider.diff
+skip_examples.diff

Added: trunk/commons-vfs/debian/patches/skip_examples.diff
===================================================================
--- trunk/commons-vfs/debian/patches/skip_examples.diff	                        (rev 0)
+++ trunk/commons-vfs/debian/patches/skip_examples.diff	2011-09-11 00:07:22 UTC (rev 14803)
@@ -0,0 +1,20 @@
+Description: Disable examples module.
+Author: Damien Raude-Morvan <drazzib at debian.org>
+Last-Update: 2011-09-11
+Forwarded: not-needed
+
+Index: b/pom.xml
+===================================================================
+--- a/pom.xml
++++ b/pom.xml
+@@ -38,8 +38,10 @@
+ 
+   <modules>
+     <module>core</module>
++<!--
+     <module>examples</module>
+     <module>dist</module>
++-->
+   </modules>
+ 
+   <issueManagement>

Modified: trunk/commons-vfs/debian/rules
===================================================================
--- trunk/commons-vfs/debian/rules	2011-09-10 23:08:42 UTC (rev 14802)
+++ trunk/commons-vfs/debian/rules	2011-09-11 00:07:22 UTC (rev 14803)
@@ -2,22 +2,13 @@
 # debian/rules for commons-vfs
 
 include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/ant.mk
+include /usr/share/cdbs/1/class/maven.mk
 
 JAVA_HOME            := /usr/lib/jvm/default-java
-DEB_JARS             := commons-net.jar commons-logging.jar commons-collections3.jar commons-httpclient.jar jsch.jar
-DEB_ANT_BUILD_TARGET := dist
-#DEB_ANT_CHECK_TARGET := test
-
 PACKAGE              := $(DEB_SOURCE_PACKAGE)
 VERSION              := $(DEB_UPSTREAM_VERSION)
 
-binary-post-install/lib$(PACKAGE)-java::
-	mh_installpoms -plib$(PACKAGE)-java
-	mh_installjar -plib$(PACKAGE)-java -l core/pom.xml target/$(PACKAGE)-$(VERSION).jar
+DEB_MAVEN_DOC_TARGET       := javadoc:aggregate
 
-clean::
-	-rm -rf debian/tmp
-
 get-orig-source:
 	uscan --force-download --rename




More information about the pkg-java-commits mailing list