Build jit based on what postgresql server does
Deps llvm and clang are pulled in by postgresql-server-devel Related: #1933048
This commit is contained in:
parent
89a7241f1b
commit
c2a664e6e4
@ -2,7 +2,7 @@
|
||||
|
||||
Name: postgres-decoderbufs
|
||||
Version: 1.4.0
|
||||
Release: 2%{?pre:.%pre}%{?dist}
|
||||
Release: 3%{?pre:.%pre}%{?dist}
|
||||
Summary: PostgreSQL Protocol Buffers logical decoder plugin
|
||||
|
||||
License: MIT
|
||||
@ -16,7 +16,6 @@ BuildRequires: make
|
||||
BuildRequires: gcc
|
||||
BuildRequires: postgresql-devel >= 9.6, postgresql-server-devel >= 9.6
|
||||
BuildRequires: protobuf-c-devel
|
||||
BuildRequires: llvm, clang
|
||||
|
||||
Requires: protobuf-c
|
||||
%{?postgresql_module_requires}
|
||||
@ -25,12 +24,14 @@ Requires: protobuf-c
|
||||
A PostgreSQL logical decoder output plugin to deliver data as Protocol Buffers messages.
|
||||
|
||||
|
||||
%if 0%{?postgresql_server_llvmjit}
|
||||
%package llvmjit
|
||||
Summary: Just-in-time compilation support for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description llvmjit
|
||||
Just-in-time compilation support for %{name}.
|
||||
%endif
|
||||
|
||||
|
||||
%prep
|
||||
@ -51,12 +52,18 @@ Just-in-time compilation support for %{name}.
|
||||
%{_libdir}/pgsql/decoderbufs.so
|
||||
%{_datadir}/pgsql/extension/decoderbufs.control
|
||||
|
||||
%if 0%{?postgresql_server_llvmjit}
|
||||
%files llvmjit
|
||||
%{_libdir}/pgsql/bitcode/decoderbufs.index.bc
|
||||
%{_libdir}/pgsql/bitcode/decoderbufs/
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Apr 22 2021 Honza Horak <hhorak@redhat.com> - 1.4.0-3.Final
|
||||
- Build jit based on what postgresql server does
|
||||
Related: #1933048
|
||||
|
||||
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.4.0-2.Final
|
||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user