Could you submit a build of libpq to epel7? The latest spec file in the master branch seems to work just fine.
It's needed eventually for building asterisk 16.
Thanks for the report, but there's libpq.so in RHEL 7 already - it is packaged
in postgresql-libs.rpm. The packaging layout can not be changed in RHEL 7,
but there's bug 1625651, which might solve your issues one day.
That said, what you probably want is 'BuildRequires: postgresql-devel' for
EPEL7, and your package will automatically 'Requires: libpq.so.5()(64bit)'.
Thanks, I've missed that. Using 'BuildRequires: postgresql-devel' works for me.