From c5c286b91be40f2e259e4adcb525b25dbfdb09f8c97a8512d79deaff273b06cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Thu, 21 Dec 2017 23:26:39 +0000 Subject: [PATCH] Accepting request 559193 from home:pluskalm:branches:devel:languages:python add me as maintainer, dependency of scrapy used for internal search OBS-URL: https://build.opensuse.org/request/show/559193 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-w3lib?expand=0&rev=5 --- python-w3lib.changes | 7 +++++++ python-w3lib.spec | 37 +++++++++++++++++++------------------ w3lib-1.14.2.tar.gz | 3 --- w3lib-1.18.0.tar.gz | 3 +++ 4 files changed, 29 insertions(+), 21 deletions(-) delete mode 100644 w3lib-1.14.2.tar.gz create mode 100644 w3lib-1.18.0.tar.gz diff --git a/python-w3lib.changes b/python-w3lib.changes index a8a36ae..291dfda 100644 --- a/python-w3lib.changes +++ b/python-w3lib.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Dec 21 22:45:16 UTC 2017 - mpluskal@suse.com + +- Update to version 1.18.0: + * No upstream changelog available +- Convert to singlespec + ------------------------------------------------------------------- Thu Jun 2 16:54:55 UTC 2016 - jacobwinski@gmail.com diff --git a/python-w3lib.spec b/python-w3lib.spec index a0f75be..4b55e61 100644 --- a/python-w3lib.spec +++ b/python-w3lib.spec @@ -1,7 +1,7 @@ # # spec file for package python-w3lib # -# Copyright (c) 2016 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 @@ -16,24 +16,22 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-w3lib -Version: 1.14.2 +Version: 1.18.0 Release: 0 -Url: http://github.com/scrapy/w3lib Summary: Library of Web-Related Functions License: BSD-3-Clause Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/w/w3lib/w3lib-%{version}.tar.gz -Requires: python-six >= 1.4.1 -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRequires: python-six >= 1.4.1 -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%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 +Url: http://github.com/scrapy/w3lib +Source: https://files.pythonhosted.org/packages/source/w/w3lib/w3lib-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} >= 1.4.1 +BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildArch: noarch -%endif +%python_subpackages %description This is a Python library of web-related functions, such as: @@ -62,14 +60,17 @@ This is a Python library of web-related functions, such as: %setup -q -n w3lib-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} -%files -%defattr(-,root,root,-) -%doc README.rst +%check +%python_exec setup.py test + +%files %{python_files} +%doc README.rst LICENSE %{python_sitelib}/* %changelog diff --git a/w3lib-1.14.2.tar.gz b/w3lib-1.14.2.tar.gz deleted file mode 100644 index 1aa1f95..0000000 --- a/w3lib-1.14.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bd87eae62d208eef70869951abf05e96a8ee559714074a485168de4c5b190004 -size 41191 diff --git a/w3lib-1.18.0.tar.gz b/w3lib-1.18.0.tar.gz new file mode 100644 index 0000000..fba9920 --- /dev/null +++ b/w3lib-1.18.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c48731d5d73cde86f9c3c2bd6898d165f670120427353a7c8f9d6c685561d3c4 +size 37709