RPM: Add missing BuildRequires for PAM component

When the optional PAM binaries are included in a build, ./configure will
look for security/pam_modules.h and - if it doesn't find it - recommend
the user install `libpam0g-dev`.  On Red Hat systems, `pam-devel` is the
package that supplies this requirement; `libpam0g-dev` does not exist.

By encoding this requirement in the spec file, we give packagers more
appropriate (and timely) recommendations for completing the build.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chris Lindee <chris.lindee+github@gmail.com>
Closes #13001
This commit is contained in:
ColMelvin 2022-01-25 15:14:43 -06:00 committed by Tony Hutter
parent 7f4f461bcf
commit 5753e7a7c5
1 changed files with 5 additions and 0 deletions

View File

@ -148,10 +148,15 @@ BuildRequires: ncompress
BuildRequires: libtirpc-devel BuildRequires: libtirpc-devel
%endif %endif
%if %{with pam}
BuildRequires: pam-devel
%endif
Requires: openssl Requires: openssl
%if 0%{?_systemd} %if 0%{?_systemd}
BuildRequires: systemd BuildRequires: systemd
%endif %endif
%endif %endif
%if 0%{?_systemd} %if 0%{?_systemd}