[packages/nagios] fix without doc bcond
glen
glen at pld-linux.org
Tue May 5 11:52:43 CEST 2015
commit ea02e8bfa161a0f661c7ac22a6f46dbb3b70c2f6
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue May 5 12:52:26 2015 +0300
fix without doc bcond
nagios.spec | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/nagios.spec b/nagios.spec
index 78e8f8e..ae92601 100644
--- a/nagios.spec
+++ b/nagios.spec
@@ -376,7 +376,7 @@ done
> $RPM_BUILD_ROOT%{_localstatedir}/rw/%{name}.qh
install -d $RPM_BUILD_ROOT%{_docdir}/%{name}
-%{__cp} -a Documentation/html/* $RPM_BUILD_ROOT%{_docdir}/%{name}
+%{?with_doc:%{__cp} -a Documentation/html/* $RPM_BUILD_ROOT%{_docdir}/%{name}}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -522,9 +522,11 @@ done
%defattr(644,root,root,755)
%config(noreplace) %verify(not md5 mtime size) /etc/mrtg/conf.d/%{name}.cfg
+%if %{with doc}
%files doc
%defattr(644,root,root,755)
%{_docdir}/%{name}
+%endif
%files cgi
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nagios.git/commitdiff/ea02e8bfa161a0f661c7ac22a6f46dbb3b70c2f6
More information about the pld-cvs-commit
mailing list