[guice] 02/03: Added the Built-Using field with the versions of ASM and CGLIB used

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Thu Nov 19 21:30:49 UTC 2015


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

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

commit af7bc4fcee8b8035a991d7b4ba262ae1a4cf216c
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Thu Nov 19 19:18:06 2015 +0100

    Added the Built-Using field with the versions of ASM and CGLIB used
---
 debian/changelog | 1 +
 debian/control   | 1 +
 debian/rules     | 7 +++++++
 3 files changed, 9 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index d815bff..267b522 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ guice (4.0-1) UNRELEASED; urgency=medium
   * New upstream release
   * Build with maven-debian-helper
   * Install the no_aop artifact linked to the main jar in /usr/share/maven-repo
+  * Added the Built-Using field with the versions of ASM and CGLIB used
 
  -- Emmanuel Bourg <ebourg at apache.org>  Thu, 19 Nov 2015 10:58:26 +0100
 
diff --git a/debian/control b/debian/control
index 08f830d..b447c06 100644
--- a/debian/control
+++ b/debian/control
@@ -28,6 +28,7 @@ Package: libguice-java
 Architecture: all
 Depends: ${misc:Depends}, ${maven:Depends}
 Suggests: ${maven:OptionalDepends}
+Built-Using: libasm4-java (= ${asm:Version}), cglib3 (= ${cglib:Version})
 Description: lightweight dependency injection framework for Java 5 and above
  Guice provides support for dependency injection using annotations to
  configure Java objects. Dependency injection is a design pattern whose
diff --git a/debian/rules b/debian/rules
index 71b6e04..49be7c7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,9 +2,16 @@
 
 export JAVA_HOME=/usr/lib/jvm/default-java
 
+# Variables for the Built-Using field in the control file
+ASM_VERSION   := $(shell dpkg-query -f '$${source:Version}' --show libasm4-java)
+CGLIB_VERSION := $(shell dpkg-query -f '$${source:Version}' --show libcglib3-java)
+
 %:
 	dh $@ --buildsystem=maven
 
+override_dh_gencontrol:
+	dh_gencontrol -- -Vasm:Version=${ASM_VERSION} -Vcglib:Version=${CGLIB_VERSION}
+
 get-orig-source:
 	cd $(dir $(firstword $(MAKEFILE_LIST)))../ && \
 	uscan --destdir $(CURDIR) --force-download --download-current-version

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



More information about the pkg-java-commits mailing list