From 020556d7f08c9fb325b8a4283a2a327a2dfc1ff4 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Wed, 10 May 2023 19:10:47 -0400 Subject: [PATCH] Disable Java subpackages in RHEL builds This is based on the change already in c9s: https://gitlab.com/redhat/centos-stream/rpms/protobuf/-/commit/ddeca16f48b6bfa8ef960af72290785d86596dfb --- protobuf.spec | 4 ++++ 1 file changed, 4 insertions(+) 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