diff --git a/apache-commons-math.changes b/apache-commons-math.changes index d988035..1bddf0b 100644 --- a/apache-commons-math.changes +++ b/apache-commons-math.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Sep 9 09:14:09 UTC 2023 - Fridrich Strba + +- Reproducible builds: use SOURCE_DATE_EPOCH for timestamp + ------------------------------------------------------------------- Sun Jun 19 14:16:56 UTC 2022 - Michael Calmer diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 1701048..d40ac90 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -1,7 +1,7 @@ # # spec file for package apache-commons-math # -# 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 @@ -50,7 +50,9 @@ This package contains the API documentation for %{name}. %pom_remove_plugin :build-helper-maven-plugin %build -%mvn_build -f -- -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) \ + -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 %install %mvn_install