summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <icon@fedoraproject.org>2009-08-07 12:53:59 +0000
committerKonstantin Ryabitsev <icon@fedoraproject.org>2009-08-07 12:53:59 +0000
commitc2b18cddfbc244953f89eb0da7c9073a3a46917f (patch)
tree09f7492b0fa109f87413ac37505c596e7837ecda
parent75398cf45335f4b2a95b959bdcf0aec9a7d4f19c (diff)
downloadpython-feedparser-c2b18cddfbc244953f89eb0da7c9073a3a46917f.zip
python-feedparser-c2b18cddfbc244953f89eb0da7c9073a3a46917f.tar.gz
python-feedparser-c2b18cddfbc244953f89eb0da7c9073a3a46917f.tar.xz
Apply patch for title-munging issue (#491373)python-feedparser-4_1-10_el5
-rw-r--r--democracynow_feedparser_fix.patch11
-rw-r--r--python-feedparser.spec7
2 files changed, 17 insertions, 1 deletions
diff --git a/democracynow_feedparser_fix.patch b/democracynow_feedparser_fix.patch
new file mode 100644
index 0000000..58c710a
--- /dev/null
+++ b/democracynow_feedparser_fix.patch
@@ -0,0 +1,11 @@
+--- feedparser.py.orig 2007-12-28 00:59:15.000000000 +0100
++++ feedparser.py 2007-12-28 00:59:46.000000000 +0100
+@@ -563,7 +563,7 @@
+
+ def mapContentType(self, contentType):
+ contentType = contentType.lower()
+- if contentType == 'text':
++ if contentType == 'text' or contentType == 'plain':
+ contentType = 'text/plain'
+ elif contentType == 'html':
+ contentType = 'text/html'
diff --git a/python-feedparser.spec b/python-feedparser.spec
index 51424a8..98eae4e 100644
--- a/python-feedparser.spec
+++ b/python-feedparser.spec
@@ -2,7 +2,7 @@
Name: python-feedparser
Version: 4.1
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: Parse RSS and Atom feeds in Python
Group: Development/Languages
@@ -10,6 +10,7 @@ License: BSD
URL: http://feedparser.org/
Source0: http://feedparser.googlecode.com/files/feedparser-%{version}.zip
Patch0: feedparser_utf8_decoding.patch
+Patch1: democracynow_feedparser_fix.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
@@ -26,6 +27,7 @@ modules, including Dublin Core and Apple's iTunes extensions.
%prep
%setup -q -c
%patch0 -p0 -b .utf8_decoding
+%patch1 -p0 -b .title_munging
find -type f -exec sed -i 's/\r//' {} ';'
find -type f -exec chmod 0644 {} ';'
@@ -52,6 +54,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Fri Aug 07 2009 Konstantin Ryabitsev <icon@fedoraproject.org> - 4.1-10
+- Apply patch for title munging issue (#491373)
+
* Wed Jun 03 2009 Luke Macken <lmacken@redhat.com> - 4.1-9
- Use setuptools to generate egg-info