init package
This commit is contained in:
parent
6482be6431
commit
738f1d7b77
BIN
htmlcxx-0.86.tar.gz
Normal file
BIN
htmlcxx-0.86.tar.gz
Normal file
Binary file not shown.
64
htmlcxx.spec
Normal file
64
htmlcxx.spec
Normal file
@ -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 <loong_c@yeah.net> - 0.86-1
|
||||||
|
- init package
|
||||||
Loading…
x
Reference in New Issue
Block a user