From ef13c6a01c5238820ae87f56743f9cc2760eb77a9da6b64758c86b9d5b7b340c Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Mon, 11 Sep 2023 10:41:52 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/junit5?expand=0&rev=14 --- junit5.changes | 5 +++++ junit5.spec | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/junit5.changes b/junit5.changes index 90ce567..fa176ba 100644 --- a/junit5.changes +++ b/junit5.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Sep 11 10:40:34 UTC 2023 - Fridrich Strba + +- Reproducible builds: use SOURCE_DATE_EPOCH for timestamp + ------------------------------------------------------------------- Mon May 9 12:28:45 UTC 2022 - Fridrich Strba diff --git a/junit5.spec b/junit5.spec index e2190ca..1c70b04 100644 --- a/junit5.spec +++ b/junit5.spec @@ -1,7 +1,7 @@ # # spec file for package junit5 # -# 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 @@ -139,7 +139,9 @@ done %{mvn_package} :junit-bom bom %build -%{mvn_build} -f -- -Dencoding=utf-8 -Dsource=8 +%{mvn_build} -f -- \ + -Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \ + -Dencoding=utf-8 -Dsource=8 # Build docs. Ignore exit asciidoc -- it fails for some reason, but # still produces readable docs.