From 9e291388603afded53c472f63d86fcd4374e9177e18064ea8432b2152809086c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 20 Feb 2025 11:27:51 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main xml-commons-apis-bootstrap revision eb0b48aad6a02ea675cc25739295f49a --- xml-commons-apis-bootstrap.changes | 5 +++++ xml-commons-apis-bootstrap.spec | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/xml-commons-apis-bootstrap.changes b/xml-commons-apis-bootstrap.changes index f95a471..5328b85 100644 --- a/xml-commons-apis-bootstrap.changes +++ b/xml-commons-apis-bootstrap.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Sep 24 10:20:55 UTC 2024 - Fridrich Strba + +- Use SOURCE_DATE_EPOCH for reproducible builds + ------------------------------------------------------------------- Wed Feb 21 16:14:29 UTC 2024 - Fridrich Strba diff --git a/xml-commons-apis-bootstrap.spec b/xml-commons-apis-bootstrap.spec index 7152ced..e001108 100644 --- a/xml-commons-apis-bootstrap.spec +++ b/xml-commons-apis-bootstrap.spec @@ -124,8 +124,13 @@ function compileFiles() { # PARAM#1: name of jar archive (without .jar suffix) # uses $TARGET_DIR to move created jar to function mkJar() { - find -name "version.txt" -or -name "*.class" -or -name "*.properties" -or -name "*.rsc" |\ - xargs jar cfm ${1}.jar manifest.* ; + 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 + --create --file=${1}.jar \ + `find -name "version.txt" -or -name "*.class" -or -name "*.properties" -or -name "*.rsc" |\ + xargs` ; mv ${1}.jar $TARGET_DIR } #<<<