summaryrefslogtreecommitdiffstats
path: root/redhat/applications/krecipes/krecipes.spec
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/applications/krecipes/krecipes.spec')
-rw-r--r--redhat/applications/krecipes/krecipes.spec12
1 files changed, 11 insertions, 1 deletions
diff --git a/redhat/applications/krecipes/krecipes.spec b/redhat/applications/krecipes/krecipes.spec
index 69c3d81f8..c2b24ef16 100644
--- a/redhat/applications/krecipes/krecipes.spec
+++ b/redhat/applications/krecipes/krecipes.spec
@@ -79,7 +79,17 @@ BuildRequires: brp-check-trinity
BuildRequires: mysql-devel
# POSTGRESQL support
-BuildRequires: postgresql-devel
+%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150200
+BuildRequires: postgresql10
+BuildRequires: postgresql10-devel
+%else
+BuildRequires: postgresql
+%if 0%{?fedora} >= 30 || 0%{?rhel} >= 8
+BuildRequires: postgresql-server-devel
+%else
+BuildRequires: postgresql-devel
+%endif
+%endif
# SQLITE support
BuildRequires: sqlite-devel