This MR provides a recipe to install libpowersensor (now deprecated) and pmt using Spack.
libpowersensor
pmt