lorene: Use correct library names of dependencies (#25000)
lorene: Use correct library names of dependencies (#25000)

Query `spec[...].libs` to find out library flags and names of dependencies.

Also define `libs` property.
LLNL/spack,LLNL/spack,LLNL/spack,LLNL/spack,LLNL/spack