Accepting request 1202561 from Java:packages

Use SOURCE_DATE_EPOCH for reproducible builds

OBS-URL: https://build.opensuse.org/request/show/1202561
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/decentxml?expand=0&rev=5
This commit is contained in:
Ana Guerrero 2024-09-23 13:23:45 +00:00 committed by Git OBS Bridge
commit 2fc21135d0
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Sep 23 08:34:50 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Use SOURCE_DATE_EPOCH for reproducible builds
-------------------------------------------------------------------
Tue Mar 22 07:42:40 UTC 2022 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package decentxml
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -71,6 +71,7 @@ sed -i -e "s|junit-dep|junit|g" pom.xml
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
-Dmaven.compiler.release=8 \
%endif
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
-Dsource=8
%install