]> git.pld-linux.org Git - packages/nagios.git/commitdiff
fix without doc bcond
authorElan Ruusamäe <glen@delfi.ee>
Tue, 5 May 2015 09:52:26 +0000 (12:52 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 5 May 2015 09:52:26 +0000 (12:52 +0300)
nagios.spec

index 78e8f8ea1750287b50aa4d2d3b0ccb01e79a698e..ae926014b566d1aae01e028efd6be546f18bd6d9 100644 (file)
@@ -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)
This page took 0.1968 seconds and 4 git commands to generate.