Enable lz4 and zstd support

Resolves: RHEL-47350
This commit is contained in:
Filip Janus 2024-07-15 11:26:15 +02:00
parent 828e6df33b
commit d72b854227

View File

@ -63,7 +63,7 @@ Summary: PostgreSQL client programs
Name: postgresql
%global majorversion 15
Version: %{majorversion}.6
Release: 1%{?dist}
Release: 2%{?dist}
# The PostgreSQL license is very similar to other MIT licenses, but the OSI
# recognizes it as an independent license, so we do as well.
@ -114,6 +114,7 @@ Patch12: postgresql-no-libecpg.patch
BuildRequires: make
BuildRequires: gcc
BuildRequires: lz4-devel, libzstd-devel
BuildRequires: perl(ExtUtils::MakeMaker) glibc-devel bison flex gawk
BuildRequires: perl(ExtUtils::Embed), perl-devel
BuildRequires: perl(Opcode)
@ -489,6 +490,8 @@ export CFLAGS
common_configure_options='
--disable-rpath
--with-lz4
--with-zstd
%if %beta
--enable-debug
--enable-cassert
@ -617,6 +620,8 @@ upgrade_configure ()
--host=%{_host} \
--prefix=%prev_prefix \
--disable-rpath \
--with-lz4 \
--with-zstd \
%if %beta
--enable-debug \
--enable-cassert \
@ -1226,6 +1231,9 @@ make -C postgresql-setup-%{setup_version} check
%changelog
* Mon Jul 15 2024 Filip Janus <fjanus@redhat.com> - 15.6-2
- Enable lz4 and zstd support
* Fri Feb 9 2024 Filip Janus <fjanus@redhat.com> 15.6-1
- Update to 15.6 and 13.14
- Fix CVE-2024-0985