summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Macken <lmacken@redhat.com>2011-04-05 14:39:24 -0400
committerLuke Macken <lmacken@redhat.com>2011-04-05 14:39:24 -0400
commit52b330e297ebe2c716b5031bf7cf9dbd43c1aef3 (patch)
treecde86486bc81668b09196e0dd9f235b5d8f42a6b
parenta48319f4d5961a62dc5a124af47230e74c81a3fa (diff)
parentaf64a122924c4a6de5ab4f092d7e47ff737663cd (diff)
downloadpython-feedparser-52b330e297ebe2c716b5031bf7cf9dbd43c1aef3.zip
python-feedparser-52b330e297ebe2c716b5031bf7cf9dbd43c1aef3.tar.gz
python-feedparser-52b330e297ebe2c716b5031bf7cf9dbd43c1aef3.tar.xz
Update to 5.0.1
-rw-r--r--python-feedparser.spec28
-rw-r--r--sources2
2 files changed, 17 insertions, 13 deletions
diff --git a/python-feedparser.spec b/python-feedparser.spec
index 21d9220..89151c3 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,22 +23,22 @@ 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 {} ';'
%build
-CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
+CFLAGS="$RPM_OPT_FLAGS" %{__python} -c 'import setuptools; execfile("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
@@ -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