SHA256
1
0
forked from pool/timezone

Accepting request 969463 from home:fstrba:branches:Base:System

Fix build in factory

OBS-URL: https://build.opensuse.org/request/show/969463
OBS-URL: https://build.opensuse.org/package/show/Base:System/timezone?expand=0&rev=279
This commit is contained in:
Markéta Machová 2022-04-13 07:24:11 +00:00 committed by Git OBS Bridge
parent 357ef525cb
commit 7da29132f8
3 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Apr 12 13:56:17 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Add --add-exports for java versions that support it.
* Fixes build in factory, since this is compulsory for jdk17+
-------------------------------------------------------------------
Thu Mar 17 06:50:19 UTC 2022 - Andreas Stieger <andreas.stieger@gmx.de>

View File

@ -66,7 +66,11 @@ echo "tzdata%{version}" >> VERSION
%build
# Java 6/7 data
java -jar %{_javadir}/javazic.jar -V %{version} \
java \
%if %{?pkg_vcmp:%pkg_vcmp java >= 9}%{!?pkg_vcmp:0}
--add-exports=java.base/sun.security.action=ALL-UNNAMED \
%endif
-jar %{_javadir}/javazic.jar -V %{version} \
-d javazi \
africa antarctica asia australasia europe northamerica \
southamerica backward etcetera \

View File

@ -47,7 +47,11 @@ echo "tzdata%{version}" >> VERSION
%build
# Java 6/7 data
java -jar %{_javadir}/javazic.jar -V %{version} \
java \
%if %{?pkg_vcmp:%pkg_vcmp java >= 9}%{!?pkg_vcmp:0}
--add-exports=java.base/sun.security.action=ALL-UNNAMED \
%endif
-jar %{_javadir}/javazic.jar -V %{version} \
-d javazi \
africa antarctica asia australasia europe northamerica \
southamerica backward etcetera \