[packages/boost] add 'doc' bcond
atler
atler at pld-linux.org
Mon Aug 9 13:58:17 CEST 2021
commit 74755c8e961df08fc40794162109371ccbd6f726
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Aug 9 13:57:12 2021 +0200
add 'doc' bcond
boost.spec | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/boost.spec b/boost.spec
index 6422d0f..f5d493f 100644
--- a/boost.spec
+++ b/boost.spec
@@ -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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/boost.git/commitdiff/74755c8e961df08fc40794162109371ccbd6f726
More information about the pld-cvs-commit
mailing list