From 6751d7668c5311a6bb4fa8275398b37e75725e67a0667ba9c6cb6027954067a0 Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Tue, 30 Nov 2021 16:36:45 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql14?expand=0&rev=19 --- postgresql14.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/postgresql14.spec b/postgresql14.spec index 86221d9..afb9ea2 100644 --- a/postgresql14.spec +++ b/postgresql14.spec @@ -342,11 +342,13 @@ Summary: PostgreSQL development files for extensions with LLVM support Group: Development/Libraries/C and C++ Provides: postgresql-llvmjit-devel = %version-%release Provides: postgresql-llvmjit-devel-implementation = %version-%release +Requires: %pgname-server-devel = %version +%if %{with llvm} Requires(post): postgresql-llvmjit-noarch >= %pgmajor Requires(postun):postgresql-llvmjit-noarch >= %pgmajor -Requires: %pgname-server-devel = %version %requires_file %_bindir/llc %requires_file %_bindir/clang +%endif %description llvmjit-devel PostgreSQL is an advanced object-relational database management system @@ -355,7 +357,9 @@ transactions, foreign keys, sub-queries, triggers, and user-defined types and functions. This package pulls in the right versions of llvm and clang to compile -PostgreSQL extensions that support just-in-time compilation with LLVM. +PostgreSQL extensions that support just-in-time compilation with LLVM, +if llvm is supported. Otherwise it will just pull the +%{pgname}-server-devel package. %package test Summary: The test suite for PostgreSQL