Fridrich Strba 2023-09-09 09:14:46 +00:00 committed by Git OBS Bridge
parent e1859dffd0
commit 0a320ff4b2
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