Fridrich Strba 2022-05-11 13:13:52 +00:00 committed by Git OBS Bridge
parent 7e8aa5ff7d
commit 86057238c4

View File

@ -45,7 +45,11 @@
%global freemarker_version 2.3.29
%global java_atk_wrapper_version 0.33.2
# priority must be 6 digits in total
%global priority 2101
%if 0%{?suse_version} > 1500 || 0%{?java_bootstrap}
%global priority 2701
%else
%global priority 0
%endif
%global javaver %{featurever}
# Standard JPackage directories and symbolic links.
%global sdklnk java-%{javaver}-openj9
@ -186,6 +190,7 @@ Requires: fontconfig
#was bnc#634793
Requires: mozilla-nss
Requires(post): file
%if 0%{?suse_version} > 1500 || 0%{?java_bootstrap}
# Standard JPackage base provides.
Provides: java = %{javaver}
Provides: java-%{javaver} = %{version}-%{release}
@ -218,6 +223,7 @@ Provides: jre1.6.x
Provides: jre1.7.x
Provides: jre1.8.x
Provides: jre1.9.x
%endif
ExclusiveArch: x86_64 ppc64le s390x aarch64
%if 0%{?suse_version} < 1500
BuildRequires: gcc7
@ -227,10 +233,14 @@ BuildRequires: gcc >= 7
BuildRequires: gcc-c++ >= 7
%endif
%if %{bootcycle}
%if 0%{?suse_version} > 1500 || 0%{?java_bootstrap}
BuildRequires: java-devel >= 16
BuildConflicts: java-devel >= 18
%else
BuildRequires: java-%{javaver}-devel
BuildRequires: %{name}-devel
%endif
%else
BuildRequires: %{name}-devel
%endif
%if %{with_system_harfbuzz}
BuildRequires: harfbuzz-devel
@ -256,6 +266,7 @@ Requires(post): update-alternatives
# Postun requires update-alternatives to uninstall tool update-alternatives.
Requires(postun):update-alternatives
Recommends: tzdata-java8
%if 0%{?suse_version} > 1500 || 0%{?java_bootstrap}
# Standard JPackage base provides.
Provides: java-%{javaver}-headless = %{version}-%{release}
Provides: java-headless = %{javaver}
@ -278,6 +289,7 @@ Provides: jndi-dns = %{version}
Provides: jndi-ldap = %{version}
Provides: jndi-rmi = %{version}
Provides: jsse = %{version}
%endif
%description headless
The OpenJDK %{featurever} runtime environment without audio and video support.
@ -293,6 +305,7 @@ Requires: %{name} = %{version}-%{release}
Requires(post): update-alternatives
# Postun requires update-alternatives to uninstall tool update-alternatives.
Requires(postun):update-alternatives
%if 0%{?suse_version} > 1500 || 0%{?java_bootstrap}
# Standard JPackage devel provides.
Provides: java-%{javaver}-devel = %{version}
Provides: java-devel = %{javaver}
@ -304,6 +317,7 @@ Provides: java-sdk-%{javaver}-openj9 = %{version}
Provides: java-sdk-%{javaver}-openjdk = %{version}
Provides: java-sdk-openj9 = %{version}
Provides: java-sdk-openjdk = %{version}
%endif
%description devel
The OpenJDK %{featurever} development tools.
@ -342,9 +356,11 @@ Requires: jpackage-utils
Requires(post): update-alternatives
# Postun requires update-alternatives to uninstall javadoc alternative.
Requires(postun):update-alternatives
%if 0%{?suse_version} > 1500 || 0%{?java_bootstrap}
# Standard JPackage javadoc provides.
Provides: java-%{javaver}-javadoc = %{version}-%{release}
Provides: java-javadoc = %{version}-%{release}
%endif
BuildArch: noarch
%description javadoc