代码拉取完成,页面将自动刷新
Name: htmlcxx
Version: 0.86
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/
Source0: http://sourceforge.net/projects/htmlcxx/files/htmlcxx/%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: chrpath
%description
htmlcxx is a simple non-validating html parser library for C++.
It allows to fully dump the original html document, character by character,
from the parse tree. It also has an intuitive tree traversal API.
%package devel
Summary: Headers and Static Library for htmlcxx
BuildRequires: pkgconfig
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The htmlcxx-devel package contains libraries and header files for
developing applications that use htmlcxx.
%prep
%setup -q
# 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
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
make install DESTDIR=%{buildroot}
chrpath --delete %{buildroot}%{_bindir}/htmlcxx
# remove all '*.la' files
find %{buildroot} -name '*.la' -exec rm -f {} ';'
%check
make check
%ldconfig_scriptlets -n %{name}
%files
%doc AUTHORS ChangeLog README
%license COPYING LGPL_V2 ASF-2.0
%{_bindir}/*
%{_datadir}/*
%{_libdir}/*.so.*
%files devel
%{_includedir}/*
%{_libdir}/*.so
%{_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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。