From deeb4da8ff60440d797e59385dd4b190251959770af60d1d664973c1ac66dd9f Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Tue, 12 Sep 2023 12:51:42 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/xmlstreambuffer?expand=0&rev=8 --- xmlstreambuffer.changes | 5 +++++ xmlstreambuffer.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/xmlstreambuffer.changes b/xmlstreambuffer.changes index 40c911e..97637e0 100644 --- a/xmlstreambuffer.changes +++ b/xmlstreambuffer.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Sep 12 12:51:36 UTC 2023 - Fridrich Strba + +- Reproducible builds: use SOURCE_DATE_EPOCH for timestamp + ------------------------------------------------------------------- Wed Mar 23 05:57:56 UTC 2022 - Fridrich Strba diff --git a/xmlstreambuffer.spec b/xmlstreambuffer.spec index 914a8e1..39b2a93 100644 --- a/xmlstreambuffer.spec +++ b/xmlstreambuffer.spec @@ -1,7 +1,7 @@ # # spec file for package xmlstreambuffer # -# 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 @@ -82,9 +82,10 @@ rm -r test/com/sun/xml/stream/buffer/stax/InscopeNamespaceTest.java %{mvn_build} -f -- \ %if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0} - -Dmaven.compiler.release=8 \ + -Dmaven.compiler.release=8 \ %endif - -Dsource=8 + -Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \ + -Dsource=8 %install %mvn_install