From f54e626382b9a08302b0fcaeaec76567e9a9430c6b39e7d3881a17867941b3f0 Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Tue, 10 Oct 2023 13:12:15 +0000 Subject: [PATCH] - boo#1216022: Call install-alternatives from the devel subpackage as well, otherwise the symlink for ecpg might be missing. OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql16?expand=0&rev=11 --- postgresql16.changes | 6 ++++++ postgresql16.spec | 14 ++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/postgresql16.changes b/postgresql16.changes index 1d767db..49829bf 100644 --- a/postgresql16.changes +++ b/postgresql16.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Oct 10 12:49:02 UTC 2023 - Reinhard Max + +- boo#1216022: Call install-alternatives from the devel subpackage + as well, otherwise the symlink for ecpg might be missing. + ------------------------------------------------------------------- Mon Sep 18 15:24:14 UTC 2023 - Dominique Leuenberger diff --git a/postgresql16.spec b/postgresql16.spec index b1f3be1..0d99255 100644 --- a/postgresql16.spec +++ b/postgresql16.spec @@ -795,18 +795,20 @@ awk -v P=%buildroot '/^(%lang|[^%])/{print P $NF}' libpq.files libecpg.files | x %post -n %pgname-%devel /sbin/ldconfig -%if %{with server_devel} -%post server-devel -%endif /usr/share/postgresql/install-alternatives %pgmajor %postun -n %pgname-%devel /sbin/ldconfig -%if %{with server_devel} -%postun server-devel -%endif /usr/share/postgresql/install-alternatives %pgmajor +%if %{with server_devel} +%post server-devel +/usr/share/postgresql/install-alternatives %pgmajor + +%postun server-devel +/usr/share/postgresql/install-alternatives %pgmajor +%endif + %if !%mini %postun