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