[SCM] libjtds-java: jTDS JDBC Driver for SQL Server and Sybase branch, master, updated. debian/1.2.5+dfsg-2-19-g8188285
Emmanuel Bourg
ebourg at apache.org
Wed Jul 31 20:12:58 UTC 2013
The following commit has been merged in the master branch:
commit 8188285b9b3726ee94296f482f7f4e1bb1c1c674
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Wed Jul 31 22:12:12 2013 +0200
Install the Maven artifacts in /usr/share/maven-repo
diff --git a/debian/control b/debian/control
index a8b38a4..83f3103 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Priority: optional
Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
Uploaders: Martín Ferrari <tincho at debian.org>
Build-Depends: debhelper (>= 9), javahelper
-Build-Depends-Indep: libjcifs-java, default-jdk, ant
+Build-Depends-Indep: libjcifs-java, default-jdk, ant, maven-repo-helper
Standards-Version: 3.9.4
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-java/libjtds-java.git
Vcs-Git: git://anonscm.debian.org/pkg-java/libjtds-java.git
diff --git a/debian/libjtds-java.jlibs b/debian/libjtds-java.jlibs
deleted file mode 100644
index 0ef7c6d..0000000
--- a/debian/libjtds-java.jlibs
+++ /dev/null
@@ -1 +0,0 @@
-dist/*.jar
diff --git a/debian/libjtds-java.poms b/debian/libjtds-java.poms
new file mode 100644
index 0000000..1d885c3
--- /dev/null
+++ b/debian/libjtds-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 --java-lib
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..d33a147
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,2 @@
+
+net.sourceforge.jtds jtds jar s/.*/debian/ * *
diff --git a/debian/rules b/debian/rules
index 8f80b76..1d0f6db 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,11 +3,19 @@
export JAVA_HOME=/usr/lib/jvm/default-java
export CLASSPATH=/usr/share/java/jcifs.jar
+VERSION := $(shell dpkg-parsechangelog | sed -rne 's/^Version: ([0-9\.]+).*/\1/p')
+
%:
dh $@ --with javahelper
# Ignore upstream's build.xml.
override_dh_auto_clean:
dh_auto_clean -- -f debian/build.xml -Dcurdir=$(CURDIR)
+ mh_clean
+
override_dh_auto_build:
dh_auto_build -- -f debian/build.xml -Dcurdir=$(CURDIR) dist
+
+override_dh_auto_install:
+ mh_installpoms -plibjtds-java
+ mh_installjar -plibjtds-java pom.xml --java-lib dist/jtds-$(VERSION).jar
--
libjtds-java: jTDS JDBC Driver for SQL Server and Sybase
More information about the pkg-java-commits
mailing list