[libcofoja-java] 11/12: Removed the dependency on libasm3-java and added a Built-Using field instead

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Apr 14 23:45:43 UTC 2014


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

ebourg-guest pushed a commit to branch master
in repository libcofoja-java.

commit dbddc5452237944def4156592ffd0246d6bdaa5c
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Tue Apr 15 01:42:52 2014 +0200

    Removed the dependency on libasm3-java and added a Built-Using field instead
---
 debian/changelog | 2 ++
 debian/control   | 3 ++-
 debian/rules     | 6 ++++++
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 89c8d30..1504cba 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,8 @@ cofoja (1.0~r139-3) UNRELEASED; urgency=medium
   * Enabled the unit tests
   * Removed debian/local.properties, use Ant command line arguments instead
   * debian/control:
+    - Removed the dependency on libasm3-java for the binary package and added
+      a Built-Using field instead since cofoja.jar contains the ASM classes
     - Standards-Version updated to 3.9.5 (no changes)
     - Updated the package description
     - Added Andreas Tille and Diane Trout as uploaders
diff --git a/debian/control b/debian/control
index c405d5a..f558f45 100644
--- a/debian/control
+++ b/debian/control
@@ -14,7 +14,8 @@ Homepage: https://code.google.com/p/cofoja/
 
 Package: libcofoja-java
 Architecture: all
-Depends: ${misc:Depends}, ${java:Depends}
+Depends: ${misc:Depends}
+Built-Using: libasm3-java (= ${libasm3-java:Version})
 Description: Java API for annotating code with contracts
  Contracts for Java is a contract programming framework for Java, which
  uses annotation processing and bytecode instrumentation to provide
diff --git a/debian/rules b/debian/rules
index ac6aacf..3d936ee 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,9 +2,15 @@
 
 export JAVA_HOME=/usr/lib/jvm/default-java
 
+ASM_VERSION := $(shell dpkg-query -f '$${source:Version}' --show libasm3-java)
+
 %:
 	dh $@  --with javahelper --buildsystem ant
 
+override_dh_gencontrol:
+	# Add a variable with the libasm3-java version for the Built-Using field
+	dh_gencontrol -- -Vlibasm3-java:Version=${ASM_VERSION}
+
 override_dh_auto_build:
 	# build unannotated cofoja library
 	dh_auto_build -- -Dasm.jar=/usr/share/java/asm3-all.jar \

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



More information about the pkg-java-commits mailing list