Skip to content

Commit

Permalink
Fixes #22717: Invalid spec file for AIX (no inner if)
Browse files Browse the repository at this point in the history
  • Loading branch information
VinceMacBuche committed Apr 28, 2023
1 parent 843b3f4 commit f8fb307
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions rudder-agent/SPECS/rudder-agent.spec
Original file line number Diff line number Diff line change
Expand Up @@ -142,23 +142,21 @@ AutoProv: 0
BuildRequires: perl-CPAN
%endif

%if "%{with_perl}" == "false"
%if 0%{?fedora}
%if "%{with_perl}" == "false" && 0%{?fedora}
Requires: perl-interpreter perl-lib perl-English perl-Memoize perl-Sys-Hostname perl-File-Find
%endif
%if 0%{?rhel} >= 9
%if "%{with_perl}" == "false" && 0%{?rhel} >= 9
Requires: perl-interpreter perl-lib perl-English perl-Memoize perl-Sys-Hostname perl-File-Find
%endif
%if 0%{?rhel} == 8
%if "%{with_perl}" == "false" && 0%{?rhel} == 8
Requires: perl-interpreter perl-Memoize
%endif
%if 0%{?rhel} < 8
%if "%{with_perl}" == "false" && 0%{?rhel} && 0%{?rhel} < 8
Requires: perl
%endif
%if 0%{?suse_version}
%if "%{with_perl}" == "false" && 0%{?suse_version}
Requires: perl
%endif
%endif

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Expand Down

0 comments on commit f8fb307

Please sign in to comment.