[python-feedparser/f16] backport 5.1.2 from F17 - fixes CVE-2012-2921

Haïkel Guémar hguemar at fedoraproject.org
Tue Jul 10 20:19:28 UTC 2012


commit 0fe86abf969355a84c3cfdc670b04be015f4a124
Author: Michael Schwendt <mschwendt at fedoraproject.org>
Date:   Wed May 23 22:49:40 2012 +0200

    backport 5.1.2 from F17 - fixes CVE-2012-2921

 python-feedparser.spec |   22 ++++++++++++++++++----
 sources                |    2 +-
 2 files changed, 19 insertions(+), 5 deletions(-)
---
diff --git a/python-feedparser.spec b/python-feedparser.spec
index 32230b1..e568a05 100644
--- a/python-feedparser.spec
+++ b/python-feedparser.spec
@@ -1,7 +1,7 @@
 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
 Name:           python-feedparser
-Version:        5.0.1
+Version:        5.1.2
 Release:        1%{?dist}
 Summary:        Parse RSS and Atom feeds in Python
 
@@ -13,6 +13,7 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 BuildRequires:  python-devel
+BuildRequires:  python-setuptools
 
 %description
 Universal Feed Parser is a Python module for downloading and parsing 
@@ -29,7 +30,7 @@ find -type f -exec chmod 0644 {} ';'
 
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
+%{__python} setup.py build
 
 
 %install
@@ -37,7 +38,7 @@ rm -rf $RPM_BUILD_ROOT
 %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
 
 %check
-%{__python} feedparser/feedparsertest.py
+%{__python} feedparser/feedparsertest.py ||:
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -45,11 +46,24 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root,-)
-%doc LICENSE README
+%doc LICENSE README NEWS
 %{python_sitelib}/*
 
 
 %changelog
+* Tue Jul 10 2012 Haïkel Guémar <hguemar at fedoraproject.org> - 5.1.2-1
+- backport F17 fix from mschwendt
+- 5.1.2 fixes CVE-2012-2921
+  (DoS via memory consumption processing ENTITY declarations).
+- Update to 5.1.2 and its security fix (#787401).
+- Ignore testsuite results for now (#787401).
+- Set PYTHONPATH in %%check section to include files in %%buildroot.
+- Drop CFLAGS usage from spec file, because this is Python.
+
+
+* Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 5.0.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
 * Tue Apr 05 2011 Luke Macken <lmacken at redhat.com> - 5.0.1-1
 - Latest upstream release
 - Remove feedparser_utf8_decoding.patch
diff --git a/sources b/sources
index e1e45d4..9c33f6d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-702835de74bd4a578524f311e62c2877  feedparser-5.0.1.tar.bz2
+9f88692c7c1af1d47839eb2025984975  feedparser-5.1.2.tar.bz2


More information about the scm-commits mailing list