fix compile fail
(cherry picked from commit 601373659d81f5acd0305f3a4e9c1ec018f9384f)
This commit is contained in:
parent
d8374fad59
commit
dd29eb2228
10
htmlcxx.spec
10
htmlcxx.spec
@ -1,6 +1,6 @@
|
|||||||
Name: htmlcxx
|
Name: htmlcxx
|
||||||
Version: 0.86
|
Version: 0.86
|
||||||
Release: 1
|
Release: 2
|
||||||
License: LGPLv2 and GPLv2+ and ASL 2.0 and MIT
|
License: LGPLv2 and GPLv2+ and ASL 2.0 and MIT
|
||||||
Summary: A simple non-validating CSS1 and HTML parser for C++
|
Summary: A simple non-validating CSS1 and HTML parser for C++
|
||||||
Url: http://htmlcxx.sourceforge.net/
|
Url: http://htmlcxx.sourceforge.net/
|
||||||
@ -25,7 +25,6 @@ developing applications that use htmlcxx.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%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/AUTHORS
|
||||||
# convert to utf8 due rpmlint warning W: file-not-utf8 /usr/share/doc/htmlcxx/README
|
# 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
|
iconv -f iso8859-1 -t utf-8 README > README.conv && mv -f README.conv README
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
CC="$CC -std=gnu89"
|
||||||
|
export CXXFLAGS="-std=c++14 $RPM_OPT_FLAGS"
|
||||||
|
%configure --disable-static --enable-shared
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -60,5 +63,8 @@ make check
|
|||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Jul 25 2022 loong_C <loong_c@yeah.net> - 0.86-1
|
||||||
- init package
|
- init package
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user