From a5fa33061453d1eb9a11112848b71a48319ff21242e65a95b5b4b7f1920b1534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 11 Oct 2024 10:05:04 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main kxml revision b7e2e662fc823bb476ecb23b7ef57a72 --- kxml.changes | 5 +++++ kxml.spec | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/kxml.changes b/kxml.changes index dbc4e6b..845dc0e 100644 --- a/kxml.changes +++ b/kxml.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Sep 24 09:54:28 UTC 2024 - Fridrich Strba + +- Use SOURCE_DATE_EPOCH for reproducible builds + ------------------------------------------------------------------- Wed Feb 21 14:28:34 UTC 2024 - Fridrich Strba diff --git a/kxml.spec b/kxml.spec index 97acdda..a9dadb5 100644 --- a/kxml.spec +++ b/kxml.spec @@ -63,7 +63,11 @@ mkdir -p lib build-jar-repository -s lib xpp3 %{ant} -jar ufm dist/%{name}2-%{version}.jar %{SOURCE3} +jar \ +%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 17}%{!?pkg_vcmp:0} + --date="$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)" \ +%endif + --update --file=dist/%{name}2-%{version}.jar --manifest=%{SOURCE3} %{mvn_artifact} %{SOURCE1} dist/%{name}2-%{version}.jar %{mvn_artifact} %{SOURCE2} dist/%{name}2-min-%{version}.jar