|
|
e3cdc83 |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
e3cdc83 |
|
|
|
e3cdc83 |
Name: python-feedparser
|
|
|
432139e |
Version: 4.1
|
|
|
f0b2fdb |
Release: 10%{?dist}
|
|
|
e3cdc83 |
Summary: Parse RSS and Atom feeds in Python
|
|
|
e3cdc83 |
|
|
|
e3cdc83 |
Group: Development/Languages
|
|
|
e1f1058 |
License: BSD
|
|
|
e3cdc83 |
URL: http://feedparser.org/
|
|
|
2a1b660 |
Source0: http://feedparser.googlecode.com/files/feedparser-%{version}.zip
|
|
|
b6c9d08 |
Patch0: feedparser_utf8_decoding.patch
|
|
|
f0b2fdb |
Patch1: democracynow_feedparser_fix.patch
|
|
|
e3cdc83 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
e3cdc83 |
|
|
|
e3cdc83 |
BuildArch: noarch
|
|
|
e3cdc83 |
BuildRequires: python-devel
|
|
|
e3cdc83 |
|
|
|
e3cdc83 |
%description
|
|
|
e3cdc83 |
Universal Feed Parser is a Python module for downloading and parsing
|
|
|
e3cdc83 |
syndicated feeds. It can handle RSS 0.90, Netscape RSS 0.91,
|
|
|
e3cdc83 |
Userland RSS 0.91, RSS 0.92, RSS 0.93, RSS 0.94, RSS 1.0, RSS 2.0,
|
|
|
e3cdc83 |
Atom 0.3, Atom 1.0, and CDF feeds. It also parses several popular extension
|
|
|
e3cdc83 |
modules, including Dublin Core and Apple's iTunes extensions.
|
|
|
e3cdc83 |
|
|
|
e3cdc83 |
|
|
|
e3cdc83 |
%prep
|
|
|
e3cdc83 |
%setup -q -c
|
|
|
b6c9d08 |
%patch0 -p0 -b .utf8_decoding
|
|
|
f0b2fdb |
%patch1 -p0 -b .title_munging
|
|
|
e5a9f8c |
find -type f -exec sed -i 's/\r//' {} ';'
|
|
|
e5a9f8c |
find -type f -exec chmod 0644 {} ';'
|
|
|
e3cdc83 |
|
|
|
e3cdc83 |
|
|
|
e3cdc83 |
%build
|
|
|
e3cdc83 |
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
|
|
e3cdc83 |
|
|
|
e3cdc83 |
|
|
|
e3cdc83 |
%install
|
|
|
e3cdc83 |
rm -rf $RPM_BUILD_ROOT
|
|
|
e3cdc83 |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
e5a9f8c |
cp -a docs html
|
|
|
e5a9f8c |
rm -f html/examples/.ht*
|
|
|
e5a9f8c |
|
|
|
e5a9f8c |
|
|
|
e3cdc83 |
%clean
|
|
|
e3cdc83 |
rm -rf $RPM_BUILD_ROOT
|
|
|
e3cdc83 |
|
|
|
e3cdc83 |
|
|
|
e3cdc83 |
%files
|
|
|
e3cdc83 |
%defattr(-,root,root,-)
|
|
|
e3cdc83 |
%doc LICENSE README html
|
|
|
e5a9f8c |
%{python_sitelib}/*
|
|
|
e3cdc83 |
|
|
|
e3cdc83 |
|
|
|
e3cdc83 |
%changelog
|
|
|
f0b2fdb |
* Fri Aug 07 2009 Konstantin Ryabitsev <icon@fedoraproject.org> - 4.1-10
|
|
|
f0b2fdb |
- Apply patch for title munging issue (#491373)
|
|
|
f0b2fdb |
|
|
|
5ea373f |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-9
|
|
|
5ea373f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
5ea373f |
|
|
|
2a1b660 |
* Wed Mar 04 2009 Konstantin Ryabitsev <icon@fedoraproject.org> - 4.1-8
|
|
|
2a1b660 |
- Fix source URL (moved to googlecode).
|
|
|
2a1b660 |
|
|
|
5b16125 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-7
|
|
|
5b16125 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
5b16125 |
|
|
|
5bfb3e0 |
* Sat Dec 27 2008 Konstantin Ryabitsev <icon@fedoraproject.org> - 4.1-6
|
|
|
b6c9d08 |
- Patch for a utf8 decoding issue (#477024)
|
|
|
d7eecaa |
|
|
|
5bfb3e0 |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 4.1-5
|
|
|
5bfb3e0 |
- Rebuild for Python 2.6
|
|
|
5bfb3e0 |
|
|
|
e1f1058 |
* Wed Sep 3 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 4.1-4
|
|
|
e1f1058 |
- fix license tag
|
|
|
e1f1058 |
|
|
|
e5a9f8c |
* Thu Jun 28 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 4.1-3
|
|
|
e5a9f8c |
- Ghostbusting (#205413).
|
|
|
e5a9f8c |
- Remove manual python-abi Requires.
|
|
|
e5a9f8c |
- Appease rpmlint.
|
|
|
e5a9f8c |
|
|
|
625ec6d |
* Sat Dec 23 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 4.1-2
|
|
|
625ec6d |
- Rebuild for new Python.
|
|
|
625ec6d |
|
|
|
432139e |
* Wed Jan 11 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 4.1-1
|
|
|
432139e |
- Version 4.1
|
|
|
432139e |
|
|
|
e3cdc83 |
* Sat Jan 07 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 4.0.2-2
|
|
|
e3cdc83 |
- Set sane permissions on doc files.
|
|
|
e3cdc83 |
|
|
|
e3cdc83 |
* Wed Jan 04 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 4.0.2-1
|
|
|
e3cdc83 |
- Initial build.
|