2012-02-11 13:45:15 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-html5lib
|
|
|
|
#
|
2015-05-07 13:58:59 +02:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-02-11 13:45:15 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2012-03-29 11:54:13 +02:00
|
|
|
|
2012-02-11 13:45:15 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2014-06-02 11:05:25 +02:00
|
|
|
|
2009-10-14 19:04:50 +02:00
|
|
|
Name: python-html5lib
|
2015-05-07 13:58:59 +02:00
|
|
|
Version: 0.99999
|
2012-02-11 13:45:15 +01:00
|
|
|
Release: 0
|
2012-03-29 11:54:13 +02:00
|
|
|
Summary: HTML parser based on the WHAT-WG Web Applications 1
|
2014-06-02 11:05:25 +02:00
|
|
|
License: MIT
|
2012-02-11 13:45:15 +01:00
|
|
|
Group: Development/Languages/Python
|
2015-05-07 13:58:59 +02:00
|
|
|
Url: https://github.com/html5lib/html5lib-python
|
2012-03-29 11:54:13 +02:00
|
|
|
Source: http://pypi.python.org/packages/source/h/html5lib/html5lib-%{version}.tar.gz
|
2013-10-22 15:57:29 +02:00
|
|
|
BuildRequires: python-Genshi
|
2014-06-02 11:05:25 +02:00
|
|
|
BuildRequires: python-devel
|
2013-10-22 15:57:29 +02:00
|
|
|
BuildRequires: python-lxml
|
2014-06-02 11:05:25 +02:00
|
|
|
BuildRequires: python-nose
|
2013-10-22 15:57:29 +02:00
|
|
|
BuildRequires: python-setuptools
|
|
|
|
BuildRequires: python-six
|
|
|
|
Requires: python-six
|
|
|
|
Recommends: python-Genshi
|
|
|
|
Recommends: python-lxml
|
2012-03-29 11:54:13 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-06-02 11:05:25 +02:00
|
|
|
|
2012-03-29 11:54:13 +02:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%else
|
2010-01-18 01:14:47 +01:00
|
|
|
BuildArch: noarch
|
2009-10-14 19:04:50 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
2012-03-29 11:54:13 +02:00
|
|
|
HTML parser designed to follow the HTML5
|
|
|
|
specification. The parser is designed to handle all flavours of HTML and
|
2012-02-11 13:45:15 +01:00
|
|
|
parses invalid documents using well-defined error handling rules compatible
|
2009-10-14 19:04:50 +02:00
|
|
|
with the behaviour of major desktop web browsers.
|
|
|
|
|
2012-02-11 13:45:15 +01:00
|
|
|
Output is to a tree structure; the current release supports output to
|
|
|
|
DOM, ElementTree, lxml and BeautifulSoup tree formats as well as a
|
|
|
|
simple custom format
|
2009-10-14 19:04:50 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n html5lib-%{version}
|
|
|
|
|
|
|
|
%build
|
2012-02-11 13:45:15 +01:00
|
|
|
python setup.py build
|
2009-10-14 19:04:50 +02:00
|
|
|
|
|
|
|
%install
|
2012-02-11 13:45:15 +01:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2012-03-29 11:54:13 +02:00
|
|
|
|
2014-06-02 11:05:25 +02:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} > 1110
|
|
|
|
%check
|
|
|
|
nosetests
|
|
|
|
%endif
|
2009-10-14 19:04:50 +02:00
|
|
|
|
2012-02-11 13:45:15 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2013-10-22 15:57:29 +02:00
|
|
|
%doc CHANGES.rst LICENSE README.rst
|
|
|
|
%{python_sitelib}/html5lib/
|
|
|
|
%{python_sitelib}/html5lib-%{version}-py*.egg-info
|
2009-10-14 19:04:50 +02:00
|
|
|
|
2012-02-11 13:45:15 +01:00
|
|
|
%changelog
|