From 0c973d0af96cfcec685ae7dfe58288bd07a94366 Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Wed, 25 Oct 2023 23:31:25 +0200 Subject: [PATCH] simplify BuildRequires --- packaging/redhat/zeromq.spec | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/packaging/redhat/zeromq.spec b/packaging/redhat/zeromq.spec index 494b79fa73..80c6dcbb47 100644 --- a/packaging/redhat/zeromq.spec +++ b/packaging/redhat/zeromq.spec @@ -67,19 +67,17 @@ BuildRequires: gnutls-devel %else %define TLS no %endif - - -%if 0%{?suse_version} -BuildRequires: rubygem(asciidoctor) -%else -%if 0%{?rhel_version} || 0%{?rhel} || 0%{?centos_version} -BuildRequires: rubygem-asciidoctor -%else +%if 0%{?rhel_version} +%if 0%{?rhel_version} > 700 +# note1: on OBS the RHEL7 target for some reason is unable to find the asciidoctor package, so on RHEL7 docs are not built +# note2: on RHEL8/Centos8 the asciidoctor package depends from the ruby module; this might require some extra config on the +# build farm where this .spec file is used BuildRequires: asciidoctor %endif +%else +# on non-RHEL targets, listing asciidoctor in BuildRequires works just fine: +BuildRequires: asciidoctor %endif - - BuildRequires: gcc, make, gcc-c++, libstdc++-devel Requires: libstdc++