From dd29eb22288f6ae0360cdab424fca44b9ac9c360 Mon Sep 17 00:00:00 2001 From: leeffo Date: Tue, 15 Aug 2023 17:28:01 +0800 Subject: [PATCH] fix compile fail (cherry picked from commit 601373659d81f5acd0305f3a4e9c1ec018f9384f) --- htmlcxx.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/htmlcxx.spec b/htmlcxx.spec index 627b201..113c741 100644 --- a/htmlcxx.spec +++ b/htmlcxx.spec @@ -1,6 +1,6 @@ Name: htmlcxx Version: 0.86 -Release: 1 +Release: 2 License: LGPLv2 and GPLv2+ and ASL 2.0 and MIT Summary: A simple non-validating CSS1 and HTML parser for C++ Url: http://htmlcxx.sourceforge.net/ @@ -25,7 +25,6 @@ developing applications that use htmlcxx. %prep %setup -q -%configure --disable-static --enable-shared # convert to utf8 due rpmlint warning W: file-not-utf8 /usr/share/doc/htmlcxx/AUTHORS # convert to utf8 due rpmlint warning W: file-not-utf8 /usr/share/doc/htmlcxx/README @@ -33,6 +32,10 @@ iconv -f iso8859-1 -t utf-8 AUTHORS > AUTHORS.conv && mv -f AUTHORS.conv AUTHORS iconv -f iso8859-1 -t utf-8 README > README.conv && mv -f README.conv README %build +CC="$CC -std=gnu89" +export CXXFLAGS="-std=c++14 $RPM_OPT_FLAGS" +%configure --disable-static --enable-shared + make %{?_smp_mflags} %install @@ -60,5 +63,8 @@ make check %{_libdir}/pkgconfig/%{name}.pc %changelog +* Tue Aug 15 2023 leeffo - 0.86-2 +- fix compile fail + * Mon Jul 25 2022 loong_C - 0.86-1 - init package