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