[packages/OpenColorIO] fix build without docs
atler
atler at pld-linux.org
Mon Oct 26 22:57:46 CET 2026
commit 47eee6cb49bc04f3de64ff4efdf09a442ac50d44
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Oct 26 22:56:57 2026 +0100
fix build without docs
OpenColorIO.spec | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/OpenColorIO.spec b/OpenColorIO.spec
index deda22e..336f320 100644
--- a/OpenColorIO.spec
+++ b/OpenColorIO.spec
@@ -210,7 +210,7 @@ rm -rf $RPM_BUILD_ROOT
# not needed when installing to /usr
%{__rm} $RPM_BUILD_ROOT%{_datadir}/ocio/setup_ocio.sh
# packaged as %doc
-%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/OpenColorIO
+%{?with_doc:%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/OpenColorIO}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -259,9 +259,11 @@ rm -rf $RPM_BUILD_ROOT
%{_pkgconfigdir}/OpenColorIO.pc
%{_libdir}/cmake/OpenColorIO
+%if %{with doc}
%files apidocs
%defattr(644,root,root,755)
%doc build/docs/build-html/{_images,_static,api,aswf,concepts,configurations,guides,quick_start,releases,tutorials,*.html,*.js}
+%endif
%if %{with java}
%files -n java-OpenColorIO
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/OpenColorIO.git/commitdiff/47eee6cb49bc04f3de64ff4efdf09a442ac50d44
More information about the pld-cvs-commit
mailing list