From 4218d465bd2e0fbec226ca293ab19d995826b97e26ded46ce078ddf5f8a40f1e Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Sat, 9 Sep 2023 13:36:23 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/glassfish-jsp?expand=0&rev=6 --- glassfish-jsp.changes | 5 +++++ glassfish-jsp.spec | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/glassfish-jsp.changes b/glassfish-jsp.changes index 28bb216..1fcfc97 100644 --- a/glassfish-jsp.changes +++ b/glassfish-jsp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Sep 9 13:36:14 UTC 2023 - Fridrich Strba + +- Reproducible builds: use SOURCE_DATE_EPOCH for timestamp + ------------------------------------------------------------------- Tue Mar 22 09:19:40 UTC 2022 - Fridrich Strba diff --git a/glassfish-jsp.spec b/glassfish-jsp.spec index 58fca7b..9db7b2a 100644 --- a/glassfish-jsp.spec +++ b/glassfish-jsp.spec @@ -1,7 +1,7 @@ # # spec file for package glassfish-jsp # -# 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 @@ -84,7 +84,9 @@ cp -p %{SOURCE2} . %{mvn_file} : %{name}/javax.servlet.jsp %{name} %build -%{mvn_build} -f -- -Dsource=8 +%{mvn_build} -f -- \ + -Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \ + -Dsource=8 %install %mvn_install