!5 [sync] PR-4: Force C++14 as this code is not C++17 ready
From: @openeuler-sync-bot Reviewed-by: @leeffo Signed-off-by: @leeffo
This commit is contained in:
commit
797ec913a2
10
htmlcxx.spec
10
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 <liweiganga@uniontech.com> - 0.86-2
|
||||
- fix compile fail
|
||||
|
||||
* Mon Jul 25 2022 loong_C <loong_c@yeah.net> - 0.86-1
|
||||
- init package
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user