From 04a9068d7a749f255c3f419f2e8e0f6450e9f53b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 27 Aug 2019 16:23:04 +0200 Subject: [PATCH] Disable mkpasswd on EPEL There is an "expect" package that conflicts with it. --- whois.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/whois.spec b/whois.spec index 8686a84..0e5773e 100644 --- a/whois.spec +++ b/whois.spec @@ -1,5 +1,9 @@ # Package mkpasswd tool +%if 0%{?rhel} +%{bcond_with whois_enables_mkpasswd} +%else %{bcond_without whois_enables_mkpasswd} +%endif # Add IDN support %{bcond_without whois_enables_idn} # Use libidn2 instead of libidn @@ -26,7 +30,7 @@ BuildConflicts: pkgconfig(libidn2) BuildConflicts: pkgconfig(libidn) BuildConflicts: pkgconfig(libidn2) %endif -%if %{with whois_enables_mkpasswd} && ! ( 0%{?fedora} < 28) +%if %{with whois_enables_mkpasswd} BuildRequires: pkgconfig(libcrypt) BuildRequires: pkgconfig(libxcrypt) >= 4.1 %endif