Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working builds for RHEL 8 and RHEL 9 #193

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion packaging/rpm/amanda.spec.src
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,21 @@
%define distver 7
%define curl libcurl
%endif

%if %(awk '$1 == "Red" && $6 ~ /8.*/ { exit 1; }' /etc/redhat-release; echo $?)
%define dist redhat
%define disttag rhel
%define distver 8
%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 use_libtirpc BuildRequires: libtirpc-devel
%endif

# If dist is undefined, we didn't detect.
%{!?dist:%define dist unknown}
%endif
Expand Down Expand Up @@ -216,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