diff --git a/.gitignore b/.gitignore index 994b37b..c5f894d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1 @@ -feedparser-4.1.zip -/feedparser-5.0.1.tar.bz2 -/feedparser-5.1.tar.bz2 -/feedparser-5.1.2.tar.bz2 -/feedparser-5.1.3.tar.bz2 -/feedparser-5.2.0.post1.tar.bz2 +/feedparser-*.tar.bz2 diff --git a/python-feedparser.spec b/python-feedparser.spec index 20ea0e0..b341e02 100644 --- a/python-feedparser.spec +++ b/python-feedparser.spec @@ -14,19 +14,20 @@ %endif %global srcname feedparser -%global tag .post1 Name: python-feedparser -Version: 5.2.0 -Release: 6%{?dist} +Version: 5.2.1 +Release: 1%{?dist} Summary: Parse RSS and Atom feeds in Python Group: Development/Languages License: BSD URL: https://github.com/kurtmckee/feedparser -Source0: https://pypi.python.org/packages/source/f/%{srcname}/%{srcname}-%{version}%{tag}.tar.bz2 -# only for EPEL5 -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Source0: https://pypi.python.org/packages/source/f/%{srcname}/%{srcname}-%{version}.tar.bz2 + +# shows that for Python 3 the test-suite fails early with +# ImportError: No module named 'BaseHTTPServer' +Patch0: feedparser-5.1.3-tests-py3.patch BuildArch: noarch BuildRequires: python2-devel @@ -51,10 +52,7 @@ Requires: python-chardet ## TODO: python3-chardet BR and Req # fixes included in > 5.1.3 -# shows that for Python 3 the test-suite fails early with -# ImportError: No module named 'BaseHTTPServer' -Patch0: feedparser-5.1.3-tests-py3.patch - +%{?python_provide:%python_provide python2-feedparser} %description Universal Feed Parser is a Python module for downloading and parsing @@ -68,6 +66,8 @@ modules, including Dublin Core and Apple's iTunes extensions. Summary: Parse RSS and Atom feeds in Python BuildRequires: python3-devel BuildRequires: python3-setuptools +%{?python_provide:%python_provide python3-feedparser} + %description -n python3-%{srcname} Universal Feed Parser is a Python module for downloading and parsing syndicated feeds. It can handle RSS 0.90, Netscape RSS 0.91, @@ -119,10 +119,8 @@ popd %install -# only for EPEL5 -rm -rf %{buildroot} - %{__python2} setup.py install -O1 --skip-build --root %{buildroot} + %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py install --skip-build --root %{buildroot} @@ -141,19 +139,17 @@ popd %endif -# only for EPEL5 -%clean -rm -rf %{buildroot} - - %files -%defattr(-,root,root,-) -%doc LICENSE README.rst NEWS +%{!?_licensedir:%global license %%doc} +%license LICENSE +%doc README.rst NEWS %{python2_sitelib}/* %if 0%{?with_python3} %files -n python3-%{srcname} -%doc LICENSE README.rst NEWS +%{!?_licensedir:%global license %%doc} +%license LICENSE +%doc README.rst NEWS %{python3_sitelib}/* %endif @@ -165,6 +161,11 @@ rm -rf %{buildroot} %endif %changelog +* Sat Apr 8 2017 Peter Robinson 5.2.1-1 +- Upstream 5.2.1 +- Cleanup spec +- Use %%license + * Sat Feb 11 2017 Fedora Release Engineering - 5.2.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild diff --git a/sources b/sources index 4e1c931..f731851 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -9f54fe1e84412c16cdc5997d5b133a60 feedparser-5.2.0.post1.tar.bz2 +SHA512 (feedparser-5.2.1.tar.bz2) = f0ff50464dced40be46f7810791938a2a384edbdf71dcb58edd9342042a4e80aa2140b6f604c4cdbca8a8c70d0f6fdc5a0c1aa37994d2893f0bb0038633ac9b7