Skip to content

Commit

Permalink
simplify BuildRequires
Browse files Browse the repository at this point in the history
  • Loading branch information
f18m committed Oct 25, 2023
1 parent 439dfe6 commit 0c973d0
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions packaging/redhat/zeromq.spec
Expand Up @@ -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++

Expand Down

0 comments on commit 0c973d0

Please sign in to comment.