diff -Nru libspi-java-0.2.4/debian/changelog libspi-java-0.2.4/debian/changelog --- libspi-java-0.2.4/debian/changelog 2015-12-13 23:32:45.000000000 +0000 +++ libspi-java-0.2.4/debian/changelog 2017-08-14 03:58:20.000000000 +0000 @@ -1,3 +1,16 @@ +libspi-java (0.2.4-2) unstable; urgency=medium + + * Team upload. + * Add myself to Uploaders + * Use debhelper and compat level 10 + * Bump Standards-Version to 3.9.8 + * Add support for SOURCE_DATE_EPOCH for reproducible builds. + Build-deps of libspi-java will now use SOURCE_DATE_EPOCH instead of + embedding the current build timestamp in META-INF/services/* files. + (Closes: #872065) + + -- tony mancill Sun, 13 Aug 2017 20:58:20 -0700 + libspi-java (0.2.4-1) unstable; urgency=low * Initial release. (Closes: #807874) diff -Nru libspi-java-0.2.4/debian/compat libspi-java-0.2.4/debian/compat --- libspi-java-0.2.4/debian/compat 2015-12-13 22:59:43.000000000 +0000 +++ libspi-java-0.2.4/debian/compat 2017-08-14 03:58:20.000000000 +0000 @@ -1 +1 @@ -9 +10 diff -Nru libspi-java-0.2.4/debian/control libspi-java-0.2.4/debian/control --- libspi-java-0.2.4/debian/control 2015-12-13 23:06:38.000000000 +0000 +++ libspi-java-0.2.4/debian/control 2017-08-14 03:58:20.000000000 +0000 @@ -2,9 +2,10 @@ Section: java Priority: extra Maintainer: Debian Java Maintainers -Uploaders: Jakub Adam -Build-Depends: debhelper (>= 9~), cdbs, default-jdk, javahelper -Standards-Version: 3.9.6 +Uploaders: Jakub Adam , + tony mancill +Build-Depends: debhelper (>= 10), cdbs, default-jdk, javahelper +Standards-Version: 3.9.8 Homepage: https://github.com/rspilker/spi Vcs-Git: https://anonscm.debian.org/git/pkg-java/libspi-java.git Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/libspi-java.git diff -Nru libspi-java-0.2.4/debian/patches/series libspi-java-0.2.4/debian/patches/series --- libspi-java-0.2.4/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ libspi-java-0.2.4/debian/patches/series 2017-08-14 03:58:20.000000000 +0000 @@ -0,0 +1 @@ +source-date-epoch.patch diff -Nru libspi-java-0.2.4/debian/patches/source-date-epoch.patch libspi-java-0.2.4/debian/patches/source-date-epoch.patch --- libspi-java-0.2.4/debian/patches/source-date-epoch.patch 1970-01-01 00:00:00.000000000 +0000 +++ libspi-java-0.2.4/debian/patches/source-date-epoch.patch 2017-08-14 03:58:20.000000000 +0000 @@ -0,0 +1,34 @@ +Description: add support SOURCE_DATE_EPOCH + See: https://reproducible-builds.org/specs/source-date-epoch/ +Author: tony mancill +Last-Update: 2017-08-13 + +--- a/src/org/mangosdk/spi/processor/Persistence.java ++++ b/src/org/mangosdk/spi/processor/Persistence.java +@@ -132,7 +132,7 @@ + Writer writer = output.openWriter(); + try { + writer.write("# Generated by " + name + "\n"); +- writer.write("# " + new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss Z", Locale.US).format(new Date()) + "\n"); ++ writer.write("# " + new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss Z", Locale.US).format(getBuildDate()) + "\n"); + writer.write(value); + } + finally { +@@ -144,4 +144,17 @@ + } + } + } ++ ++ // return build timestamp, either the value of SOURCE_DATE_EPOCH ++ // in milliseconds or the current system time in milliseconds ++ // see: https://reproducible-builds.org/specs/source-date-epoch/ ++ private long getBuildDate() { ++ try { ++ return Long.valueOf(System.getenv("SOURCE_DATE_EPOCH")) * 1000L; ++ } ++ catch (Exception e) { ++ // ignore any problems retrieving or casting SOURCE_DATE_EPOCH ++ } ++ return System.currentTimeMillis(); ++ } + }