[packages/python3-feedparser] Up to 6.0.11
arekm
arekm at pld-linux.org
Fri May 16 19:45:47 CEST 2025
commit fb16316976ee46cfed558f53a8c06e501a172bec
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri May 16 19:28:31 2025 +0200
Up to 6.0.11
python3-feedparser.spec | 8 +++++---
re.patch | 11 +++++++++++
2 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/python3-feedparser.spec b/python3-feedparser.spec
index 48a4b98..7b542f6 100644
--- a/python3-feedparser.spec
+++ b/python3-feedparser.spec
@@ -6,12 +6,13 @@
Summary: Parse RSS and Atom feeds in Python
Summary(pl.UTF-8): Analiza źródeł RSS i Atom dla Pythona
Name: python3-%{module}
-Version: 6.0.10
-Release: 3
+Version: 6.0.11
+Release: 1
License: BSD
Group: Libraries/Python
Source0: https://github.com/kurtmckee/feedparser/archive/%{version}.tar.gz
-# Source0-md5: d69e59156dfe7b64842befdc1c621a2d
+# Source0-md5: bbb8814240ef30c930ad8ea8eeb8e80b
+Patch0: re.patch
URL: https://github.com/kurtmckee/feedparser
BuildRequires: python3-modules >= 1:3.6
BuildRequires: python3-setuptools
@@ -37,6 +38,7 @@ modułów rozszerzeń, w tym rozszerzenia Dublin Core oraz Apple iTunes.
%prep
%setup -q -n %{module}-%{version}
+%patch -P0 -p1
%build
%py3_build
diff --git a/re.patch b/re.patch
new file mode 100644
index 0000000..1aba9ee
--- /dev/null
+++ b/re.patch
@@ -0,0 +1,11 @@
+--- feedparser-6.0.11/feedparser/html.py~ 2023-12-10 16:52:24.000000000 +0100
++++ feedparser-6.0.11/feedparser/html.py 2025-05-16 19:28:04.564388932 +0200
+@@ -149,7 +149,7 @@ class _BaseHTMLProcessor(sgmllib.SGMLPar
+ :rtype: None
+ """
+
+- data = re.sub(r'<!((?!DOCTYPE|--|\[))', r'<!\1', data, re.IGNORECASE)
++ data = re.sub(r'<!((?!DOCTYPE|--|\[))', r'<!\1', data, flags=re.IGNORECASE)
+ data = re.sub(r'<([^<>\s]+?)\s*/>', self._shorttag_replace, data)
+ data = data.replace(''', "'")
+ data = data.replace('"', '"')
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-feedparser.git/commitdiff/fb16316976ee46cfed558f53a8c06e501a172bec
More information about the pld-cvs-commit
mailing list