summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Macken <lmacken@redhat.com>2011-04-05 13:28:01 -0400
committerLuke Macken <lmacken@redhat.com>2011-04-05 13:28:01 -0400
commit2df9a44e9cbc49681914939d048f095416e8a8b6 (patch)
tree4723a792c55f56f14c0cade874ab3660ea77059f
parent5087462543b833bcb9e384ad9d3a16348780189d (diff)
downloadpython-feedparser-2df9a44e9cbc49681914939d048f095416e8a8b6.zip
python-feedparser-2df9a44e9cbc49681914939d048f095416e8a8b6.tar.gz
python-feedparser-2df9a44e9cbc49681914939d048f095416e8a8b6.tar.xz
* Tue Apr 05 2011 Luke Macken <lmacken@redhat.com> - 5.0.1-1
- Latest upstream release - Remove feedparser_utf8_decoding.patch - Remove democracynow_feedparser_fix.patch - Run the test suite
-rw-r--r--.gitignore1
-rw-r--r--democracynow_feedparser_fix.patch11
-rw-r--r--feedparser_utf8_decoding.patch11
-rw-r--r--python-feedparser.spec24
-rw-r--r--sources2
5 files changed, 15 insertions, 34 deletions
diff --git a/.gitignore b/.gitignore
index 53ed2e0..849e72d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
feedparser-4.1.zip
+/feedparser-5.0.1.tar.bz2
diff --git a/democracynow_feedparser_fix.patch b/democracynow_feedparser_fix.patch
deleted file mode 100644
index 58c710a..0000000
--- a/democracynow_feedparser_fix.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- 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/feedparser_utf8_decoding.patch b/feedparser_utf8_decoding.patch
deleted file mode 100644
index 44111b9..0000000
--- a/feedparser_utf8_decoding.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- /var/lib/python-support/python2.5/feedparser.py 2008-01-23 20:10:27.000000000 +0100
-+++ feedparser.py 2008-07-28 11:01:38.000000000 +0200
-@@ -1455,7 +1455,7 @@
- # thanks to Kevin Marks for this breathtaking hack to deal with (valid) high-bit attribute values in UTF-8 feeds
- for key, value in attrs:
- if type(value) != type(u''):
-- value = unicode(value, self.encoding)
-+ value = unicode(value, self.encoding, errors='replace')
- uattrs.append((unicode(key, self.encoding), value))
- strattrs = u''.join([u' %s="%s"' % (key, value) for key, value in uattrs]).encode(self.encoding)
- if tag in self.elements_no_end_tag:
diff --git a/python-feedparser.spec b/python-feedparser.spec
index baefeef..32230b1 100644
--- a/python-feedparser.spec
+++ b/python-feedparser.spec
@@ -1,16 +1,14 @@
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: python-feedparser
-Version: 4.1
-Release: 13%{?dist}
+Version: 5.0.1
+Release: 1%{?dist}
Summary: Parse RSS and Atom feeds in Python
Group: Development/Languages
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
+Source0: http://feedparser.googlecode.com/files/feedparser-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
@@ -25,9 +23,7 @@ modules, including Dublin Core and Apple's iTunes extensions.
%prep
-%setup -q -c
-%patch0 -p0 -b .utf8_decoding
-%patch1 -p0 -b .title_munging
+%setup -q -n feedparser-%{version}
find -type f -exec sed -i 's/\r//' {} ';'
find -type f -exec chmod 0644 {} ';'
@@ -39,9 +35,9 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
-cp -a docs html
-rm -f html/examples/.ht*
+%check
+%{__python} feedparser/feedparsertest.py
%clean
rm -rf $RPM_BUILD_ROOT
@@ -49,11 +45,17 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
-%doc LICENSE README html
+%doc LICENSE README
%{python_sitelib}/*
%changelog
+* Tue Apr 05 2011 Luke Macken <lmacken@redhat.com> - 5.0.1-1
+- Latest upstream release
+- Remove feedparser_utf8_decoding.patch
+- Remove democracynow_feedparser_fix.patch
+- Run the test suite
+
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
diff --git a/sources b/sources
index daee48a..e1e45d4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-7ab1140c1e29d4cd52ab20fa7b1f8640 feedparser-4.1.zip
+702835de74bd4a578524f311e62c2877 feedparser-5.0.1.tar.bz2