From e3073b6de78a1b80087dc1f7a44624cc48928980 Mon Sep 17 00:00:00 2001 From: Miroslav Vadkerti Date: Nov 10 2017 17:20:46 +0000 Subject: Make sure specfile is RHEL friendly Signed-off-by: Miroslav Vadkerti --- diff --git a/custodia.spec b/custodia.spec index 3f910be..5a6bd4c 100644 --- a/custodia.spec +++ b/custodia.spec @@ -1,4 +1,4 @@ -%if 0%{?fedora} +%if 0%{?fedora} || 0%{?rhel} > 7 %global with_python3 1 %endif @@ -12,7 +12,7 @@ # FreeIPA up to 4.4.4 are not compatible with custodia because the custodia # script now runs under Python 3. FreeIPA 4.4.5 and 4.4.4-2 on F26 are fixed. -%if 0%{?fedora} >= 26 +%if 0%{?fedora} >= 26 || 0%{?rhel} > 7 %global ipa_conflict 4.4.4-2 %else %global ipa_conflict 4.4.5