dist/redhat: add support SLES

CentOS/RHEL and SLES has differnt package name of opejdk, use common
name of JRE.
Note that using common name of Java package is also useful when user want to
use differnt implementation of JRE for Scylla.

Also, disable AutoReqProv which is mistakenly enabled but required for
cross build rpm.
This commit is contained in:
Takuya ASADA 2021-03-15 20:35:55 +09:00 committed by Avi Kivity
parent 15c1d4f43f
commit 9c687b562e

View File

@ -10,7 +10,8 @@ Source0: %{reloc_pkg}
BuildArch: noarch
BuildRequires: systemd-units
Requires: %{product}-server java-1.8.0-openjdk-headless
Requires: %{product}-server jre-1.8.0-headless
AutoReqProv: no
%description