Can't compile GDAL 3.2 on CentOS/RedHat 8

Solution 1:

You need to install the package pgdg-srpm-macros from the PGDG repository to provide their custom RPM macros.