From 804b57d74e1dbc569bc1876c8ecc676f4b2120b8533d658b74eba1cdb5a2a0d4 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Sat, 9 Sep 2023 14:47:29 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/prometheus-simpleclient-java?expand=0&rev=12 --- prometheus-simpleclient-java.changes | 5 +++++ prometheus-simpleclient-java.spec | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/prometheus-simpleclient-java.changes b/prometheus-simpleclient-java.changes index e3c00bf..a5d1a95 100644 --- a/prometheus-simpleclient-java.changes +++ b/prometheus-simpleclient-java.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Sep 9 14:47:22 UTC 2023 - Fridrich Strba + +- Reproducible builds: use SOURCE_DATE_EPOCH for timestamp + ------------------------------------------------------------------- Wed Mar 30 09:44:55 UTC 2022 - Fridrich Strba diff --git a/prometheus-simpleclient-java.spec b/prometheus-simpleclient-java.spec index 2cc1976..1f8132c 100644 --- a/prometheus-simpleclient-java.spec +++ b/prometheus-simpleclient-java.spec @@ -1,7 +1,7 @@ # # spec file for package prometheus-simpleclient-java # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -153,7 +153,9 @@ done %pom_xpath_set "pom:plugin[pom:artifactId[text()='maven-compiler-plugin']]/pom:configuration/pom:target" "1.8" %build -%{mvn_build} -f -s -- -Dsource=8 +%{mvn_build} -f -s -- \ + -Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \ + -Dsource=8 %install %mvn_install