From cfaa842571fb8626c87b001148af217b597fcd019c3d815bff7a22859177eb1b Mon Sep 17 00:00:00 2001
From: Denisart Benjamin
Date: Fri, 15 Nov 2013 20:40:49 +0000
Subject: [PATCH] Accepting request 207078 from
home:posophe:branches:devel:languages:python
Update
OBS-URL: https://build.opensuse.org/request/show/207078
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-w3lib?expand=0&rev=2
---
python-w3lib.changes | 7 +++++++
python-w3lib.spec | 16 +++++++---------
w3lib-1.2.tar.gz | 3 ---
w3lib-1.5.tar.gz | 3 +++
4 files changed, 17 insertions(+), 12 deletions(-)
delete mode 100644 w3lib-1.2.tar.gz
create mode 100644 w3lib-1.5.tar.gz
diff --git a/python-w3lib.changes b/python-w3lib.changes
index 8a1bfb4..eb94f5c 100644
--- a/python-w3lib.changes
+++ b/python-w3lib.changes
@@ -1,3 +1,10 @@
+-------------------------------------------------------------------
+Fri Nov 15 20:36:22 UTC 2013 - p.drouand@gmail.com
+
+- Update to version 1.5
+ + No changelog available
+- Add python-setuptools BuildRequires; new dependency
+
-------------------------------------------------------------------
Wed May 23 21:43:14 UTC 2012 - jfunk@funktronics.ca
diff --git a/python-w3lib.spec b/python-w3lib.spec
index f06ec5e..4123673 100644
--- a/python-w3lib.spec
+++ b/python-w3lib.spec
@@ -1,7 +1,7 @@
#
# spec file for package python-w3lib
#
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products 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,7 +16,7 @@
#
Name: python-w3lib
-Version: 1.2
+Version: 1.5
Release: 0
Url: http://github.com/scrapy/w3lib
Summary: Library of Web-Related Functions
@@ -24,15 +24,13 @@ License: BSD-3-Clause
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/w/w3lib/w3lib-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
+BuildRequires: python-setuptools
BuildRequires: python-devel
-%if 0%{?suse_version}
-%py_requires
-%if 0%{?suse_version} > 1110
+%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
-%endif
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%description
This is a Python library of web-related functions, such as:
@@ -61,7 +59,7 @@ This is a Python library of web-related functions, such as:
%setup -q -n w3lib-%{version}
%build
-CFLAGS="%{optflags}" python setup.py build
+python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
diff --git a/w3lib-1.2.tar.gz b/w3lib-1.2.tar.gz
deleted file mode 100644
index bd00551..0000000
--- a/w3lib-1.2.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:61f27e225635da7f4d005409e4874748cd63a1e1ffef3495edb7254c4d5ac339
-size 8584
diff --git a/w3lib-1.5.tar.gz b/w3lib-1.5.tar.gz
new file mode 100644
index 0000000..f386580
--- /dev/null
+++ b/w3lib-1.5.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f611f0a21327aa93af09ef45c04fa87849b697e60157c1fc24bbb90796d290a6
+size 9416