From 5e5da9f9d919d70aebf432d2f012f55f74903a9a26570eb6e7f84d4c7cecaa33 Mon Sep 17 00:00:00 2001 From: Alexandre Rogoski Date: Wed, 14 Oct 2009 17:04:50 +0000 Subject: [PATCH] - Initial package (0.11.1) for openSUSE. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-html5lib?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++++++++ .gitignore | 1 + html5lib-0.11.1.tar.bz2 | 3 +++ python-html5lib.changes | 4 ++++ python-html5lib.spec | 46 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 77 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 html5lib-0.11.1.tar.bz2 create mode 100644 python-html5lib.changes create mode 100644 python-html5lib.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/html5lib-0.11.1.tar.bz2 b/html5lib-0.11.1.tar.bz2 new file mode 100644 index 0000000..62af22b --- /dev/null +++ b/html5lib-0.11.1.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:819e12c9fd99e58541900f0dd8a96c2896658c0453c2b638c4a8a3ab6574e864 +size 129186 diff --git a/python-html5lib.changes b/python-html5lib.changes new file mode 100644 index 0000000..30be50f --- /dev/null +++ b/python-html5lib.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Oct 14 16:53:20 UTC 2009 - alexandre@exatati.com.br + +- Initial package (0.11.1) for openSUSE. diff --git a/python-html5lib.spec b/python-html5lib.spec new file mode 100644 index 0000000..f0e6a3a --- /dev/null +++ b/python-html5lib.spec @@ -0,0 +1,46 @@ +# 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 + + +%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)