[packages/pam] fix build without doc

atler atler at pld-linux.org
Thu Feb 2 21:17:19 CET 2023


commit 24171b9fbd20baaeda63cafbe0afdf20e47d0997
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Feb 2 21:14:06 2023 +0100

    fix build without doc

 pam.spec | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/pam.spec b/pam.spec
index 097f827..475f311 100644
--- a/pam.spec
+++ b/pam.spec
@@ -418,12 +418,14 @@ done
 %{__rm} $RPM_BUILD_ROOT/%{_lib}/lib*.so
 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/Linux-PAM
 
+%if %{with doc}
 rm -rf rpm-doc
 install -d rpm-doc
 cp -a doc/html rpm-doc/html
 cp -a doc/sag/html rpm-doc/sag-html
 cp -a doc/adg/html rpm-doc/adg-html
 cp -a doc/mwg/html rpm-doc/mwg-html
+%endif
 
 %if %{without selinux}
 rm -rf $RPM_BUILD_ROOT{/%{_lib}/security/pam_selinux.so,%{_sbindir}/pam_selinux_check,%{_mandir}/man8/pam_selinux*.8*}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pam.git/commitdiff/c62e7245bc614c0f2ce32e4d671298629b652766



More information about the pld-cvs-commit mailing list