Skip to content

Commit

Permalink
%{?use_libtirpc}
Browse files Browse the repository at this point in the history
  • Loading branch information
Yehuda Katz committed Oct 24, 2022
1 parent 9e17790 commit 5531b1f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packaging/rpm/amanda.spec.src
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,15 @@
%define dist redhat
%define disttag rhel
%define distver 8
%define curl libcurl
%define curl libcurl
%define use_libtirpc BuildRequires: libtirpc-devel
%endif
%if %(awk '$1 == "Red" && $6 ~ /9.*/ { exit 1; }' /etc/redhat-release; echo $?)
%define dist redhat
%define disttag rhel
%define distver 9
%define curl libcurl
%define curl libcurl
%define use_libtirpc BuildRequires: libtirpc-devel
%endif

# If dist is undefined, we didn't detect.
Expand Down Expand Up @@ -228,6 +230,7 @@ BuildRequires: %{curl}-devel >= 7.10.0
BuildRequires: openssl
BuildRequires: openssl-devel
BuildRequires: perl(ExtUtils::Embed)
%{?use_libtirpc}
%{?prereq_sharutils}
Requires: /bin/awk
Requires: /bin/date
Expand Down

0 comments on commit 5531b1f

Please sign in to comment.