diff --git a/feedparser-6.0.2.tar.gz b/feedparser-6.0.2.tar.gz deleted file mode 100644 index 1f04f5b..0000000 --- a/feedparser-6.0.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1b00a105425f492f3954fd346e5b524ca9cef3a4bbf95b8809470e9857aa1074 -size 284734 diff --git a/feedparser-6.0.5.tar.gz b/feedparser-6.0.5.tar.gz new file mode 100644 index 0000000..e2f63bf --- /dev/null +++ b/feedparser-6.0.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cae320004d904a12e33b1b10bd63766bc2823eec94e03b802fbb228d820838d9 +size 285347 diff --git a/numerical_return_status.patch b/numerical_return_status.patch deleted file mode 100644 index c4c0055..0000000 --- a/numerical_return_status.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- - feedparser/http.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- a/feedparser/http.py -+++ b/feedparser/http.py -@@ -203,7 +203,7 @@ def get(url, etag=None, modified=None, a - result['href'] = f.url.decode('utf-8', 'ignore') - else: - result['href'] = f.url -- result['status'] = getattr(f, 'status', 200) -+ result['status'] = getattr(f, 'status', None) or 200 - - # Stop processing if the server sent HTTP 304 Not Modified. - if getattr(f, 'code', 0) == 304: diff --git a/python-feedparser.changes b/python-feedparser.changes index 27c4875..dc5d848 100644 --- a/python-feedparser.changes +++ b/python-feedparser.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Mon Jun 14 16:04:31 UTC 2021 - Benoît Monin + +- update to version 6.0.5: + * Prevent a TypeError crash that may occur when including a + username and password in the feed URL. (#276) + +------------------------------------------------------------------- +Sun Jun 13 19:01:57 UTC 2021 - Benoît Monin + +- update to version 6.0.4: + * Prevent a UnicodeDecodeError crash that may occur when the + title element's type attribute exists but is empty. (#277) + * Prevent a UnicodeEncodeError crash that may occur if the URL + contains Unicode characters in the path. (#273) +- additional changes from version 6.0.3: + * Fix an issue with the HTTP request status on Python >= 3.9. +- drop numerical_return_status.patch: fixed upstream + ------------------------------------------------------------------- Thu Apr 29 14:39:29 UTC 2021 - Arun Persaud diff --git a/python-feedparser.spec b/python-feedparser.spec index 8640f1b..0e39827 100644 --- a/python-feedparser.spec +++ b/python-feedparser.spec @@ -19,16 +19,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-feedparser -Version: 6.0.2 +Version: 6.0.5 Release: 0 Summary: Universal Feed Parser Module for Python License: BSD-2-Clause Group: Development/Libraries/Python URL: https://github.com/kurtmckee/feedparser Source: https://files.pythonhosted.org/packages/source/f/feedparser/feedparser-%{version}.tar.gz -# PATCH-FIX-UPSTREAM numerical_return_status.patch gh#kurtmckee/feedparser#272/files mcepl@suse.com -# Maintain numeric result status code in Python>=3.9 -Patch0: numerical_return_status.patch BuildRequires: %{python_module chardet} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module sgmllib3k}