Accepting request 1202038 from Java:packages

Bit-reproducible build

OBS-URL: https://build.opensuse.org/request/show/1202038
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xml-commons-apis?expand=0&rev=6
This commit is contained in:
Ana Guerrero 2024-09-22 09:05:22 +00:00 committed by Git OBS Bridge
commit 4e4bbd2602
2 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Sep 19 15:03:31 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Use SOURCE_DATE_EPOCH for reproducible builds
-------------------------------------------------------------------
Wed Feb 21 22:22:21 UTC 2024 - Fridrich Strba <fstrba@suse.com>

View File

@ -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