configure correctly detects a lack of doxygen and dot and does not attempt to build or install the documentation. unfortunately, the RPM .spec is not so flexible before this patch.
rpm-nodocs.patch
rpm-nodocs.patch