From bf17bd6b4ac288f783878a17503cbde6366d0ea8c1ea45376a9b57c7229641af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 19 Mar 2020 10:27:46 +0000 Subject: [PATCH] Accepting request 786405 from home:frispete:OpenStack:Common - fix postgresql build dependency: pg_config is in postgresql-server-devel OBS-URL: https://build.opensuse.org/request/show/786405 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=72 --- python-psycopg2.changes | 5 +++++ python-psycopg2.spec | 5 +++++ 2 files changed, 10 insertions(+) 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