6
0
forked from pool/sac

5 Commits

2 changed files with 18 additions and 2 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
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>
- Use SOURCE_DATE_EPOCH for reproducible jar mtime
-------------------------------------------------------------------
Tue Apr 30 12:17:46 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
@@ -62,7 +62,13 @@ ant \
%install
# inject OSGi manifest
jar -umf %{SOURCE2} build/lib/sac.jar
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)" \
--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