diff --git a/htmlcxx-0.86.tar.gz b/htmlcxx-0.86.tar.gz new file mode 100644 index 0000000..28afe1b Binary files /dev/null and b/htmlcxx-0.86.tar.gz differ diff --git a/htmlcxx.spec b/htmlcxx.spec new file mode 100644 index 0000000..627b201 --- /dev/null +++ b/htmlcxx.spec @@ -0,0 +1,64 @@ +Name: htmlcxx +Version: 0.86 +Release: 1 +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 +%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 +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 +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 +* Mon Jul 25 2022 loong_C - 0.86-1 +- init package