2009-10-14 19:04:50 +02:00
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: python-html5lib
|
2010-01-18 01:14:47 +01:00
|
|
|
Version: 0.90
|
2009-10-14 19:04:50 +02:00
|
|
|
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}
|
2010-01-18 01:14:47 +01:00
|
|
|
BuildArch: noarch
|
2009-10-14 19:04:50 +02:00
|
|
|
%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)
|