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
commit80e12634c0b98b2e8ebbe693dc7d987fb3a8a79b (patch)
treea9cc5690266c34cde0fbefa72909ddbcff2ddf82
parent2be879aa4b6e3ae5af2efa4a38ff98b217f1a357 (diff)
downloadpython-feedparser-python-feedparser-4_1-10_fc10.zip
python-feedparser-python-feedparser-4_1-10_fc10.tar.gz
python-feedparser-python-feedparser-4_1-10_fc10.tar.xz
Apply patch for title-munging issue (#491373)python-feedparser-4_1-10_fc10
-rw-r--r--democracynow_feedparser_fix.patch11
-rw-r--r--python-feedparser.spec23
2 files changed, 31 insertions, 3 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 f7b5dc0..21d9220 100644
--- a/python-feedparser.spec
+++ b/python-feedparser.spec
@@ -2,14 +2,15 @@
Name: python-feedparser
Version: 4.1
-Release: 5%{?dist}
+Release: 10%{?dist}
Summary: Parse RSS and Atom feeds in Python
Group: Development/Languages
License: BSD
URL: http://feedparser.org/
-Source0: http://download.sourceforge.net/feedparser/feedparser-%{version}.zip
+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,9 +54,24 @@ rm -rf $RPM_BUILD_ROOT
%changelog
-* Sat Dec 27 2008 Konstantin Ryabitsev <icon@fedoraproject.org> - 4.1-5
+* Fri Aug 07 2009 Konstantin Ryabitsev <icon@fedoraproject.org> - 4.1-10
+- Apply patch for title munging issue (#491373)
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-9
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Mar 04 2009 Konstantin Ryabitsev <icon@fedoraproject.org> - 4.1-8
+- Fix source URL (moved to googlecode).
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-7
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Sat Dec 27 2008 Konstantin Ryabitsev <icon@fedoraproject.org> - 4.1-6
- Patch for a utf8 decoding issue (#477024)
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 4.1-5
+- Rebuild for Python 2.6
+
* Wed Sep 3 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 4.1-4
- fix license tag