# Conditional build:
%bcond_without pdf # build without PDF support
%bcond_without pqxx # build postgresql driver for kexi
+%bcond_without doc # build handbooks
%define _state stable
%define orgname calligra
Patch3: %{orgname}-boost.patch
Patch4: build.patch
Patch5: gcc11.patch
+Patch6: no-doc.patch
URL: http://www.calligra-suite.org/
BuildRequires: GraphicsMagick-devel
BuildRequires: OpenColorIO-devel
%patch3 -p1
%patch4 -p1
%patch5 -p1
+%{!?with_doc:%patch6 -p1}
%build
install -d build
--- /dev/null
+--- calligra-2.9.11/cmake/productsets/desktop.cmake~ 2016-02-02 20:53:13.000000000 +0100
++++ calligra-2.9.11/cmake/productsets/desktop.cmake 2021-11-15 09:23:34.884800706 +0100
+@@ -21,6 +21,4 @@
+ APP_CONVERTER
+ FILEMANAGER
+ OKULAR
+- # docs
+- DOC
+ )