otf2: add a dependency on Fortran (#48506)

See https://gitlab.spack.io/spack/spack/-/jobs/14423941

From https://gitlab.com/score-p/scorep/-/blob/master/INSTALL?ref_type=heads

> Score-P requires a full compiler suite with language support for C99,
> C++11 and optionally Fortran 77 and Fortran 90.
This commit is contained in:
Massimiliano Culpo 2025-01-13 12:28:14 +01:00 committed by GitHub
parent 50e6bf9979
commit 39679d0882
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,8 +58,9 @@ class Otf2(AutotoolsPackage):
deprecated=True,
)
depends_on("c", type="build") # generated
depends_on("cxx", type="build") # generated
depends_on("c", type="build")
depends_on("cxx", type="build")
depends_on("fortran", type="build")
def url_for_version(self, version):
if version < Version("2.3"):