[fest-test] 01/01: Convert to maven-debian-helper from javahelper
Tim Potter
tpot-guest at moszumanska.debian.org
Thu Nov 13 02:03:05 UTC 2014
This is an automated email from the git hooks/post-receive script.
tpot-guest pushed a commit to branch master
in repository fest-test.
commit aea1437257b4522885ba873280ec2b7859dad374
Author: Tim Potter <tpot at hp.com>
Date: Thu Nov 13 12:57:43 2014 +1100
Convert to maven-debian-helper from javahelper
---
debian/control | 10 +++++-----
debian/libfest-test-java-doc.javadoc | 2 +-
debian/libfest-test-java.poms | 28 ++++++++++++++++++++++++++++
debian/maven.rules | 3 +++
debian/rules | 13 +------------
5 files changed, 38 insertions(+), 18 deletions(-)
diff --git a/debian/control b/debian/control
index 98ccb63..bba4644 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: fest-test
Section: java
Priority: optional
Maintainer: Tim Potter <tpot at hp.com>
-Build-Depends: debhelper (>= 9), javahelper, default-jdk, default-jdk-doc, junit4
+Build-Depends: debhelper (>= 9), javahelper, maven-debian-helper, default-jdk, default-jdk-doc, libmaven-javadoc-plugin-java, junit4
Standards-Version: 3.9.6
Homepage: https://github.com/alexruiz/fest-test
Vcs-Git: git://anonscm.debian.org/pkg-java/fest-test.git
@@ -10,8 +10,8 @@ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-java/fest-test.git
Package: libfest-test-java
Architecture: all
-Depends: ${java:Depends}, ${misc:Depends}
-Suggests: libfest-test-java-doc
+Depends: ${misc:Depends}, ${maven:Depends}
+Suggests: ${maven:OptionalDepends}, libfest-test-java-doc
Description: common testing code for FEST (Fixtures for Easy Software Testing) packages
FEST Assertions is a Java library that provides a fluent interface
for writing assertions. It's main goal is to improve test code
@@ -24,8 +24,8 @@ Description: common testing code for FEST (Fixtures for Easy Software Testing) p
Package: libfest-test-java-doc
Architecture: all
Section: doc
-Depends: ${misc:Depends}
-Suggests: libfest-test-java
+Depends: ${misc:Depends}, ${maven:DocDepends}
+Suggests: ${maven:DocOptionalDepends}, libfest-test-java
Description: Documentation for libfest-test-java
FEST Assertions is a Java library that provides a fluent interface
for writing assertions. It's main goal is to improve test code
diff --git a/debian/libfest-test-java-doc.javadoc b/debian/libfest-test-java-doc.javadoc
index ce83b25..d678b1f 100644
--- a/debian/libfest-test-java-doc.javadoc
+++ b/debian/libfest-test-java-doc.javadoc
@@ -1 +1 @@
-internal
+target/site/apidocs usr/share/doc/libfest-test-java/api
diff --git a/debian/libfest-test-java.poms b/debian/libfest-test-java.poms
new file mode 100644
index 0000000..64b1188
--- /dev/null
+++ b/debian/libfest-test-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 --no-parent --has-package-version --java-lib
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..0f9ded2
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,3 @@
+
+junit junit jar s/.*/4.x/ * *
+junit junit jar s/4\..*/4.x/ * *
diff --git a/debian/rules b/debian/rules
index c40970b..41fb9d5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,17 +2,6 @@
export JAVA_HOME=/usr/lib/jvm/default-java
export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
-export CLASSPATH=/usr/share/java/junit4.jar
%:
- dh $@ --with javahelper
-
-override_jh_build:
- jh_build fest-test.jar src
-
-override_jh_installlibs:
- jh_installlibs fest-test.jar
-
-override_jh_clean:
- jh_clean
- rm -f fest-test.jar
+ dh $@ --buildsystem=maven --with javahelper
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/fest-test.git
More information about the pkg-java-commits
mailing list