Enable build with lz4

This commit is contained in:
Filip Janus 2022-07-07 14:52:50 +02:00
parent 07442b93e9
commit e4c64d9bfe

View File

@ -65,7 +65,7 @@ Summary: PostgreSQL client programs
Name: postgresql Name: postgresql
%global majorversion 14 %global majorversion 14
Version: %{majorversion}.3 Version: %{majorversion}.3
Release: 5%{?dist} Release: 6%{?dist}
# The PostgreSQL license is very similar to other MIT licenses, but the OSI # The PostgreSQL license is very similar to other MIT licenses, but the OSI
# recognizes it as an independent license, so we do as well. # recognizes it as an independent license, so we do as well.
@ -124,6 +124,7 @@ Patch15: postgresql-SPI-s-handling-of-errors-during-transaction-comm.patch
Patch16: postgresql-pl-perl-test-case.patch Patch16: postgresql-pl-perl-test-case.patch
BuildRequires: make BuildRequires: make
BuildRequires: lz4-devel
BuildRequires: gcc BuildRequires: gcc
BuildRequires: perl(ExtUtils::MakeMaker) glibc-devel bison flex gawk BuildRequires: perl(ExtUtils::MakeMaker) glibc-devel bison flex gawk
BuildRequires: perl(ExtUtils::Embed), perl-devel BuildRequires: perl(ExtUtils::Embed), perl-devel
@ -546,6 +547,7 @@ common_configure_options='
--with-system-tzdata=%_datadir/zoneinfo --with-system-tzdata=%_datadir/zoneinfo
--datadir=%_datadir/pgsql --datadir=%_datadir/pgsql
--with-systemd --with-systemd
--with-lz4
%if %icu %if %icu
--with-icu --with-icu
%endif %endif
@ -632,6 +634,7 @@ upgrade_configure ()
--host=%{_host} \ --host=%{_host} \
--prefix=%prev_prefix \ --prefix=%prev_prefix \
--disable-rpath \ --disable-rpath \
--with-lz4 \
%if %beta %if %beta
--enable-debug \ --enable-debug \
--enable-cassert \ --enable-cassert \
@ -1259,6 +1262,9 @@ make -C postgresql-setup-%{setup_version} check
%changelog %changelog
* Thu Jul 07 2022 Filip Januš <fjanus@redhat.com> - 14.3-6
- enable lz4
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 14.3-5 * Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 14.3-5
- Rebuilt for Python 3.11 - Rebuilt for Python 3.11