diff --git a/timezone-java.changes b/timezone-java.changes index c664a6a..d75803a 100644 --- a/timezone-java.changes +++ b/timezone-java.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Apr 12 13:56:17 UTC 2022 - Fridrich Strba + +- 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 diff --git a/timezone-java.spec b/timezone-java.spec index 68a3154..a9f5377 100644 --- a/timezone-java.spec +++ b/timezone-java.spec @@ -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 \ diff --git a/timezone-java.spec.in b/timezone-java.spec.in index 3d86680..8370c2a 100644 --- a/timezone-java.spec.in +++ b/timezone-java.spec.in @@ -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 \