Skip to content

Commit

Permalink
build: add conditional selinux runtime deps for pcp-testsuite package
Browse files Browse the repository at this point in the history
In order that we can generate pcpqa.pp on the machine under test.
  • Loading branch information
natoscott committed May 28, 2020
1 parent abda412 commit c82f67e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build/rpm/fedora.spec
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,15 @@ Requires: pcp-gui
%endif
Requires: bc gcc gzip bzip2
Requires: redhat-rpm-config
%if !%{disable_selinux}
Requires: selinux-policy-devel
Requires: selinux-policy-targeted
%if 0%{?rhel} == 5
Requires: setools
%else
Requires: setools-console
%endif
%endif

%description testsuite
Quality assurance test suite for Performance Co-Pilot (PCP).
Expand Down
9 changes: 9 additions & 0 deletions build/rpm/pcp.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,15 @@ Requires: pcp-system-tools
Requires: pcp-gui
%endif
Requires: gcc bc bzip2 gzip
%if "@enable_selinux@" == "true"
Requires: selinux-policy-devel
Requires: selinux-policy-targeted
%if 0%{?fedora} >= 19 || 0%{?rhel} >= 6 || 0%{?suse_version} >= 1200
Requires: setools-console
%else
Requires: setools
%endif
%endif

%description testsuite
Quality assurance test suite for Performance Co-Pilot (PCP).
Expand Down

0 comments on commit c82f67e

Please sign in to comment.