diff --git a/protobuf.spec b/protobuf.spec index 436c672..bcbaf4f 100644 --- a/protobuf.spec +++ b/protobuf.spec @@ -4,11 +4,15 @@ # compared to the pure-Python implementation. %bcond_without python_cpp # Build -java subpackage +%if %{defined rhel} +%bcond_with java +%else %ifarch %{java_arches} %bcond_without java %else %bcond_with java %endif +%endif #global rcver rc2