Build jit based on what postgresql server does
Deps llvm and clang are pulled in by postgresql-server-devel
This commit is contained in:
		
							parent
							
								
									c1be917fd4
								
							
						
					
					
						commit
						cd4e2a03c3
					
				| @ -2,7 +2,7 @@ | ||||
| 
 | ||||
| Name:		postgres-decoderbufs | ||||
| Version:	1.4.0 | ||||
| Release:	1%{?pre:.%pre}%{?dist} | ||||
| Release:	2%{?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,17 @@ 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-2.Final | ||||
| - Build jit based on what postgresql server does | ||||
| 
 | ||||
| * Wed Feb  3 2021 Honza Horak <hhorak@redhat.com> - 1.4.0-1.Final | ||||
| - Update to new release 1.4.0 | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user