Accepting request 1110276 from Java:packages

reproducible

OBS-URL: https://build.opensuse.org/request/show/1110276
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/junit5?expand=0&rev=5
This commit is contained in:
Ana Guerrero 2023-09-11 19:22:36 +00:00 committed by Git OBS Bridge
commit f9a7ecf89d
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Sep 11 10:40:34 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Reproducible builds: use SOURCE_DATE_EPOCH for timestamp
-------------------------------------------------------------------
Mon May 9 12:28:45 UTC 2022 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package junit5
#
# 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
@ -139,7 +139,9 @@ done
%{mvn_package} :junit-bom bom
%build
%{mvn_build} -f -- -Dencoding=utf-8 -Dsource=8
%{mvn_build} -f -- \
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
-Dencoding=utf-8 -Dsource=8
# Build docs. Ignore exit asciidoc -- it fails for some reason, but
# still produces readable docs.