summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Macken <lmacken@redhat.com>2011-04-05 14:34:47 -0400
committerLuke Macken <lmacken@redhat.com>2011-04-05 14:34:47 -0400
commit9236d2e0d4314d46463837dde0fa75f7322c5f54 (patch)
tree058912456bf1adcda95b31c417c896b7d524f15f
parent1f739748a57fec31ca78a58ff9deab935d0c7bd9 (diff)
downloadpython-feedparser-9236d2e0d4314d46463837dde0fa75f7322c5f54.zip
python-feedparser-9236d2e0d4314d46463837dde0fa75f7322c5f54.tar.gz
python-feedparser-9236d2e0d4314d46463837dde0fa75f7322c5f54.tar.xz
- Latest upstream release
- Remove feedparser_utf8_decoding.patch - Remove democracynow_feedparser_fix.patch - Run the test suite
-rw-r--r--.gitignore1
-rw-r--r--python-feedparser.spec26
-rw-r--r--sources2
3 files changed, 17 insertions, 12 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/python-feedparser.spec b/python-feedparser.spec
index 98eae4e..8986dd6 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: 10%{?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,8 +35,10 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python} -c 'import setuptools; execfile("setup.py")'
%install
rm -rf $RPM_BUILD_ROOT
%{__python} -c 'import setuptools; execfile("setup.py")' install --skip-build --root $RPM_BUILD_ROOT
-cp -a docs html
-rm -f html/examples/.ht*
+
+
+%check
+%{__python} feedparser/feedparsertest.py
%clean
@@ -49,11 +47,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
+
* Fri Aug 07 2009 Konstantin Ryabitsev <icon@fedoraproject.org> - 4.1-10
- Apply patch for title munging issue (#491373)
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