From af3eca010ced853f2f02ac49fbc1884bca3158de49cabd1e15615d6c2bb4a493 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Thu, 19 Sep 2024 15:03:40 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/xml-commons-apis?expand=0&rev=24 --- xml-commons-apis.changes | 5 +++++ xml-commons-apis.spec | 12 ++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/xml-commons-apis.changes b/xml-commons-apis.changes index a8dfc1c..07e8a4a 100644 --- a/xml-commons-apis.changes +++ b/xml-commons-apis.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Sep 19 15:03:31 UTC 2024 - Fridrich Strba + +- Use SOURCE_DATE_EPOCH for reproducible builds + ------------------------------------------------------------------- Wed Feb 21 22:22:21 UTC 2024 - Fridrich Strba diff --git a/xml-commons-apis.spec b/xml-commons-apis.spec index c31f8f2..be87c97 100644 --- a/xml-commons-apis.spec +++ b/xml-commons-apis.spec @@ -87,8 +87,16 @@ iconv -f iso8859-1 -t utf-8 LICENSE.dom-software.txt > \ ant -Dant.build.javac.source=8 -Dant.build.javac.target=8 jar javadoc # inject OSGi manifests -jar ufm build/xml-apis.jar %{SOURCE1} -jar ufm build/xml-apis-ext.jar %{SOURCE2} +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=build/xml-apis.jar --manifest=%{SOURCE1} +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=build/xml-apis-ext.jar --manifest=%{SOURCE2} %install # jar