From 4fa8e2528e8561d20ea14772fac5ac4d062cde85d0ea82c8667c029bdace09b6 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Sat, 9 Sep 2023 09:23:05 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/disruptor?expand=0&rev=5 --- disruptor.changes | 5 +++++ disruptor.spec | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/disruptor.changes b/disruptor.changes index 1f38a7f..304d562 100644 --- a/disruptor.changes +++ b/disruptor.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Sep 9 09:17:40 UTC 2023 - Fridrich Strba + +- Reproducible builds: use SOURCE_DATE_EPOCH for timestamp + ------------------------------------------------------------------- Fri Dec 10 13:48:27 UTC 2021 - Pedro Monreal diff --git a/disruptor.spec b/disruptor.spec index 73733bc..749d990 100644 --- a/disruptor.spec +++ b/disruptor.spec @@ -1,7 +1,7 @@ # # spec file for package disruptor # -# Copyright (c) 2021 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 @@ -73,7 +73,9 @@ cp -p %{SOURCE1} pom.xml %build -%{mvn_build} -f -- -Dproject.build.sourceEncoding=UTF-8 -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 +%{mvn_build} -f -- \ + -Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \ + -Dproject.build.sourceEncoding=UTF-8 -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 %install %mvn_install