From b1fe3d640f50bbca511538d059f833c4efbd16c0 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Wed, 6 Jul 2022 15:11:25 -0400 Subject: [PATCH] Obsolete java subpackages on non-java arches --- protobuf.spec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/protobuf.spec b/protobuf.spec index 76cc059..555eab7 100644 --- a/protobuf.spec +++ b/protobuf.spec @@ -40,6 +40,14 @@ BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: zlib-devel +%ifnarch %{java_arches} +Obsoletes: %{name}-java-util < 3.19.4-4 +Obsoletes: %{name}-javadoc < 3.19.4-4 +Obsoletes: %{name}-parent < 3.19.4-4 +Obsoletes: %{name}-bom < 3.19.4-4 +Obsoletes: %{name}-javalite < 3.19.4-4 +%endif + %description Protocol Buffers are a way of encoding structured data in an efficient yet extensible format. Google uses Protocol Buffers for almost all of @@ -402,6 +410,7 @@ install -p -m 0644 %{SOURCE2} %{buildroot}%{_emacs_sitestartdir} %changelog * Wed Jul 06 2022 Benjamin A. Beasley - 3.19.4-4 - Exclude java subpackages on non-java arches (fix RHBZ#2104092) +- Obsolete java subpackages on non-java arches * Mon Jun 13 2022 Python Maint - 3.19.4-3 - Rebuilt for Python 3.11