From d480f5b6a28a382b3bdab5c0a1ce6f16a950c7e7f5e94ba34aca3b3b0a27918a Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Sat, 9 Sep 2023 14:20:25 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/jcsp?expand=0&rev=9 --- jcsp.changes | 5 +++++ jcsp.spec | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/jcsp.changes b/jcsp.changes index f9eb5da..6f3a397 100644 --- a/jcsp.changes +++ b/jcsp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Sep 9 14:20:14 UTC 2023 - Fridrich Strba + +- Reproducible builds: use SOURCE_DATE_EPOCH for timestamp + ------------------------------------------------------------------- Tue Mar 22 12:35:34 UTC 2022 - Fridrich Strba diff --git a/jcsp.spec b/jcsp.spec index de85032..806b822 100644 --- a/jcsp.spec +++ b/jcsp.spec @@ -1,7 +1,7 @@ # # spec file for package jcsp # -# 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 @@ -122,8 +122,9 @@ rm -r src/org/jcsp/win32 \ %build %{mvn_build} -f -- \ + -Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \ %if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0} - -Dmaven.compiler.release=8 \ + -Dmaven.compiler.release=8 \ %endif -Dsource=8 -Dproject.build.sourceEncoding=UTF-8