From c86c739636fdc377c1fed9a1fc2ce92dd85891c7 Mon Sep 17 00:00:00 2001 From: SaltyFruit Date: Wed, 10 May 2023 09:45:00 +0000 Subject: [PATCH] Fix CC compiler support --- enchant-fix-cc.patch | 20 ++++++++++++++++++++ enchant.spec | 6 +++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 enchant-fix-cc.patch diff --git a/enchant-fix-cc.patch b/enchant-fix-cc.patch new file mode 100644 index 0000000..f92929c --- /dev/null +++ b/enchant-fix-cc.patch @@ -0,0 +1,20 @@ +--- a/src/Makefile.in 2017-04-05 05:14:36.000000000 +0800 ++++ b/src/Makefile.in 2023-05-09 17:28:56.000000000 +0800 +@@ -151,7 +151,7 @@ + am__v_lt_0 = --silent + am__v_lt_1 = + libenchant_la_LINK = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) \ +- $(LIBTOOLFLAGS) --mode=link $(OBJCLD) $(AM_OBJCFLAGS) \ ++ $(LIBTOOLFLAGS) --mode=link $(CC) $(AM_OBJCFLAGS) \ + $(OBJCFLAGS) $(libenchant_la_LDFLAGS) $(LDFLAGS) -o $@ + AM_V_P = $(am__v_P_@AM_V@) + am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +@@ -199,7 +199,7 @@ + am__v_OBJC_1 = + OBJCLD = $(OBJC) + OBJCLINK = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ +- --mode=link $(OBJCLD) $(AM_OBJCFLAGS) $(OBJCFLAGS) \ ++ --mode=link $(CC) $(AM_OBJCFLAGS) $(OBJCFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ + AM_V_OBJCLD = $(am__v_OBJCLD_@AM_V@) + am__v_OBJCLD_ = $(am__v_OBJCLD_@AM_DEFAULT_V@) diff --git a/enchant.spec b/enchant.spec index ce81179..8a64143 100644 --- a/enchant.spec +++ b/enchant.spec @@ -1,12 +1,13 @@ Name: enchant Version: 1.6.1 -Release: 3 +Release: 4 Epoch: 1 Summary: Generic spell checking library License: LGPLv2+ URL: https://github.com/AbiWord/enchant Source0: https://github.com/AbiWord/enchant/releases/download/enchant-1-6-1/%{name}-%{version}.tar.gz +Patch0: enchant-fix-cc.patch BuildRequires: aspell-devel automake gcc-c++ hunspell-devel libtool libvoikko-devel BuildRequires: glib2-devel >= 2.6.0 @@ -83,6 +84,9 @@ make install DESTDIR=%{buildroot} %{_mandir}/man1/*.gz %changelog +* Wed May 10 2023 Xiaoya Huang - 1:1.6.1-4 +- Fix CC compiler support + * Tue Jul 20 2021 liuyumeng - 1:1.6.1-3 - delete gdb in buildrequires -- Gitee