Accepting request 1202039 from Java:packages

Bit-reproducible build

OBS-URL: https://build.opensuse.org/request/show/1202039
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xpp3?expand=0&rev=26
This commit is contained in:
Ana Guerrero 2024-09-20 15:11:26 +00:00 committed by Git OBS Bridge
commit eaa9ad312c
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Sep 19 14:50:46 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Use SOURCE_DATE_EPOCH for reproducible builds
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Apr 30 11:54:40 UTC 2024 - Fridrich Strba <fstrba@suse.com> Tue Apr 30 11:54:40 UTC 2024 - Fridrich Strba <fstrba@suse.com>

View File

@ -74,10 +74,14 @@ sed -i 's|depends="junit_main,junit_addons"|depends="junit_main"|' build.xml
%build %build
export CLASSPATH=$(build-classpath xml-commons-apis junit) export CLASSPATH=$(build-classpath xml-commons-apis junit)
ant xpp3 junit apidoc %{ant} xpp3 junit apidoc
# Add OSGi metadata # Add OSGi metadata
jar ufm build/%{name}-%{version}.jar %{SOURCE4} 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/%{name}-%{version}.jar --manifest=%{SOURCE4}
%install %install
# jars # jars