OHPC_macros: restore conversion of "-" to "_" in formation of PNAME after
moving to global macros file. Need this to get well formed env variables for
lmod in components like netcdf-cxx and netcdf-fortran
DocDir: %{OHPC_PUB}/doc/contrib
-# This actually does not work with %%global
-%define PNAME %(eval tr [a-z] [A-Z] <<< %{pname})
+# Define PNAME which can be used in modulefile generation for env vars (derived
+# from pname defined in each component .spec file)
+%define PNAME %(echo %{pname} | tr [a-z] [A-Z] | tr - _)
# Instead of having Source[1-9]: OHPC_macros in every SPEC file,
# this sets Source42 for all SPEC files which include OHPC_macros.
