[libjna-java] 06/08: Use the year of the source date in the copyright notice of the javadoc

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Wed Mar 23 12:49:19 UTC 2016


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

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

commit 69a06a47f9ff475350a560d15a2e269668e7ba89
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Wed Mar 23 10:30:34 2016 +0100

    Use the year of the source date in the copyright notice of the javadoc
---
 debian/changelog | 2 ++
 debian/rules     | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 55ff414..dac53d8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ libjna-java (4.2.2-1) UNRELEASED; urgency=medium
 
   * Team upload.
   * New upstream release
+  * Improved the reproducibility:
+    - Use the year of the source date in the copyright notice of the javadoc
   * Standards-Version updated to 3.9.7 (no changes)
   * Use secure Vcs-* fields
   * Call dh_installchangelogs only once during the build
diff --git a/debian/rules b/debian/rules
index 14f980b..ebe1149 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,8 @@ export DEB_BUILD_HARDENING=1
 
 DEB_HOST_MULTIARCH = $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
-VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
+VERSION = $(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
+DATE    = $(shell dpkg-parsechangelog --show-field Date)
 
 %:
 	dh $@
@@ -31,6 +32,7 @@ override_dh_auto_build:
 	    -Djar.compress=true \
 	    -Dmaven-release=true \
 	    -Dbuild-native=true \
+	    -Dyear=$(shell date --date='$(DATE)' --utc +'%Y') \
 	    jar javadoc contrib-jars native
 
 # install. using platform.jar is a silly idea in /usr/share/java/ as it's bound to collide

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



More information about the pkg-java-commits mailing list