'Get the rpath this package links with, as a list of paths.'

@property
def rpath(self):

    rpaths = [self.prefix.lib, self.prefix.lib64]
    deps = self.spec.dependencies(deptype='link')
    rpaths.extend((d.prefix.lib for d in deps if os.path.isdir(d.prefix.lib)))
    rpaths.extend((d.prefix.lib64 for d in deps if os.path.isdir(d.prefix.lib64)))
    return rpaths
