fix compile fail

(cherry picked from commit 601373659d81f5acd0305f3a4e9c1ec018f9384f)
This commit is contained in:
leeffo 2023-08-15 17:28:01 +08:00 committed by openeuler-sync-bot
parent d8374fad59
commit dd29eb2228

View File

@ -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 <liweiganga@uniontech.com> - 0.86-2
- fix compile fail
* Mon Jul 25 2022 loong_C <loong_c@yeah.net> - 0.86-1
- init package