d311da7
%global pypi_name feedparser
e3cdc83
e3cdc83
Name:           python-feedparser
d311da7
Version:        6.0.2
d311da7
Release:        1%{?dist}
e3cdc83
Summary:        Parse RSS and Atom feeds in Python
e3cdc83
e1f1058
License:        BSD
Haikel Guemar 5c9f848
URL:            https://github.com/kurtmckee/feedparser
d311da7
Source0:        %{pypi_source}
2061413
e3cdc83
BuildArch:      noarch
e3cdc83
5534d08
%description
5534d08
Universal Feed Parser is a Python module for downloading and parsing
5534d08
syndicated feeds. It can handle RSS 0.90, Netscape RSS 0.91,
5534d08
Userland RSS 0.91, RSS 0.92, RSS 0.93, RSS 0.94, RSS 1.0, RSS 2.0,
5534d08
Atom 0.3, Atom 1.0, and CDF feeds. It also parses several popular extension
5534d08
modules, including Dublin Core and Apple's iTunes extensions.
5534d08
d311da7
%package -n python3-%{pypi_name}
daadaf2
Summary:        Parse RSS and Atom feeds in Python
daadaf2
BuildRequires:  python3-devel
daadaf2
BuildRequires:  python3-setuptools
d311da7
BuildRequires:  python3-sgmllib3k
feab52c
f860bda
## TODO: Decide on these, also with regard to explicit "Requires".
747a33b
## Optional imports at run-time and influence the test-suite, too,
747a33b
## and causes additional tests to fail.
9b3cec8
#
daadaf2
#BuildRequires:  python3-beautifulsoup
9b3cec8
#  usage removed in > 5.1.3
9b3cec8
#
f860bda
## the preferred XML parser
daadaf2
#BuildRequires:  python3-libxml2
f860bda
feab52c
## TODO: python3-chardet BR and Req
9b3cec8
# fixes included in > 5.1.3
feab52c
b7ecee7
%{?python_provide:%python_provide python3-feedparser}
b7ecee7
d311da7
%description -n python3-%{pypi_name}
f5dab1f
Universal Feed Parser is a Python module for downloading and parsing
f5dab1f
syndicated feeds. It can handle RSS 0.90, Netscape RSS 0.91,
f5dab1f
Userland RSS 0.91, RSS 0.92, RSS 0.93, RSS 0.94, RSS 1.0, RSS 2.0,
f5dab1f
Atom 0.3, Atom 1.0, and CDF feeds. It also parses several popular extension
4d5a16e
modules, including Dublin Core and Apple's iTunes extensions.
4d5a16e
daadaf2
47f107a
%package doc
f5dab1f
BuildRequires: python3-sphinx
47f107a
BuildArch: noarch
47f107a
Summary: Documentation for the Python feedparser
47f107a
47f107a
%description doc
f5dab1f
This documentation describes the behavior of Universal Feed Parser %{version}.
47f107a
47f107a
The documentation is also included in source form (Sphinx ReST).
47f107a
e3cdc83
e3cdc83
%prep
d311da7
%autosetup -p1 -n %{pypi_name}-%{version}
e3cdc83
747a33b
find -type f -exec sed -i 's/\r//' {} ';'
747a33b
find -type f -exec chmod 0644 {} ';'
747a33b
e3cdc83
e3cdc83
%build
daadaf2
%py3_build
47f107a
47f107a
# build documentation
47f107a
rm -rf __tmp_docs ; mkdir __tmp_docs
47f107a
sphinx-build -b html -d __tmp_docs/ docs/ __tmp_docs/html/
e3cdc83
e3cdc83
e3cdc83
%install
daadaf2
%py3_install
4d5a16e
4d5a16e
864858f
%check
d311da7
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} tests/runtests.py || :
3b2023c
e3cdc83
d311da7
%files -n python3-%{pypi_name}
b7ecee7
%license LICENSE
b7ecee7
%doc README.rst NEWS
d311da7
%{python3_sitelib}/%{pypi_name}
d311da7
%{python3_sitelib}/%{pypi_name}-*.egg-info/
e3cdc83
47f107a
%files doc
47f107a
%doc LICENSE __tmp_docs/html/
47f107a
# the original Sphinx ReST tree
47f107a
%doc docs
daadaf2
747a33b
e3cdc83
%changelog
d311da7
* Thu Dec 31 2020 Kevin Fenzi <kevin@scrye.com> - 6.0.2-1
d311da7
- Update to 6.0.3. Upstream is python3 only now.
d311da7
- re-enable tests, since they now all pass.
d311da7
9feae39
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-17
9feae39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9feae39
454a7ef
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 5.2.1-16
454a7ef
- Rebuilt for Python 3.9
454a7ef
2061413
* Fri May 15 2020 Adam Williamson <awilliam@redhat.com> - 5.2.1-15
2061413
- Backport PR #206 to fix with Python 3.9 (Karthikeyan Singaravelan)
2061413
5913dca
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-14
5913dca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5913dca
daadaf2
* Thu Oct 24 2019 Miro Hrončok <mhroncok@redhat.com> - 5.2.1-13
daadaf2
- Subpackage python2-feedparser has been removed
daadaf2
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
daadaf2
0b6434d
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 5.2.1-12
0b6434d
- Rebuilt for Python 3.8.0rc1 (#1748018)
0b6434d
7dc1c42
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 5.2.1-11
7dc1c42
- Rebuilt for Python 3.8
7dc1c42
a4bc1f3
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-10
a4bc1f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a4bc1f3
f5dab1f
* Tue Apr 30 2019 Matěj Cepl <mcepl@cepl.eu> - 5.2.1-9
f5dab1f
- Use python3-Sphinx instead of the Python2 version. It really doesn't matter
f5dab1f
  in the end.
f5dab1f
dd02ab5
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-8
dd02ab5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
dd02ab5
749abc7
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-7
749abc7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
749abc7
20b21f1
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 5.2.1-6
20b21f1
- Rebuilt for Python 3.7
20b21f1
30977eb
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 5.2.1-5
30977eb
- Update Python 2 dependency declarations to new packaging standards
30977eb
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
30977eb
fc5431f
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-4
fc5431f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
fc5431f
5534d08
* Tue Oct 17 2017 Petr Viktorin <pviktori@redhat.com> - 5.2.1-3
5534d08
- Python 2 binary package renamed to python2-feedparser
5534d08
193cb3c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-2
193cb3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
193cb3c
b7ecee7
* Sat Apr  8 2017 Peter Robinson <pbrobinson@fedoraproject.org> 5.2.1-1
b7ecee7
- Upstream 5.2.1
b7ecee7
- Cleanup spec
b7ecee7
- Use %%license
b7ecee7
6b1d583
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-6
6b1d583
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
6b1d583
92eba28
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 5.2.0-5
92eba28
- Rebuild for Python 3.6
92eba28
945c3c4
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.0-4
945c3c4
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
945c3c4
6bc4725
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-3
6bc4725
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6bc4725
840fe66
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.0-2
840fe66
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
840fe66
Haikel Guemar 5c9f848
* Mon Jun 29 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 5.2.0-1
Haikel Guemar 5c9f848
- Upstream 5.2.0
Haikel Guemar 5c9f848
- Cleanup spec
Haikel Guemar 5c9f848
a005989
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.3-8
a005989
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a005989
0a8b979
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.3-7
0a8b979
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0a8b979
4f72a50
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 5.1.3-6
4f72a50
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
4f72a50
72dfec3
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.3-5
72dfec3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
72dfec3
72f5de6
* Mon Jun 10 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 5.1.3-4
72f5de6
- Conditionalize the -doc package, because python-sphinx is not new
72f5de6
  enough for EL6.
72f5de6
47f107a
* Sun May 26 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 5.1.3-3
47f107a
- BR python-sphinx and build pregenerated HTML documentation to be
47f107a
  included in a python-feedparser-doc package together with the sources
47f107a
  for the documentation
47f107a
feab52c
* Sat Mar  9 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 5.1.3-2
feab52c
- Add BuildRequires/Requires python-chardet because if it's installed
feab52c
  as a dependency of other Python module packages, it would be imported
feab52c
  and used anyway, and it doesn't make any tests fail.
feab52c
747a33b
* Sat Mar  9 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 5.1.3-1
747a33b
- Update to 5.1.3 (50k diff).
747a33b
- Patch test-suite minimally for python3 to show that it fails early.
747a33b
- Fix file permissions and line delimiters at end of %%prep section.
747a33b
- Fix python3 sitelib path in %%check section.
747a33b
a77879b
* Fri Mar  8 2013 Michael Schwendt <mschwendt@fedoraproject.org>
a77879b
- Update URL to new location at Google code (#880138).
a77879b
0180d26
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.2-6
0180d26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0180d26
9af66d9
* Tue Jan 22 2013 Haïkel Guémar <hguemar@fedoraproject.org> - 5.1.2-5
9af66d9
- remove rhel logic from with_python3 conditional (RHBZ #902896)
9af66d9
a6b8ca2
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 5.1.2-4
a6b8ca2
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
a6b8ca2
0b7c220
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.2-3
0b7c220
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0b7c220
738184a
* Wed May 23 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 5.1.2-2
738184a
- Also package NEWS files as documentation.
738184a
- 5.1.2 fixes CVE-2012-2921
738184a
  (DoS via memory consumption processing ENTITY declarations).
738184a
3b2023c
* Tue May 22 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 5.1.2-1
3b2023c
- Update to 5.1.2 and its security fix (#787401).
3b2023c
- Ignore testsuite results for now (#787401).
3b2023c
- Set PYTHONPATH in %%check section to include files in %%buildroot.
3b2023c
- Drop CFLAGS usage from spec file, because this is Python.
3b2023c
4d5a16e
* Sat Feb  4 2012 Haïkel Guémar <hguemar@fedoraproject.org> - 5.1-1
4d5a16e
- upstream 5.1 (#787401)
4d5a16e
- spec cleanup
4d5a16e
- tests disabled
4d5a16e
- python3 support
4d5a16e
b7ecdd4
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.1-2
b7ecdd4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b7ecdd4
Luke Macken 2df9a44
* Tue Apr 05 2011 Luke Macken <lmacken@redhat.com> - 5.0.1-1
Luke Macken 2df9a44
- Latest upstream release
Luke Macken 2df9a44
- Remove feedparser_utf8_decoding.patch
Luke Macken 2df9a44
- Remove democracynow_feedparser_fix.patch
Luke Macken 2df9a44
- Run the test suite
Luke Macken 2df9a44
5087462
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-13
5087462
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5087462
94dd109
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 4.1-12
94dd109
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
94dd109
9b8ad1e
* Mon Dec 14 2009 Haïkel Guémar <karlthered@gmail.com> - 4.1-11
9b8ad1e
- rebuild for Fedora 13
9b8ad1e
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.