Skip to content

Commit

Permalink
RPM spec: don't build cachedb_mongodb for centos-8 because of removed…
Browse files Browse the repository at this point in the history
… libzstd, fix perl build deps
  • Loading branch information
Nick Altmann committed May 28, 2020
1 parent c744fae commit 3a0a8e6
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions packaging/redhat_fedora/opensips.spec
Expand Up @@ -13,7 +13,11 @@
%global _with_cachedb_redis 1
%endif

%if 0%{?rhel} > 6 || 0%{?fedora} > 21
%if 0%{?rhel} > 6 && 0%{?rhel} < 8
%global _with_cachedb_mongodb 1
%endif

%if 0%{?fedora} > 21
%global _with_cachedb_mongodb 1
%endif

Expand Down Expand Up @@ -589,17 +593,9 @@ is a trusted peer.
%package perl
Summary: Helps implement your own OpenSIPS extensions in Perl
Group: System Environment/Daemons
# require perl-devel for >F7 and perl for <=F6
BuildRequires: perl(ExtUtils::MakeMaker)
%if 0%{?rhel} > 0 && 0%{?rhel} < 8
BuildRequires: perl(ExtUtils::Embed)
%else
%if 0%{?rhel} == 5
BuildRequires: perl(ExtUtils::Embed), perl-devel
%else
BuildRequires: perl(ExtUtils::Embed)
%endif
%endif
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::Embed)
Requires: %{name} = %{version}-%{release}
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

Expand Down

0 comments on commit 3a0a8e6

Please sign in to comment.