65 lines
1.8 KiB
RPMSpec
65 lines
1.8 KiB
RPMSpec
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 <loong_c@yeah.net> - 0.86-1
|
|
- init package
|