Avoid private libs explore in public

The spec automaticlly provides the libpq.so which is the same with postgresql-libs package.

In public area, it should not find 2 or more packages provide the same lib.

So this might break the downstream dependencies which using pkgconfig(libpq).
For this reason, we hide the gpdb private libs.
This commit is contained in:
bzhaoop 2021-08-26 07:35:11 +00:00
parent 184a1c366e
commit e956e74705

View File

@ -1,6 +1,6 @@
NAME: gpdb
Version: 6.17.0
Release: 3
Release: 4
Summary: Open Source Greenplum Database
License: Apache 2.0
@ -19,6 +19,9 @@ BuildRequires: apr-devel bison bzip2-devel cmake3 flex gcc gcc-c++ krb5-devel li
Requires: apr apr-util bash bzip2 curl iproute krb5-devel less libcurl libxml2 libyaml net-tools openldap openssh openssh-clients openssh-server openssl perl readline rsync sed tar which zip zlib
Requires: hostname net-tools iputils
%global _privatelibs lib(pq|pgtypes|ecpg_compat|ecpg)\\.so*
%global __provides_exclude %{_privatelibs}
%description
Greenplum Database - Massively Parallel PostgreSQL for Analytics. An open-source massively parallel data platform for analytics, machine learning and AI.
@ -73,7 +76,7 @@ export PGUSER=$TEST_USER
ulimit -n 65535
make -C gpAux/gpdemo cluster
warmup env
# warmup env
sleep 5
source gpAux/gpdemo/gpdemo-env.sh
@ -86,6 +89,9 @@ make installcheck-world
/usr/local/greenplum-db-%{version}
%changelog
* Thu Aug 26 2021 bzhaoop <bzhaojyathousandy@gmail.com> - 6.17.0-4
- Fix multiple provides for forbiding the private libs in public area.
* Thu Aug 12 2021 peifengq <qiupf2000@gmail.com> - 6.17.0-3
- Run full regress conditionally