2019-12-14 18:56:59 +08:00
|
|
|
Name: libpq
|
|
|
|
|
Version: 11.2
|
2020-08-26 10:17:31 +08:00
|
|
|
Release: 4
|
2019-12-14 18:56:59 +08:00
|
|
|
Summary: A share library of PostgreSQL
|
|
|
|
|
License: PostgreSQL
|
|
|
|
|
Url: http://www.postgresql.org/
|
|
|
|
|
Source0: https://ftp.postgresql.org/pub/source/v11.2/postgresql-11.2.tar.bz2
|
|
|
|
|
Patch0001: libpq-10.3-rpm-pgsql.patch
|
|
|
|
|
Patch0002: libpq-10.3-var-run-socket.patch
|
|
|
|
|
Patch0003: libpq-10.4-symbol-versioning.patch
|
|
|
|
|
BuildRequires: gcc glibc-devel bison flex gawk zlib-devel openssl-devel
|
|
|
|
|
BuildRequires: krb5-devel openldap-devel gettext multilib-rpm-config
|
|
|
|
|
Obsoletes: postgresql-libs < 11
|
|
|
|
|
Provides: postgresql-libs = 11.2-3
|
|
|
|
|
%description
|
|
|
|
|
PostgreSQL is a powerful, open source object-relational database system
|
|
|
|
|
that uses and extends the SQL language combined with many features that
|
|
|
|
|
safely store and scale the most complicated data workloads. This package
|
|
|
|
|
provides the essential shared library for any PostgreSQL client program
|
|
|
|
|
or interface.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for building PostgreSQL client tools
|
2020-08-26 10:17:31 +08:00
|
|
|
Requires: libpq%{?_isa} = 11.2-3%{?dist}
|
2019-12-14 18:56:59 +08:00
|
|
|
Provides: postgresql-devel = 11.2-3
|
|
|
|
|
Obsoletes: postgresql-devel < 11
|
|
|
|
|
%description devel
|
|
|
|
|
The development package of libpq
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n postgresql-11.2 -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export SYMBOL_VERSION_PREFIX=RHPG_
|
|
|
|
|
%configure --disable-rpath --with-ldap --with-openssl --with-gssapi \
|
|
|
|
|
--enable-nls --without-readline --datadir=%_datadir/pgsql
|
|
|
|
|
%global build_subdirs \\\
|
|
|
|
|
src/interfaces/libpq \\\
|
|
|
|
|
src/bin/pg_config \\\
|
|
|
|
|
src/include
|
|
|
|
|
for subdir in %build_subdirs; do
|
|
|
|
|
%make_build -C "$subdir"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
for subdir in %build_subdirs; do
|
|
|
|
|
%make_install -C "$subdir"
|
|
|
|
|
done
|
|
|
|
|
find $RPM_BUILD_ROOT -name '*.a' -delete
|
|
|
|
|
rm -r $RPM_BUILD_ROOT%_includedir/pgsql/server
|
|
|
|
|
%multilib_fix_c_header --file "%_includedir/pg_config.h"
|
|
|
|
|
%multilib_fix_c_header --file "%_includedir/pg_config_ext.h"
|
|
|
|
|
|
|
|
|
|
cp /dev/null libpq.lst
|
|
|
|
|
%find_lang libpq5-11
|
|
|
|
|
cat libpq5-11.lang >>libpq.lst
|
|
|
|
|
cp /dev/null libpq-devel.lst
|
|
|
|
|
%find_lang pg_config-11
|
|
|
|
|
cat pg_config-11.lang >>libpq-devel.lst
|
|
|
|
|
|
|
|
|
|
%files -f libpq.lst
|
|
|
|
|
%license COPYRIGHT
|
|
|
|
|
%_libdir/libpq.so.5*
|
|
|
|
|
%dir %_datadir/pgsql
|
|
|
|
|
%doc %_datadir/pgsql/pg_service.conf.sample
|
|
|
|
|
|
|
|
|
|
%files devel -f libpq-devel.lst
|
|
|
|
|
%_bindir/pg_config
|
|
|
|
|
%_includedir/*
|
|
|
|
|
%_libdir/libpq.so
|
|
|
|
|
%_libdir/pkgconfig/libpq.pc
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-08-26 10:17:31 +08:00
|
|
|
* Wed Aug 26 2020 chengzihan <chengzihan2@huawei.com> - 11.2-4
|
|
|
|
|
- Fix installing problem of libpq-devel
|
|
|
|
|
|
2019-12-14 18:56:59 +08:00
|
|
|
* Tue Nov 26 2019 openEuler Buildteam <buildteam@openeuler.org> - 11.2-3
|
|
|
|
|
- Package init
|