17
0

Accepting request 491321 from home:TheBlackCat:branches:devel:languages:python

- Update to version 5.2.1
- Implement single-spec version.
- Fix source URL.

OBS-URL: https://build.opensuse.org/request/show/491321
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-feedparser?expand=0&rev=35
This commit is contained in:
Todd R
2017-05-01 15:13:51 +00:00
committed by Git OBS Bridge
parent e78dad53cb
commit 8d26e04811
4 changed files with 40 additions and 24 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:605a4bff8ef61c1149c3a014ad6ec74ac58ddd7d4c5cb18a00f7f77311c37100
size 192268

3
feedparser-5.2.1.tar.bz2 Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ce875495c90ebd74b179855449040003a1beb40cd13d5f037a0654251e260b02
size 192328

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Apr 26 16:57:56 UTC 2017 - toddrme2178@gmail.com
- Update to version 5.2.1
* Bumpy version number to avoid unnecessary pip reinstalls.
- Implement single-spec version.
- Fix source URL.
-------------------------------------------------------------------
Wed Apr 22 18:13:50 UTC 2015 - benoit.monin@gmx.fr

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-feedparser
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,27 +15,28 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# Tests require a network connection
%bcond_without tests
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-feedparser
Version: 5.2.0
Version: 5.2.1
Release: 0
Summary: Universal Feed Parser Module for Python
License: BSD-2-Clause
Group: Development/Libraries/Python
Url: https://github.com/kurtmckee/feedparser
# the archive name on pypi does not match the version
%define srcversion 5.2.0.post1
Source: https://pypi.python.org/packages/source/f/feedparser/feedparser-%{srcversion}.tar.bz2
Source: https://files.pythonhosted.org/packages/source/f/feedparser/feedparser-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: python-xml
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-2to3
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module xml}
Requires: python-xml
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%python_subpackages
%description
A universal feed parser module for Python that handles RSS 0.9x, RSS 1.0, RSS
@@ -43,21 +44,28 @@ A universal feed parser module for Python that handles RSS 0.9x, RSS 1.0, RSS
%prep
%setup -q -n feedparser-%{version}
find . -type f -exec chmod 0644 {} \; # 5.2.1 had executable bit set on almost all files
%build
python setup.py build
%if 0%{?suse_version} > 1010
%check
cd feedparser && python feedparsertest.py
%endif
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files
%if %{with tests}
%check
# Tests only work on Python 2.x
pushd feedparser
python2 feedparsertest.py
popd
%endif
%files %{python_files}
%defattr(-,root,root)
%doc LICENSE NEWS README.rst
%{python_sitelib}/*
%{python_sitelib}/feedparser.py*
%pycache_only %{python_sitelib}/__pycache__/feedparser.*.py*
%{python_sitelib}/feedparser-%{version}-py*.egg-info
%changelog