diff --git a/pkg/redhat/build.sh b/pkg/redhat/build.sh index 342b1f4f3..ce6cbaa29 100755 --- a/pkg/redhat/build.sh +++ b/pkg/redhat/build.sh @@ -68,7 +68,7 @@ Summary: The core server package for pgAdmin. License: PostgreSQL URL: https://www.pgadmin.org/ -Requires: python3, libpq5 >= 11, krb5-libs +Requires: python3, postgresql-libs >= 11, krb5-libs %description The core server package for pgAdmin. pgAdmin is the most popular and feature rich Open Source administration and development platform for PostgreSQL, the most advanced Open Source database in the world. @@ -230,7 +230,7 @@ if [ "${OS_VERSION}" == 7 ]; then fi # Get the libpq we need -yumdownloader -y --downloadonly --destdir="${DISTROOT}" libpq5 libpq5-devel +yumdownloader -y --downloadonly --destdir="${DISTROOT}" postgresql$(ls -d /usr/pgsql-1* | sort -r | head -1 | awk -F '-' '{ print $2 }')-libs # # Get the results!