diff --git a/src/build/misc/rpm.spec.in b/src/build/misc/rpm.spec.in index fe7ffd8f8..dc73b3f8c 100644 --- a/src/build/misc/rpm.spec.in +++ b/src/build/misc/rpm.spec.in @@ -44,10 +44,12 @@ %if 0%{?suse_version} == 1315 %global dist .sles12 +%global sles12 1 %endif %if 0%{?suse_version} == 1110 %global dist .sles11 +%global sles11 1 %endif %if 0%{?with_product_suffix:1} @@ -88,7 +90,12 @@ BuildRequires: ant %if 0%{!?with_java:1} BuildRequires: java-devel >= 1:1.8.0 %endif + +%if 0%{?sles12:1} +Requires: java-headless >= 1.8.0 +%else Requires: java-headless >= 1:1.8.0 +%endif %description MySQL provides connectivity for client applications developed in the