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 5952063..b74fa5a 100644 --- a/python-feedparser.spec +++ b/python-feedparser.spec @@ -2,7 +2,7 @@ Name: python-feedparser Version: 4.1 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Parse RSS and Atom feeds in Python Group: Development/Languages @@ -10,6 +10,7 @@ License: BSD URL: http://feedparser.org/ Source0: http://download.sourceforge.net/feedparser/feedparser-%{version}.zip Patch0: feedparser_utf8_decoding.patch +Patch1: democracynow_feedparser_fix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -28,6 +29,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 {} ';' @@ -54,6 +56,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Fri Aug 07 2009 Konstantin Ryabitsev - 4.1-5 +- Apply patch for title munging issue (#491373) + * Sat Dec 27 2008 Konstantin Ryabitsev - 4.1-4 - fix license tag - Patch for a utf8 decoding issue (#477024)