diff options
Diffstat (limited to 'libpq.spec')
-rw-r--r-- | libpq.spec | 46 |
1 files changed, 34 insertions, 12 deletions
@@ -1,14 +1,22 @@ Name: libpq -Version: 11.21 +Version: 13.12 Release: 1 -Summary: A share library of PostgreSQL +Summary: PostgreSQL client library License: PostgreSQL Url: http://www.postgresql.org/ -Source0: https://ftp.postgresql.org/pub/source/v11.21/postgresql-11.21.tar.bz2 + +Source0: https://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2 +Patch0001: libpq-10.3-rpm-pgsql.patch +Patch0002: libpq-10.3-var-run-socket.patch +Patch0003: libpq-12.1-symbol-versioning.patch +Patch0004: add-loongarch-support.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 + +Obsoletes: postgresql-libs < 14 Provides: postgresql-libs = %{version}-%{release} + %description PostgreSQL is a powerful, open source object-relational database system that uses and extends the SQL language combined with many features that @@ -20,9 +28,11 @@ or interface. Summary: Development files for building PostgreSQL client tools Requires: libpq%{?_isa} = %{version}-%{release} Provides: postgresql-devel = %{version}-%{release} -Obsoletes: postgresql-devel < 11 +Obsoletes: postgresql-devel < 14 + %description devel The development package of libpq + %prep %autosetup -n postgresql-%{version} -p1 @@ -31,6 +41,7 @@ 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/port \\\ src/interfaces/libpq \\\ src/bin/pg_config \\\ src/include @@ -42,17 +53,19 @@ done 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 +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 +%find_lang libpq5-13 +cat libpq5-13.lang >>libpq.lst cp /dev/null libpq-devel.lst -%find_lang pg_config-11 -cat pg_config-11.lang >>libpq-devel.lst +%find_lang pg_config-13 +cat pg_config-13.lang >>libpq-devel.lst %files -f libpq.lst %license COPYRIGHT @@ -67,8 +80,17 @@ cat pg_config-11.lang >>libpq-devel.lst %_libdir/pkgconfig/libpq.pc %changelog -* Wed Aug 30 2023 ZhenyuZheng <zhengzhenyu@openeuler.sh> - 11.21-1 -- Bump to 11.21 for CVE-2023-39417 +* Thu Aug 31 2023 ZhengZhenyu <zhengzhenyu@openeuler.sh> - 13.12-1 +- aupgrade libpq to 13.12,fix CVE-2023-2455, CVE-2023-2454, CVE-2023-39417, CVE-2023-39418, CVE-2020-21469 + +* Thu Dec 1 2022 huajingyun <huajingyun@loongson.cn> - 13.7-2 +- add loongarch support + +* Mon Jun 13 2022 duyiwei <duyiwei@kylinos.cn> - 13.7-1 +- upgrade libpq to 13.7,fix CVE-2021-32027,CVE-2022-1552 + +* Thu May 19 2022 yangweidong <yangweidong9@huawei.com> - 11.16-1 +- Upgrade libpq to 11.16, fix CVES: CVE-2021-32028 CVE-2021-3677 CVE-2021-23222 * Wed Sep 2 2020 chengzihan <chengzihan2@huawei.com> - 11.2-5 - Change actually numbers of version and release to macros |