[sisu-guice] 03/06: Auto update the Built-Using field from the packages used at build time
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Thu Oct 2 23:44:06 UTC 2014
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository sisu-guice.
commit be3fe0c5d2269827d84661bb2e557257bf24c5be
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Fri Oct 3 00:13:00 2014 +0200
Auto update the Built-Using field from the packages used at build time
---
debian/changelog | 1 +
debian/control | 2 +-
debian/rules | 5 +++++
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 81df7a8..97a907c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ sisu-guice (3.2.3+dfsg-2) UNRELEASED; urgency=medium
* Build depend on libservlet3.1-java instead of libservlet2.5-java
* Standards-Version updated to 3.9.6 (no changes)
* Removed the unused build dependencies on the *-java-doc packages
+ * Auto update the Built-Using field from the packages used at build time
* Switch to debhelper level 9
* debian/copyright: Fixed the short name of the BSD-3-clause license
diff --git a/debian/control b/debian/control
index 4cb6e70..956b9a8 100644
--- a/debian/control
+++ b/debian/control
@@ -25,7 +25,7 @@ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-java/sisu-guice.git
Package: libsisu-guice-java
Architecture: all
Depends: ${maven:Depends}, ${misc:Depends}
-Built-Using: asm3 (= 3.3.2-2), cglib (= 2.2.2+dfsg-5)
+Built-Using: asm3 (= ${asm:Version}), cglib (= ${cglib:Version})
Recommends: ${maven:OptionalDepends}
Description: Patched build of Google Guice for Sisu-IoC
Google Guice is a lightweight dependency injection framework
diff --git a/debian/rules b/debian/rules
index cae8277..9683214 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,5 +5,10 @@ include /usr/share/cdbs/1/class/maven.mk
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 libasm3-java)
+CGLIB_VERSION := $(shell dpkg-query -f '$${source:Version}' --show libcglib-java)
+DEB_DH_GENCONTROL_ARGS_ALL := -- -Vasm:Version=${ASM_VERSION} -Vcglib:Version=${CGLIB_VERSION}
+
get-orig-source:
uscan --download-current-version --force-download --rename --verbose
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/sisu-guice.git
More information about the pkg-java-commits
mailing list