[libws-commons-util-java] 15/30: * Team upload. * Install maven metadata: - d/control: Build-Depends on maven-repo-helper. - d/rules: Use mh_installpoms and mh_installjar to install JAR. * d/control: Bump Standards-Version to 3.9.2: no changes needed. * d/build.xml: Force source/target javac to 1.4.

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Fri Apr 20 16:55:20 BST 2018


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository libws-commons-util-java.

commit 9b832e3ff8f95e18379363bb8505e197711a30e5
Author: Damien Raude-Morvan <drazzib at debian.org>
Date:   Mon Dec 12 22:31:47 2011 +0000

    * Team upload.
    * Install maven metadata:
      - d/control: Build-Depends on maven-repo-helper.
      - d/rules: Use mh_installpoms and mh_installjar to install JAR.
    * d/control: Bump Standards-Version to 3.9.2: no changes needed.
    * d/build.xml: Force source/target javac to 1.4.
---
 debian/build.xml                    |  3 ++-
 debian/changelog                    | 11 +++++++++++
 debian/control                      |  4 ++--
 debian/libws-commons-util-java.poms | 28 ++++++++++++++++++++++++++++
 debian/maven.ignoreRules            | 20 ++++++++++++++++++++
 debian/maven.rules                  | 20 ++++++++++++++++++++
 debian/rules                        |  7 +++++--
 7 files changed, 88 insertions(+), 5 deletions(-)

diff --git a/debian/build.xml b/debian/build.xml
index 8181668..d25928b 100644
--- a/debian/build.xml
+++ b/debian/build.xml
@@ -21,7 +21,8 @@
 
 	<target name="compile">
 		<mkdir dir="${build_classdir}" />
-		<javac srcdir="${srcdir}/main/java" destdir="${build_classdir}" debug="true" />
+		<javac srcdir="${srcdir}/main/java" destdir="${build_classdir}"
+            debug="true" source="1.4" target="1.4" />
 	</target>
 
 	<target name="dist" depends="compile">
diff --git a/debian/changelog b/debian/changelog
index c42abdb..e27f6ef 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,14 @@
+libws-commons-util-java (1.0.1-7) unstable; urgency=low
+
+  * Team upload.
+  * Install maven metadata:
+    - d/control: Build-Depends on maven-repo-helper.
+    - d/rules: Use mh_installpoms and mh_installjar to install JAR.
+  * d/control: Bump Standards-Version to 3.9.2: no changes needed.
+  * d/build.xml: Force source/target javac to 1.4.
+
+ -- Damien Raude-Morvan <drazzib at debian.org>  Mon, 12 Dec 2011 23:21:19 +0100
+
 libws-commons-util-java (1.0.1-6) unstable; urgency=low
 
   * Team upload.
diff --git a/debian/control b/debian/control
index 3982af3..327fe0d 100644
--- a/debian/control
+++ b/debian/control
@@ -3,8 +3,8 @@ Priority: optional
 Section: java
 Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
 Uploaders: Michael Koch <konqueror at gmx.de>, Niels Thykier <niels at thykier.net>
-Build-Depends: debhelper (>= 7), cdbs, default-jdk, ant
-Standards-Version: 3.9.1
+Build-Depends: debhelper (>= 7), cdbs, default-jdk, ant, maven-repo-helper
+Standards-Version: 3.9.2
 Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/libws-commons-util-java
 Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-java/trunk/libws-commons-util-java/
 Homepage: http://ws.apache.org/commons/util/
diff --git a/debian/libws-commons-util-java.poms b/debian/libws-commons-util-java.poms
new file mode 100644
index 0000000..0417132
--- /dev/null
+++ b/debian/libws-commons-util-java.poms
@@ -0,0 +1,28 @@
+# 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 and its artifact if any
+#   --ignore-pom: don't install the POM. To use on POM files that are created
+#     temporarily for certain artifacts such as Javadoc jars. [mh_install, mh_installpoms]
+#   --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. [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. [mh_install]
+#   --classifier=<classifier>: Optional, the classifier for the jar. Empty by default.
+#   --site-xml=<location>: Optional, the location for site.xml if it needs to be installed.
+#     Empty by default. [mh_install]
+#
+pom.xml --has-package-version
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..39e07f5
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,20 @@
+# 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.maven.plugins maven-assembly-plugin * * * *
+org.apache.maven.plugins maven-eclipse-plugin * * * *
+org.apache.maven.plugins maven-javadoc-plugin * * * *
+org.apache.maven.plugins maven-source-plugin * * * *
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..1b49765
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,20 @@
+# 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/3\..*/3.x/ * *
+org.apache.ws.commons ws-commons-util jar s/.*/debian/ * *
diff --git a/debian/rules b/debian/rules
index 9f1261a..feefa85 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,8 +8,11 @@ DEB_UPSTREAM_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f
 
 install/libws-commons-util-java::
 	jar umf debian/osgi-MANIFEST.MF  ws-commons-util-$(DEB_UPSTREAM_VERSION).jar
-	dh_install ws-commons-util-$(DEB_UPSTREAM_VERSION).jar usr/share/java
-	dh_link usr/share/java/ws-commons-util-$(DEB_UPSTREAM_VERSION).jar usr/share/java/ws-commons-util.jar
+	mh_installpoms -plibws-commons-util-java
+	mh_installjar -plibws-commons-util-java -l pom.xml ws-commons-util-$(DEB_UPSTREAM_VERSION).jar
+
+clean::
+	-mh_clean
 
 JAVA_HOME := /usr/lib/jvm/default-java
 BUILD_FILE := debian/build.xml

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libws-commons-util-java.git



More information about the pkg-java-commits mailing list