diff --git a/python-psycopg2.changes b/python-psycopg2.changes index 38e0452..44cb517 100644 --- a/python-psycopg2.changes +++ b/python-psycopg2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 19 08:19:57 UTC 2020 - Hans-Peter Jansen + +- fix postgresql build dependency: pg_config is in postgresql-server-devel + ------------------------------------------------------------------- Fri Feb 28 21:49:40 UTC 2020 - Dirk Mueller diff --git a/python-psycopg2.spec b/python-psycopg2.spec index f0abb16..ba925ab 100644 --- a/python-psycopg2.spec +++ b/python-psycopg2.spec @@ -27,7 +27,12 @@ Source: https://files.pythonhosted.org/packages/source/p/psycopg2/psycop BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes +# newer postgresql packages pg_config in -server-devel +%if ( 0%{?sle_version} > 150100 && 0%{?is_opensuse} ) || 0%{?suse_version} > 1500 +BuildRequires: postgresql-server-devel >= 9.1 +%else BuildRequires: postgresql-devel >= 9.1 +%endif BuildRequires: python-rpm-macros %if 0%{?suse_version} > 1500 BuildRequires: postgresql-server-devel