From 96750d8bb8ebff71a5888180c7c5b9cfe2672858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 10 Feb 2021 15:14:39 +0000 Subject: [PATCH] conditionals for nuspell not part of rhel --- hunspell-en.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/hunspell-en.spec b/hunspell-en.spec index 39380a3..0d3b311 100644 --- a/hunspell-en.spec +++ b/hunspell-en.spec @@ -40,14 +40,23 @@ BuildRequires: aspell, zip, dos2unix, perl-Getopt-Long, gcc-c++ BuildRequires: make Requires: hunspell-en-US = %{version}-%{release} Requires: hunspell-en-GB = %{version}-%{release} -Supplements: ((hunspell or nuspell) and langpacks-en) +%if 0%{?rhel} +Requires: hunspell +%else +Supplements: (hunspell or nuspell) +%endif +Supplements: langpacks-en %description English (US, UK, etc.) hunspell dictionaries %package US Requires: hunspell-filesystem +%if 0%{?rhel} +Requires: hunspell +%else Recommends: (hunspell or nuspell) +%endif Summary: US English hunspell dictionaries %description US @@ -55,8 +64,14 @@ US English hunspell dictionaries %package GB Requires: hunspell-filesystem +%if 0%{?rhel} +Requires: hunspell +Supplements: hunspell +%else Recommends: (hunspell or nuspell) -Supplements: ((hunspell or nuspell) and langpacks-en_GB) +Supplements: (hunspell or nuspell) +%endif +Supplements: langpacks-en_GB Summary: UK English hunspell dictionaries %description GB