From 90f48604027a309c8b7704918e15f45610e1634e Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Sat, 4 Jan 2020 16:46:53 -0600 Subject: [PATCH] Add libs property to openjpeg package (#14383) --- var/spack/repos/builtin/packages/openjpeg/package.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/var/spack/repos/builtin/packages/openjpeg/package.py b/var/spack/repos/builtin/packages/openjpeg/package.py index 6b72168177..c451758ef0 100644 --- a/var/spack/repos/builtin/packages/openjpeg/package.py +++ b/var/spack/repos/builtin/packages/openjpeg/package.py @@ -50,3 +50,8 @@ def url_for_version(self, version): 'https://github.com/uclouvain/openjpeg/archive/version.{0}.tar.gz' return url_fmt.format(version) + + @property + def libs(self): + return find_libraries('libopenjp{0}'.format(self.version.up_to(1)), + root=self.prefix, recursive=True)