'Checks if incompatible versions of qt were specified
:param spec: spec of the package
:raises RuntimeError: in case of inconsistencies'

def validate(self, spec):

    if (('+qt' in spec) and spec.satisfies('^qt@5.4.0')):
        msg = 'qt-5.4.0    has    broken    CMake    modules.'
        raise RuntimeError(msg)
