commit python-html5-parser for openSUSE:Leap:15.2

2020-04-14 Thread root
Hello community,

here is the log from the commit of package python-html5-parser for 
openSUSE:Leap:15.2 checked in at 2020-04-14 14:22:31

Comparing /work/SRC/openSUSE:Leap:15.2/python-html5-parser (Old)
 and  /work/SRC/openSUSE:Leap:15.2/.python-html5-parser.new.3248 (New)


Package is "python-html5-parser"

Tue Apr 14 14:22:31 2020 rev:13 rq:793653 version:0.4.9

Changes:

--- 
/work/SRC/openSUSE:Leap:15.2/python-html5-parser/python-html5-parser.changes
2020-03-09 18:06:18.376845535 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.python-html5-parser.new.3248/python-html5-parser.changes
  2020-04-14 14:24:15.945421581 +0200
@@ -1,0 +2,7 @@
+Thu Apr  9 11:12:17 UTC 2020 - Marketa Calabkova 
+
+- Update to 0.4.9
+  * Fix an error parsing XHTML where the xlink namespace is defined on 
+the root node but not on a node where the default namespace is redefined
+
+---

Old:

  python-html5-parser-0.4.8.tar.gz

New:

  python-html5-parser-0.4.9.tar.gz



Other differences:
--
++ python-html5-parser.spec ++
--- /var/tmp/diff_new_pack.nrNgBb/_old  2020-04-14 14:24:16.213421782 +0200
+++ /var/tmp/diff_new_pack.nrNgBb/_new  2020-04-14 14:24:16.213421782 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-html5-parser
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-html5-parser
-Version:0.4.8
+Version:0.4.9
 Release:0
 Summary:C based HTML 5 parsing for Python
 License:Apache-2.0
@@ -48,6 +48,9 @@
 %install
 %python_install
 
+%check
+%python_exec setup.py test
+
 %files %{python_files}
 %license LICENSE
 %doc README.rst

++ python-html5-parser-0.4.8.tar.gz -> python-html5-parser-0.4.9.tar.gz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/html5-parser-0.4.8/src/as-libxml.c 
new/html5-parser-0.4.9/src/as-libxml.c
--- old/html5-parser-0.4.8/src/as-libxml.c  2019-07-25 08:02:44.0 
+0200
+++ new/html5-parser-0.4.9/src/as-libxml.c  2019-11-03 04:13:38.0 
+0100
@@ -50,14 +50,25 @@
 static inline xmlNsPtr
 ensure_xml_ns(xmlDocPtr doc, ParseData *pd, xmlNodePtr node) {
 // By default libxml2 docs do not have the xml: namespace defined.
-xmlNodePtr root = pd->root ? pd->root : node;
 if (UNLIKELY(!pd->xml)) {
+xmlNodePtr root = pd->root ? pd->root : node;
 pd->xml = xmlSearchNs(doc, root, BAD_CAST "xml");
 }
 return pd->xml;
 }
 
 static inline xmlNsPtr
