forked from pool/python-html5lib
47 lines
1.4 KiB
RPMSpec
47 lines
1.4 KiB
RPMSpec
|
# norootforbuild
|
||
|
|
||
|
Name: python-html5lib
|
||
|
Version: 0.11.1
|
||
|
Release: 1
|
||
|
Summary: HTML parser based on the WHAT-WG Web Applications
|
||
|
License: MIT
|
||
|
Group: Development/Libraries/Python
|
||
|
Source: html5lib-%{version}.tar.bz2
|
||
|
URL: http://code.google.com/p/html5lib
|
||
|
BuildRequires: python-devel, python-setuptools
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
%{py_requires}
|
||
|
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
|
||
|
BuildArch: noarch
|
||
|
%endif
|
||
|
|
||
|
|
||
|
%description
|
||
|
HTML parser designed to follow the WHATWG HTML5 specification. The parser is designed to handle all
|
||
|
flavours of HTML and parses invalid documents using well-defined error handling rules compatible
|
||
|
with the behaviour of major desktop web browsers.
|
||
|
Output is to a tree structure; the current release supports output to ElementTree (including
|
||
|
cElementTree and lxml.etree), minidom, and a custom simpletree format.
|
||
|
html5lib also includes a HTML sanitizer, "treewalkers" for converting various tree formats into
|
||
|
streams and filters and serializers to operate on those streams.
|
||
|
|
||
|
Author:
|
||
|
--------
|
||
|
James Graham <jg307@cam.ac.uk>
|
||
|
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n html5lib-%{version}
|
||
|
|
||
|
|
||
|
%build
|
||
|
%{__python} setup.py build
|
||
|
|
||
|
|
||
|
%install
|
||
|
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
|
||
|
|
||
|
|
||
|
%files -f INSTALLED_FILES
|
||
|
%defattr(-,root,root)
|