3 Commits

2 changed files with 9 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Sep 18 06:10:42 UTC 2025 - Fridrich Strba <fstrba@suse.com>
- Fix build with older JDKs where jar tool does not have long options
-------------------------------------------------------------------
Tue Sep 24 13:44:01 UTC 2024 - Fridrich Strba <fstrba@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package sac
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -65,8 +65,10 @@ ant \
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 --manifest=%{SOURCE2} --file=build/lib/sac.jar
%else
umf %{SOURCE2} build/lib/sac.jar
%endif
install -d -m 0755 %{buildroot}%{_javadir}
install -p -m 0644 ./build/lib/sac.jar %{buildroot}%{_javadir}/%{name}.jar