[SCM] libpdfbox-java packaging branch, master, updated. debian/1.8.2+dfsg-1-3-ge91705b

Emmanuel Bourg ebourg at apache.org
Mon Jul 22 11:18:11 UTC 2013


The following commit has been merged in the master branch:
commit e91705b39d551c64ff696ba0c8bd2494a1c1f169
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Mon Jul 22 13:17:12 2013 +0200

    Install the jars and the poms in /usr/share/maven-repo

diff --git a/debian/control b/debian/control
index be77e7a..7dfaa79 100644
--- a/debian/control
+++ b/debian/control
@@ -20,9 +20,10 @@ Build-Depends-Indep: default-jdk,
  libicu4j-java,
  liblucene2-java,
  javahelper,
+ maven-repo-helper,
  poppler-data
 Standards-Version: 3.9.4
-Homepage: http://pdfbox.apache.org/
+Homepage: http://pdfbox.apache.org
 Vcs-Git: git://anonscm.debian.org/pkg-java/libpdfbox-java.git
 Vcs-Browser: http://anonscm.debian.org/?p=pkg-java/libpdfbox-java.git
 
diff --git a/debian/libfontbox-java.install b/debian/libfontbox-java.install
deleted file mode 100644
index 149e867..0000000
--- a/debian/libfontbox-java.install
+++ /dev/null
@@ -1 +0,0 @@
-fontbox/target/fontbox-1.8.2.jar usr/share/java
diff --git a/debian/libfontbox-java.links b/debian/libfontbox-java.links
deleted file mode 100644
index af4644f..0000000
--- a/debian/libfontbox-java.links
+++ /dev/null
@@ -1 +0,0 @@
-usr/share/java/fontbox-1.8.2.jar usr/share/java/fontbox.jar
diff --git a/debian/libfontbox-java.poms b/debian/libfontbox-java.poms
new file mode 100644
index 0000000..1838fd6
--- /dev/null
+++ b/debian/libfontbox-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]
+#
+fontbox/pom.xml --has-package-version --no-parent --java-lib --artifact=fontbox/target/fontbox-1.8.2.jar
diff --git a/debian/libjempbox-java.install b/debian/libjempbox-java.install
deleted file mode 100644
index 1b8530c..0000000
--- a/debian/libjempbox-java.install
+++ /dev/null
@@ -1 +0,0 @@
-jempbox/target/jempbox-1.8.2.jar usr/share/java
diff --git a/debian/libjempbox-java.links b/debian/libjempbox-java.links
deleted file mode 100644
index 729dcf9..0000000
--- a/debian/libjempbox-java.links
+++ /dev/null
@@ -1 +0,0 @@
-usr/share/java/jempbox-1.8.2.jar usr/share/java/jempbox.jar
diff --git a/debian/libjempbox-java.poms b/debian/libjempbox-java.poms
new file mode 100644
index 0000000..188a7f6
--- /dev/null
+++ b/debian/libjempbox-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]
+#
+jempbox/pom.xml --has-package-version --no-parent --java-lib --artifact=jempbox/target/jempbox-1.8.2.jar
diff --git a/debian/libpdfbox-java.install b/debian/libpdfbox-java.install
deleted file mode 100644
index 0c9deb1..0000000
--- a/debian/libpdfbox-java.install
+++ /dev/null
@@ -1 +0,0 @@
-pdfbox/target/pdfbox-1.8.2.jar usr/share/java
diff --git a/debian/libpdfbox-java.links b/debian/libpdfbox-java.links
deleted file mode 100644
index fe830e3..0000000
--- a/debian/libpdfbox-java.links
+++ /dev/null
@@ -1 +0,0 @@
-usr/share/java/pdfbox-1.8.2.jar usr/share/java/pdfbox.jar
diff --git a/debian/libpdfbox-java.poms b/debian/libpdfbox-java.poms
new file mode 100644
index 0000000..9a85e13
--- /dev/null
+++ b/debian/libpdfbox-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]
+#
+pdfbox/pom.xml --has-package-version --no-parent --java-lib --artifact=pdfbox/target/pdfbox-1.8.2.jar
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..efbc049
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,11 @@
+
+commons-io commons-io * * * *
+junit junit * * * *
+org.apache.ant ant-nodeps * * * *
+org.apache.maven.plugins maven-checkstyle-plugin * * * *
+org.apache.maven.plugins maven-deploy-plugin * * * *
+org.apache.maven.plugins maven-surefire-plugin * * * *
+org.apache.maven.plugins maven-surefire-report-plugin * * * *
+org.apache.rat apache-rat-plugin * * * *
+org.codehaus.mojo cobertura-maven-plugin * * * *
+org.codehaus.mojo taglist-maven-plugin * * * *
diff --git a/debian/maven.publishedRules b/debian/maven.publishedRules
new file mode 100644
index 0000000..2d3eaff
--- /dev/null
+++ b/debian/maven.publishedRules
@@ -0,0 +1,5 @@
+
+org.apache.pdfbox fontbox s/jar/bundle/ s/.*/debian/ * *
+org.apache.pdfbox jempbox s/jar/bundle/ s/.*/debian/ * *
+org.apache.pdfbox pdfbox s/jar/bundle/ s/.*/debian/ * *
+org.apache.pdfbox xmpbox s/jar/bundle/ s/.*/debian/ * *
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..2ec0c3f
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,2 @@
+
+commons-logging s/commons-logging-api/commons-logging/ * s/.*/debian/ * *
diff --git a/debian/rules b/debian/rules
index 0c5a8fc..e4414e5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,8 @@ poppler-data_source   := $(shell dpkg-query -f '$${source:Package} (= $${source:
 
 override_dh_auto_clean:
 	dh_auto_clean -- -buildfile pdfbox/build.xml
+	rm -Rf pdfbox/src/main/resources/org/apache/pdfbox/resources/pdfbox.version
+	mh_clean
 
 override_dh_auto_configure:
 	# replace what we delete in repacking. never used ...
@@ -32,7 +34,10 @@ override_dh_auto_build:
 	dh_auto_build -- -buildfile pdfbox/build.xml pdfbox.package fontbox.package jempbox.package pdfbox.javadoc fontbox.javadoc jempbox.javadoc
 
 override_dh_link:
-	dh_link
+	mh_install -plibpdfbox-java
+	mh_install -plibjempbox-java	
+	mh_install -plibfontbox-java
+	
 	jh_classpath
 
 override_dh_installchangelogs:

-- 
libpdfbox-java packaging



More information about the pkg-java-commits mailing list