]> git.pld-linux.org Git - packages/pam.git/commitdiff
fix build without doc
authorJan Palus <atler@pld-linux.org>
Thu, 2 Feb 2023 20:14:06 +0000 (21:14 +0100)
committerJan Palus <atler@pld-linux.org>
Thu, 2 Feb 2023 20:14:06 +0000 (21:14 +0100)
pam.spec

index 097f8271a0f79704d15338dce6c0c745f994c950..475f311a5d9e88eb1a997ac47ce39be9d8cde145 100644 (file)
--- 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*}
This page took 0.0649420000000001 seconds and 4 git commands to generate.