]> git.pld-linux.org Git - packages/boost.git/commitdiff
add 'doc' bcond auto/th/boost-1.76.0-1
authorJan Palus <atler@pld-linux.org>
Mon, 9 Aug 2021 11:57:12 +0000 (13:57 +0200)
committerJan Palus <atler@pld-linux.org>
Mon, 9 Aug 2021 11:57:12 +0000 (13:57 +0200)
boost.spec

index 6422d0ffd0d274eb8c60551f075f62a35a35395c..f5d493fddd5137589ba395d1143924af8311ac49 100644 (file)
@@ -7,6 +7,7 @@
 %bcond_without python2         # boost-python[2] support
 %bcond_without python3         # boost-python3 support
 %bcond_without numpy           # boost-numpy support
+%bcond_without doc             # don't package documentation
 
 %define                fver    %(echo %{version} | tr . _)
 Summary:       The Boost C++ Libraries
@@ -560,6 +561,7 @@ install -p stage/lib/lib*.a $RPM_BUILD_ROOT%{_libdir}
 install -p stage/lib/lib*.so.*.*.* $RPM_BUILD_ROOT%{_libdir}
 cp -a stage/lib/lib*.so $RPM_BUILD_ROOT%{_libdir}
 
+%if %{with doc}
 # documentation
 install -d $RPM_BUILD_ROOT%{_docdir}/boost-%{version}
 
@@ -606,6 +608,7 @@ EOT`; do
        fi
 done
 }; installdocs
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -869,6 +872,8 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libboost_wave.so.*.*.*
 
+%if %{with doc}
 %files doc
 %defattr(644,root,root,755)
 %{_docdir}/%{name}-%{version}
+%endif
This page took 0.876429 seconds and 4 git commands to generate.