Accepting request 1109983 from Java:packages

Reproducible builds improvement

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

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Sep 9 14:35:55 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Reproducible builds: use SOURCE_DATE_EPOCH for timestamp
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Apr 28 04:54:39 UTC 2022 - Fridrich Strba <fstrba@suse.com> Thu Apr 28 04:54:39 UTC 2022 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package logback # spec file for package logback
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -119,6 +119,7 @@ rm -r %{name}-*/src/test/java/*
%build %build
%{mvn_build} -f -- \ %{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} %if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
-Dmaven.compiler.release=8 \ -Dmaven.compiler.release=8 \
%endif %endif