+ensure_xlink_ns(xmlDocPtr doc, ParseData *pd, xmlNodePtr node) {
+if (UNLIKELY(!pd->xlink)) {
+xmlNodePtr root = pd->root ? pd->root : node;
+pd->xlink = xmlSearchNs(doc, root, BAD_CAST "xlink");
+if (UNLIKELY(!pd->xlink)) pd->xlink = xmlNewNs(root, BAD_CAST 
"http://www.w3.org/1999/xlink;, BAD_CAST "xlink");
+}
+return pd->xlink;
+}
+
+
+static inline xmlNsPtr
 find_namespace_by_prefix(xmlDocPtr doc, xmlNodePtr node, xmlNodePtr 
xml_parent, const char* prefix) {
 xmlNsPtr ans = xmlSearchNs(doc, node, BAD_CAST prefix);
 if (ans) return ans;
@@ -75,7 +86,6 @@
 char buf[50] = {0};
 ParseData *pd = (ParseData*)doc->_private;
 xmlNsPtr ns;
-xmlNodePtr root;
 int added_lang = 0;
 
 for (unsigned int i = 0; i < elem->attributes.length; ++i) {
@@ -85,12 +95,8 @@
 ns = NULL;
 switch (attr->attr_namespace) {
 case GUMBO_ATTR_NAMESPACE_XLINK:
-root = pd->root ? pd->root : node;
-if (UNLIKELY(!pd->xlink)) {
-pd->xlink = xmlNewNs(root, BAD_CAST 
"http://www.w3.org/1999/xlink;, BAD_CAST "xlink");
-if(UNLIKELY(!pd->xlink)) return false;
-}
-ns = pd->xlink;
+ns = ensure_xlink_ns(doc, pd, node);
+if (UNLIKELY(!ns)) return false;
 break;
 case GUMBO_ATTR_NAMESPACE_XML:
 ns = ensure_xml_ns(doc, pd, node);
@@ -105,11 +111,7 @@
 break;
 case GUMBO_ATTR_NAMESPACE_XMLNS:
 if (strncmp(aname, "xlink", 5) == 0) {
-root = pd->root ? pd->root : node;
-if (UNLIKELY(!pd->xlink)) {
-pd->xlink = xmlNewNs(root, BAD_CAST 
"http://www.w3.org/1999/xlink;, BAD_CAST "xlink");
-if(UNLIKELY(!pd->xlink)) return false;
- 

commit python-html5-parser for openSUSE:Leap:15.2

2020-03-09 Thread root
Hello community,

here is the log from the commit of package python-html5-parser for 
openSUSE:Leap:15.2 checked in at 2020-03-09 18:06:17

Comparing /work/SRC/openSUSE:Leap:15.2/python-html5-parser (Old)
 and  /work/SRC/openSUSE:Leap:15.2/.python-html5-parser.new.26092 (New)


Package is "python-html5-parser"

Mon Mar  9 18:06:17 2020 rev:12 rq:776668 version:0.4.8

Changes:

--- 
/work/SRC/openSUSE:Leap:15.2/python-html5-parser/python-html5-parser.changes
2020-01-15 15:49:15.587454027 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.python-html5-parser.new.26092/python-html5-parser.changes
 2020-03-09 18:06:18.376845535 +0100
@@ -1,0 +2,24 @@
+Wed Sep 11 15:01:52 UTC 2019 - Tomáš Chvátal 
+
+- Update to 0.4.8:
+  No changelog from upstream.
+  See instead here:
+  
https://github.com/kovidgoyal/html5-parser/compare/v0.4.7...v0.4.8?diff=unified=v0.4.8
+
+---
+Mon Jul  1 06:29:09 UTC 2019 - ec...@opensuse.org
+
+- update to 0.4.7
+  No changelog from upstream.
+  See instead here:
+  
https://github.com/kovidgoyal/html5-parser/compare/v0.4.6...v0.4.7?diff=unified=v0.4.7
+
+---
+Wed May 29 14:38:09 UTC 2019 - ec...@opensuse.org
+
+- update to 0.4.6
+  No changelog from upstream.
+  See instead here:
+  
https://github.com/kovidgoyal/html5-parser/compare/v0.4.5...v0.4.6?diff=unified=v0.4.6
+
+---

Old:

  v0.4.5.tar.gz

New:

  python-html5-parser-0.4.8.tar.gz



Other differences:
--
++ python-html5-parser.spec ++
--- /var/tmp/diff_new_pack.o8riE9/_old  2020-03-09 18:06:18.788845740 +0100
+++ /var/tmp/diff_new_pack.o8riE9/_new  2020-03-09 18:06:18.796845745 +0100
@@ -17,15 +17,14 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-
 Name:   python-html5-parser
-Version:0.4.5
+Version:0.4.8
 Release:0
 Summary:C based HTML 5 parsing for Python
 License:Apache-2.0
 Group:  Development/Languages/Python
-Url:https://github.com/kovidgoyal/html5-parser
-Source: 
https://github.com/kovidgoyal/html5-parser/archive/v%{version}.tar.gz
+URL:https://github.com/kovidgoyal/html5-parser
+Source: 
https://github.com/kovidgoyal/html5-parser/archive/v%{version}/%{name}-%{version}.tar.gz
 BuildRequires:  %{python_module beautifulsoup4}
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module lxml >= 3.8.0}
@@ -34,8 +33,6 @@
 BuildRequires:  pkgconfig
 BuildRequires:  python-rpm-macros
 BuildRequires:  pkgconfig(libxml-2.0)
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-
 %python_subpackages
 
 %description
@@ -52,8 +49,8 @@
 %python_install
 
 %files %{python_files}
-%defattr(-,root,root,-) 
-%doc LICENSE README.rst
+%license LICENSE
+%doc README.rst
 %{python_sitearch}/html5_parser/
 %{python_sitearch}/html5_parser-%{version}-py%{python_version}.egg-info