Skip to content

Commit

Permalink
CentOS-Stream-8/9 dependency fixes (#2893)
Browse files Browse the repository at this point in the history
* CentOS-Stream-8/9 dependency fixes

Centos-Stream-8/9: change the 'ansible' dependency to 'ansible-core'.
Everybody else (at least for now) can get its hands on an 'ansible'
package (EPEL packages it for RHEL: it has a dependency on
'ansible-core' and includes some curated roles).

* Fixes from review comments on companion PR #2896
  • Loading branch information
ndokos authored Jun 15, 2022
1 parent c55457b commit d8a7fdb
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions agent/rpm/pbench-agent.spec.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,22 @@ URL: https://github.com/distributed-system-analysis/pbench
Source0: pbench-agent-%{version}.tar.gz
Buildarch: noarch

%if 0%{?rhel} < 9
Requires: ansible
%else
# EPEL provides ansible (a curated set of roles with a dependency on ansible-core)
# on RHEL 8 and RHEL9. Only CentOS-Stream seems to not have an ansible package
# available.

%if 0%{?centos} >= 8
Requires: ansible-core
%else
Requires: ansible
%endif


%if 0%{?rhel} == 7
Requires: python3, python3-pip
%endif

# This condition will be true on a CentOS-Stream-8 system as well
%if 0%{?rhel} == 8
Requires: python36, python3-pip
# RPMs for modules in requirements.txt
Expand All @@ -26,6 +32,7 @@ Requires: python3-cffi, python3-click, python3-requests
Requires: python3-docutils, python3-psutil
%endif

# This condition will be true on a CentOS-Stream-9 system as well
%if 0%{?rhel} == 9
Requires: python3-pip
# RPMs for modules in requirements.txt
Expand All @@ -34,6 +41,7 @@ Requires: python3-cffi, python3-requests
Requires: python3-docutils, python3-psutil
%endif


%if 0%{?fedora} != 0
Requires: python3, python3-pip
# RPMs for modules in requirements.txt
Expand Down

0 comments on commit d8a7fdb

Please sign in to comment.