Description of problem: rpm build of pam fails when AUDIT disabled. Version-Release number of selected component (if applicable): pam-1.1.0-7 How reproducible: Always Steps to Reproduce: 1. rpmbuild -ba --without audit pam.spec Actual results: 1. ERROR pam_tty_audit did not build a module. Expected results: no errors expected Additional info: Following patch needed for pam.spec: +%if ! %{WITH_AUDIT} + [ ${dir} = "modules/pam_tty_audit" ] && continue +%endif Also: +%if ! %{WITH_AUDIT} %{_moduledir}/pam_tty_audit.so +%endif
Mistake: end patch should be: %if %{WITH_AUDIT} %{_moduledir}/pam_tty_audit.so %endif