Sync from SUSE:SLFO:Main kxml revision b7e2e662fc823bb476ecb23b7ef57a72

This commit is contained in:
Adrian Schröter 2024-10-11 10:05:04 +02:00
parent 28ba4f8988
commit a5fa330614
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Sep 24 09:54:28 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Use SOURCE_DATE_EPOCH for reproducible builds
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Feb 21 14:28:34 UTC 2024 - Fridrich Strba <fstrba@suse.com> Wed Feb 21 14:28:34 UTC 2024 - Fridrich Strba <fstrba@suse.com>

View File

@ -63,7 +63,11 @@ mkdir -p lib
build-jar-repository -s lib xpp3 build-jar-repository -s lib xpp3
%{ant} %{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} %{SOURCE1} dist/%{name}2-%{version}.jar
%{mvn_artifact} %{SOURCE2} dist/%{name}2-min-%{version}.jar %{mvn_artifact} %{SOURCE2} dist/%{name}2-min-%{version}.jar