Accepting request 1109941 from Java:packages

Reproducible builds improvement

OBS-URL: https://build.opensuse.org/request/show/1109941
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apache-commons-math?expand=0&rev=9
This commit is contained in:
Ana Guerrero 2023-09-10 11:10:20 +00:00 committed by Git OBS Bridge
commit ce831d8e66
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Sep 9 09:14:09 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Reproducible builds: use SOURCE_DATE_EPOCH for timestamp
-------------------------------------------------------------------
Sun Jun 19 14:16:56 UTC 2022 - Michael Calmer <mc@suse.com>

View File

@ -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