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