1
0

Accepting request 1109942 from Java:packages

Reproducible builds improvement

OBS-URL: https://build.opensuse.org/request/show/1109942
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apache-commons-ognl?expand=0&rev=5
This commit is contained in:
2023-09-10 11:10:21 +00:00
committed by Git OBS Bridge
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Sep 9 09:15:46 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Reproducible builds: use SOURCE_DATE_EPOCH for timestamp
-------------------------------------------------------------------
Mon Mar 21 15:38:27 UTC 2022 - Fridrich Strba <fstrba@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file
#
# 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
@@ -56,6 +56,7 @@ This package contains the API documentation for %{name}.
%build
%{mvn_build} -f -- \
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
-Dmaven.compiler.release=8 \
%endif