Currently the definition of %enable_devtoolset11 lives in .../rpm/macros.%{scl}-config which is shipped be devtoolset-11-build, but not every user of DTS needs devtoolset-11-build which defines %scl. So we should move the definition into a file that is provided by devtoolset-11-runtime. Likewise for GTS.
I'll leave it for DTS 12.
Verified for rhel7 devtoolset-12-runtime-12.0-1.el7
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (new packages: devtoolset-12), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2022:8586