From 890fb5a7f029be3db6cbc5c7100b69466afe52d4c41b29d2c76850cd0460a9fc Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Fri, 20 Nov 2020 10:01:45 +0000 Subject: [PATCH 1/3] - bsc#1178961: %ghost the symlinks to pg_config and ecpg. OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql12?expand=0&rev=26 --- postgresql12.changes | 5 +++++ postgresql12.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/postgresql12.changes b/postgresql12.changes index 2862dbd..057bd39 100644 --- a/postgresql12.changes +++ b/postgresql12.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Nov 20 09:50:09 UTC 2020 - Reinhard Max + +- bsc#1178961: %ghost the symlinks to pg_config and ecpg. + ------------------------------------------------------------------- Wed Nov 11 12:04:35 UTC 2020 - Reinhard Max diff --git a/postgresql12.spec b/postgresql12.spec index eaacc4b..9c6a2f7 100644 --- a/postgresql12.spec +++ b/postgresql12.spec @@ -917,7 +917,7 @@ fi %defattr(-,root,root) %dir %pgbasedir %dir %pgbindir -%_bindir/ecpg +%ghost %_bindir/ecpg %_libdir/pkgconfig/* %_libdir/lib*.so %pgbindir/ecpg @@ -932,7 +932,7 @@ fi %files server-devel -f server-devel.files %endif %defattr(-,root,root) -%_bindir/pg_config +%ghost %_bindir/pg_config %pgbindir/pg_config %pgincludedir/server %pglibdir/pgxs From fe1981634cd1b757d2cd7287bc2d4e767216bda137b9153c48483cba0ebccf06 Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Fri, 20 Nov 2020 11:54:36 +0000 Subject: [PATCH 2/3] - BuildRequire libpq5 and libecpg6 when not building them to avoid dangling symlinks in the devel package. OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql12?expand=0&rev=27 --- postgresql12.changes | 4 +++- postgresql12.spec | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/postgresql12.changes b/postgresql12.changes index 057bd39..8e288e8 100644 --- a/postgresql12.changes +++ b/postgresql12.changes @@ -1,7 +1,9 @@ ------------------------------------------------------------------- -Fri Nov 20 09:50:09 UTC 2020 - Reinhard Max +Fri Nov 20 11:51:37 UTC 2020 - Reinhard Max - bsc#1178961: %ghost the symlinks to pg_config and ecpg. +- BuildRequire libpq5 and libecpg6 when not building them to avoid + dangling symlinks in the devel package. ------------------------------------------------------------------- Wed Nov 11 12:04:35 UTC 2020 - Reinhard Max diff --git a/postgresql12.spec b/postgresql12.spec index 9c6a2f7..889f897 100644 --- a/postgresql12.spec +++ b/postgresql12.spec @@ -73,6 +73,10 @@ BuildRequires: timezone BuildRequires: zlib-devel %bcond_without selinux %bcond_without icu +%if !%buildlibs +BuildRequires: %libecpg +BuildRequires: %libpq +%endif %if 0%{?suse_version} >= 1300 %bcond_without systemd %bcond_without systemd_notify From fab8a884894fc51ca811ffe9f61986585716c75b0c10014e4a7875ddd0fc1818 Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Tue, 8 Dec 2020 16:13:43 +0000 Subject: [PATCH 3/3] OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql12?expand=0&rev=28 --- postgresql12.changes | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postgresql12.changes b/postgresql12.changes index 8e288e8..dd3d396 100644 --- a/postgresql12.changes +++ b/postgresql12.changes @@ -2,8 +2,8 @@ Fri Nov 20 11:51:37 UTC 2020 - Reinhard Max - bsc#1178961: %ghost the symlinks to pg_config and ecpg. -- BuildRequire libpq5 and libecpg6 when not building them to avoid - dangling symlinks in the devel package. +- boo#1179765: BuildRequire libpq5 and libecpg6 when not building + them to avoid dangling symlinks in the devel package. ------------------------------------------------------------------- Wed Nov 11 12:04:35 UTC 2020 - Reinhard Max