From 09dd1f48de29d1251dfaaefb56a1c7f03be0648d Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Fri, 28 Oct 2022 16:55:55 +0000 Subject: [PATCH] rhel conditionals for mingw nuspell Since RHEL doesn't have nuspell, and we have it %if out earlier, we need to put the same %if around both mingw32 and mingw64 enchant_nuspell.dll* --- enchant2.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/enchant2.spec b/enchant2.spec index 5339a4c..dd7f91a 100644 --- a/enchant2.spec +++ b/enchant2.spec @@ -191,8 +191,10 @@ find %{buildroot} -name '*.la' -delete %dir %{mingw32_libdir}/enchant-2/ %{mingw32_libdir}/enchant-2/enchant_hunspell.dll %{mingw32_libdir}/enchant-2/enchant_hunspell.dll.a +%if !0%{?rhel} %{mingw32_libdir}/enchant-2/enchant_nuspell.dll %{mingw32_libdir}/enchant-2/enchant_nuspell.dll.a +%endif %{mingw32_libdir}/libenchant-2.dll.a %{mingw32_libdir}/pkgconfig/enchant-2.pc %{mingw32_datadir}/enchant-2/ @@ -206,8 +208,10 @@ find %{buildroot} -name '*.la' -delete %dir %{mingw64_libdir}/enchant-2/ %{mingw64_libdir}/enchant-2/enchant_hunspell.dll %{mingw64_libdir}/enchant-2/enchant_hunspell.dll.a +%if !0%{?rhel} %{mingw64_libdir}/enchant-2/enchant_nuspell.dll %{mingw64_libdir}/enchant-2/enchant_nuspell.dll.a +%endif %{mingw64_libdir}/libenchant-2.dll.a %{mingw64_libdir}/pkgconfig/enchant-2.pc %{mingw64_datadir}/enchant-2/