[pkg-java] r14598 - in trunk/libxml-security-java/debian: . patches
Torsten Werner
twerner at alioth.debian.org
Tue Aug 30 12:10:13 UTC 2011
Author: twerner
Date: 2011-08-30 12:10:13 +0000 (Tue, 30 Aug 2011)
New Revision: 14598
Added:
trunk/libxml-security-java/debian/README.source
trunk/libxml-security-java/debian/TODO
trunk/libxml-security-java/debian/libxml-security-java-doc.doc-base.api
trunk/libxml-security-java/debian/libxml-security-java-doc.install
trunk/libxml-security-java/debian/libxml-security-java.poms
trunk/libxml-security-java/debian/maven.cleanIgnoreRules
trunk/libxml-security-java/debian/maven.ignoreRules
trunk/libxml-security-java/debian/maven.properties
trunk/libxml-security-java/debian/maven.publishedRules
trunk/libxml-security-java/debian/maven.rules
trunk/libxml-security-java/debian/patches/
trunk/libxml-security-java/debian/patches/0001-change-packaging-to-jar.patch
trunk/libxml-security-java/debian/patches/series
Removed:
trunk/libxml-security-java/debian/README.Debian-source
trunk/libxml-security-java/debian/ant.properties
trunk/libxml-security-java/debian/build.xml
Modified:
trunk/libxml-security-java/debian/changelog
trunk/libxml-security-java/debian/control
trunk/libxml-security-java/debian/rules
Log:
* Use Maven to build the package. Ignore test failures.
* Update Description.
* Add a documentation package.
* Update Homepage field.
Deleted: trunk/libxml-security-java/debian/README.Debian-source
===================================================================
--- trunk/libxml-security-java/debian/README.Debian-source 2011-08-30 11:47:19 UTC (rev 14597)
+++ trunk/libxml-security-java/debian/README.Debian-source 2011-08-30 12:10:13 UTC (rev 14598)
@@ -1,13 +0,0 @@
-libxml-security-java
-====================
-
-The upstream supplied source package contains binary jar files.
-Currently no clean source distribution exists. Therefore, the upstream
-sources were modified to comply with the Debian Free Software
-Guidelines.
-
-Use the rules/get-orig-source target to create the orig.tar.gz.
-For more details on repackaging of upstream sources please see the
-debian/orig-tar.sh file.
-
- -- Varun Hiremath <varunhiremath at gmail.com>, Wed, 7 Nov 2007 12:49:13 +0530
Copied: trunk/libxml-security-java/debian/README.source (from rev 14596, trunk/libxml-security-java/debian/README.Debian-source)
===================================================================
--- trunk/libxml-security-java/debian/README.source (rev 0)
+++ trunk/libxml-security-java/debian/README.source 2011-08-30 12:10:13 UTC (rev 14598)
@@ -0,0 +1,23 @@
+Information about libxml-security-java
+--------------------------------------
+
+The upstream supplied source package contains binary jar files.
+Currently no clean source distribution exists. Therefore, the upstream
+sources were modified to comply with the Debian Free Software
+Guidelines.
+
+Use the rules/get-orig-source target to create the orig.tar.gz.
+For more details on repackaging of upstream sources please see the
+debian/orig-tar.sh file.
+
+ -- Varun Hiremath <varunhiremath at gmail.com>, Wed, 7 Nov 2007 12:49:13 +0530
+
+
+This package was debianized using the mh_make command
+from the maven-debian-helper package.
+
+The build system uses Maven but prevents it from downloading
+anything from the Internet, making the build compliant with
+the Debian policy.
+
+ -- Torsten Werner <twerner at debian.org> Tue, 30 Aug 2011 13:44:22 +0200
Added: trunk/libxml-security-java/debian/TODO
===================================================================
--- trunk/libxml-security-java/debian/TODO (rev 0)
+++ trunk/libxml-security-java/debian/TODO 2011-08-30 12:10:13 UTC (rev 14598)
@@ -0,0 +1 @@
+- fix test failures
Deleted: trunk/libxml-security-java/debian/ant.properties
===================================================================
--- trunk/libxml-security-java/debian/ant.properties 2011-08-30 11:47:19 UTC (rev 14597)
+++ trunk/libxml-security-java/debian/ant.properties 2011-08-30 12:10:13 UTC (rev 14598)
@@ -1,4 +0,0 @@
-project.name=xml-security
-class.dir=classes
-source.dir=src
-jar.name=xml-security.jar
Deleted: trunk/libxml-security-java/debian/build.xml
===================================================================
--- trunk/libxml-security-java/debian/build.xml 2011-08-30 11:47:19 UTC (rev 14597)
+++ trunk/libxml-security-java/debian/build.xml 2011-08-30 12:10:13 UTC (rev 14598)
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<project default="jar" name="${project.name}" basedir="..">
- <property file="./build.properties" />
- <patternset id="compiler.resources">
- <include name="**/?*.properties" />
- </patternset>
- <target name="clean">
- <delete dir="${class.dir}" quiet="true" />
- <delete file="${jar.name}" quiet="true" />
- <delete dir="${doc.dir}" quiet="true" />
- </target>
-
- <target name="compile">
- <mkdir dir="${class.dir}" />
- <javac srcdir="${source.dir}" destdir="${class.dir}"
- debug="true" source="1.4" target="1.4"/>
- <copy todir="${class.dir}">
- <fileset dir="${source.dir}">
- <patternset refid="compiler.resources" />
- </fileset>
- </copy>
- </target>
-
- <target name="jar" description="o Create the jar" depends="compile">
- <jar jarfile="${jar.name}">
- <fileset dir="${class.dir}"/>
- <fileset dir="${source.dir}"><include name="org/apache/xml/security/resource/**"/></fileset>
- </jar>
- </target>
-
- <target name="javadoc" description="Creates Javadoc documentation">
- <mkdir dir="${doc.dir}" />
- <javadoc packagenames="com.sun.*"
- sourcepath="${source.dir}" destdir="${doc.dir}" />
- </target>
-
-</project>
Modified: trunk/libxml-security-java/debian/changelog
===================================================================
--- trunk/libxml-security-java/debian/changelog 2011-08-30 11:47:19 UTC (rev 14597)
+++ trunk/libxml-security-java/debian/changelog 2011-08-30 12:10:13 UTC (rev 14598)
@@ -5,8 +5,12 @@
* Update debian/watch to point to new SVN repo.
* Update Standards-Version: 3.9.1.
* Switch to source format 3.0.
+ * Use Maven to build the package. Ignore test failures.
+ * Update Description.
+ * Add a documentation package.
+ * Update Homepage field.
- -- Torsten Werner <twerner at debian.org> Tue, 30 Aug 2011 13:44:22 +0200
+ -- Torsten Werner <twerner at debian.org> Tue, 30 Aug 2011 14:07:46 +0200
libxml-security-java (1.4.3-2) unstable; urgency=low
Modified: trunk/libxml-security-java/debian/control
===================================================================
--- trunk/libxml-security-java/debian/control 2011-08-30 11:47:19 UTC (rev 14597)
+++ trunk/libxml-security-java/debian/control 2011-08-30 12:10:13 UTC (rev 14598)
@@ -4,19 +4,36 @@
Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
Uploaders: Varun Hiremath <varun at debian.org>, Torsten Werner <twerner at debian.org>, Michael Koch <konqueror at gmx.de>,
Niels Thykier <niels at thykier.net>
-Build-Depends: cdbs, debhelper (>= 7), ant, default-jdk
-Build-Depends-Indep: libcommons-logging-java, libxalan2-java
+Build-Depends: debhelper (>= 7), cdbs, default-jdk, maven-debian-helper (>= 1.4)
+Build-Depends-Indep: libmaven-dependency-plugin-java, libcommons-logging-java, libjaxp1.3-java,
+ libxalan2-java, libxerces2-java, junit4, default-jdk-doc, libcommons-logging-java-doc,
+ libxalan2-java-doc, libmaven-javadoc-plugin-java
Standards-Version: 3.9.1
-Homepage: http://xml.apache.org/security/
-Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/libxml-scurity-java
+Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/libxml-security-java
Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/libxml-security-java
+Homepage: http://santuario.apache.org/
Package: libxml-security-java
Architecture: all
-Depends: default-jre-headless | java2-runtime-headless, ${misc:Depends}
-Description: implementation of security standards for XML
- The XML Security project is aimed at providing implementation of
- security standards for XML. Currently the focus is on the W3C
- standards :
- * XML-Signature Syntax and Processing; and
- * XML Encryption Syntax and Processing.
+Depends: ${misc:Depends}, ${maven:Depends}
+Recommends: ${maven:OptionalDepends}
+Suggests: libxml-security-java-doc
+Description: Apache Santuario
+ Apache Santuario supports XML-Signature Syntax and Processing, W3C
+ Recommendation 12 February 2002, and XML Encryption Syntax and Processing, W3C
+ Recommendation 10 December 2002. As of version 1.4, the Java library supports
+ the standard Java API JSR-105: XML Digital Signature APIs.
+
+Package: libxml-security-java-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}, ${maven:DocDepends}
+Recommends: ${maven:DocOptionalDepends}
+Suggests: libxml-security-java
+Description: Documentation for Apache Santuario
+ Apache Santuario supports XML-Signature Syntax and Processing, W3C
+ Recommendation 12 February 2002, and XML Encryption Syntax and Processing, W3C
+ Recommendation 10 December 2002. As of version 1.4, the Java library supports
+ the standard Java API JSR-105: XML Digital Signature APIs.
+ .
+ This package contains the API documentation of libxml-security-java.
Added: trunk/libxml-security-java/debian/libxml-security-java-doc.doc-base.api
===================================================================
--- trunk/libxml-security-java/debian/libxml-security-java-doc.doc-base.api (rev 0)
+++ trunk/libxml-security-java/debian/libxml-security-java-doc.doc-base.api 2011-08-30 12:10:13 UTC (rev 14598)
@@ -0,0 +1,10 @@
+Document: libxml-security-java
+Title: API Javadoc for Apache Santuario
+Author: The Apache Software Foundation developers
+Abstract: This is the API Javadoc provided for the
+ libxml-security-java library.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libxml-security-java/api/index.html
+Files: /usr/share/doc/libxml-security-java/api/*
Added: trunk/libxml-security-java/debian/libxml-security-java-doc.install
===================================================================
--- trunk/libxml-security-java/debian/libxml-security-java-doc.install (rev 0)
+++ trunk/libxml-security-java/debian/libxml-security-java-doc.install 2011-08-30 12:10:13 UTC (rev 14598)
@@ -0,0 +1,2 @@
+target/apidocs/* usr/share/doc/libxml-security-java/api
+
Added: trunk/libxml-security-java/debian/libxml-security-java.poms
===================================================================
--- trunk/libxml-security-java/debian/libxml-security-java.poms (rev 0)
+++ trunk/libxml-security-java/debian/libxml-security-java.poms 2011-08-30 12:10:13 UTC (rev 14598)
@@ -0,0 +1,26 @@
+# List of POM files for the package
+# Format of this file is:
+# <path to pom file> [option]*
+# where option can be:
+# --ignore: ignore this POM or
+# --no-parent: remove the <parent> tag from the POM
+# --package=<package>: an alternative package to use when installing this POM
+# and its artifact
+# --has-package-version: to indicate that the original version of the POM is the same as the upstream part
+# of the version for the package.
+# --keep-elements=<elem1,elem2>: a list of XML elements to keep in the POM
+# during a clean operation with mh_cleanpom or mh_installpom
+# --artifact=<path>: path to the build artifact associated with this POM,
+# it will be installed when using the command mh_install
+# --java-lib: install the jar into /usr/share/java to comply with Debian
+# packaging guidelines
+# --usj-name=<name>: name to use when installing the library in /usr/share/java
+# --usj-version=<version>: version to use when installing the library in /usr/share/java
+# --no-usj-versionless: don't install the versionless link in /usr/share/java
+# --dest-jar=<path>: the destination for the real jar
+# it will be installed with mh_install.
+# --classifier=<classifier>: Optional, the classifier for the jar. Empty by default.
+# --ignore-pom: don't install the POM with mh_install or mh_installpoms. To use with POM files that are created
+# temporarily for certain artifacts such as Javadoc jars.
+#
+pom.xml --has-package-version
Added: trunk/libxml-security-java/debian/maven.cleanIgnoreRules
===================================================================
--- trunk/libxml-security-java/debian/maven.cleanIgnoreRules (rev 0)
+++ trunk/libxml-security-java/debian/maven.cleanIgnoreRules 2011-08-30 12:10:13 UTC (rev 14598)
@@ -0,0 +1,17 @@
+# Maven clean ignore rules - ignore some Maven dependencies and plugins
+# during the clean phase of a Maven build
+# 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 before mvn clean is called
+# junit junit jar s/3\\..*/3.x/
+
Added: trunk/libxml-security-java/debian/maven.ignoreRules
===================================================================
--- trunk/libxml-security-java/debian/maven.ignoreRules (rev 0)
+++ trunk/libxml-security-java/debian/maven.ignoreRules 2011-08-30 12:10:13 UTC (rev 14598)
@@ -0,0 +1,17 @@
+# 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.apache.felix maven-bundle-plugin * * * *
Added: trunk/libxml-security-java/debian/maven.properties
===================================================================
--- trunk/libxml-security-java/debian/maven.properties (rev 0)
+++ trunk/libxml-security-java/debian/maven.properties 2011-08-30 12:10:13 UTC (rev 14598)
@@ -0,0 +1,5 @@
+# Include here properties to pass to Maven during the build.
+# For example:
+# maven.test.skip=true
+
+maven.test.failure.ignore=true
Added: trunk/libxml-security-java/debian/maven.publishedRules
===================================================================
--- trunk/libxml-security-java/debian/maven.publishedRules (rev 0)
+++ trunk/libxml-security-java/debian/maven.publishedRules 2011-08-30 12:10:13 UTC (rev 14598)
@@ -0,0 +1,19 @@
+# Maven published rules - additional rules to publish, to help
+# the packaging work of Debian maintainers using mh_make
+# 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
+# - a regular expression of the form s/match/replace/
+# in this case, elements that match are transformed using
+# the regex rule.
+# All elements much match before a rule can be applied
+# Example rule: match jar with groupid= junit, artifactid= junit
+# and version starting with 3., replacing the version with 3.x
+# junit junit jar s/3\\..*/3.x/
+
Added: trunk/libxml-security-java/debian/maven.rules
===================================================================
--- trunk/libxml-security-java/debian/maven.rules (rev 0)
+++ trunk/libxml-security-java/debian/maven.rules 2011-08-30 12:10:13 UTC (rev 14598)
@@ -0,0 +1,21 @@
+# Maven rules - transform 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
+# - a regular expression of the form s/match/replace/
+# in this case, elements that match are transformed using
+# the regex rule.
+# All elements much match before a rule can be applied
+# Example rule: match jar with groupid= junit, artifactid= junit
+# and version starting with 3., replacing the version with 3.x
+# junit junit jar s/3\\..*/3.x/
+
+junit junit jar s/4\..*/4.x/ * *
+org.apache.santuario xmlsec bundle s/.*/debian/ * *
+commons-logging s/commons-logging-api/commons-logging/ * s/.*/debian/ * *
Added: trunk/libxml-security-java/debian/patches/0001-change-packaging-to-jar.patch
===================================================================
--- trunk/libxml-security-java/debian/patches/0001-change-packaging-to-jar.patch (rev 0)
+++ trunk/libxml-security-java/debian/patches/0001-change-packaging-to-jar.patch 2011-08-30 12:10:13 UTC (rev 14598)
@@ -0,0 +1,22 @@
+From: Torsten Werner <twerner at debian.org>
+Date: Tue, 30 Aug 2011 13:59:54 +0200
+Subject: [PATCH] change packaging to jar
+
+---
+ pom.xml | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/pom.xml b/pom.xml
+index 1dfc616..a4a7964 100644
+--- a/pom.xml
++++ b/pom.xml
+@@ -22,7 +22,7 @@
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.santuario</groupId>
+ <artifactId>xmlsec</artifactId>
+- <packaging>bundle</packaging>
++ <packaging>jar</packaging>
+ <name>Apache Santuario</name>
+ <version>1.4.5</version>
+ <description>
+--
Added: trunk/libxml-security-java/debian/patches/series
===================================================================
--- trunk/libxml-security-java/debian/patches/series (rev 0)
+++ trunk/libxml-security-java/debian/patches/series 2011-08-30 12:10:13 UTC (rev 14598)
@@ -0,0 +1 @@
+0001-change-packaging-to-jar.patch
Modified: trunk/libxml-security-java/debian/rules
===================================================================
--- trunk/libxml-security-java/debian/rules 2011-08-30 11:47:19 UTC (rev 14597)
+++ trunk/libxml-security-java/debian/rules 2011-08-30 12:10:13 UTC (rev 14598)
@@ -1,16 +1,9 @@
#!/usr/bin/make -f
-include /usr/share/cdbs/1/class/ant.mk
include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/maven.mk
-JAVA_HOME := /usr/lib/jvm/default-java
-DEB_ANT_BUILD_TARGET := jar
-DEB_ANT_BUILDFILE := debian/build.xml
-DEB_JARS := commons-logging xalan2
+JAVA_HOME := /usr/lib/jvm/default-java
-install/libxml-security-java::
- install -m 644 -D xml-security.jar $(DEB_DESTDIR)/usr/share/java/xml-security-$(DEB_UPSTREAM_VERSION).jar
- dh_link /usr/share/java/xml-security-$(DEB_UPSTREAM_VERSION).jar /usr/share/java/xml-security.jar
-
get-orig-source:
- uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download
+ uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
More information about the pkg-java-commits
mailing list