[python-w3lib] Update to 1.11.0 version

Eduardo Javier Echeverria Alvarado echevemaster at fedoraproject.org
Sun Feb 15 06:50:58 UTC 2015


commit 984f25c67168db378ebaec3e0c535d185e09d7d6
Author: Eduardo Echeverria <echevemaster at gmail.com>
Date:   Sun Feb 15 02:20:43 2015 -0430

    Update to 1.11.0 version

 .gitignore        |    1 +
 python-w3lib.spec |   22 +++++++++++++++++-----
 sources           |    2 +-
 3 files changed, 19 insertions(+), 6 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 4910dd8..371f592 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /w3lib-1.3.tar.gz
+/w3lib-1.11.0.tar.gz
diff --git a/python-w3lib.spec b/python-w3lib.spec
index a4abc89..955efe2 100644
--- a/python-w3lib.spec
+++ b/python-w3lib.spec
@@ -1,17 +1,21 @@
 %global tarball_name w3lib 
 
 Name:           python-w3lib
-Version:        1.3
-Release:        3%{?dist}
+Version:        1.11.0
+Release:        1%{?dist}
 Summary:        Library of web-related functions
 
 Group:          Development/Languages
 License:        BSD
 URL:            https://github.com/scrapy/w3lib
 Source0:        https://pypi.python.org/packages/source/w/%{tarball_name}/%{tarball_name}-%{version}.tar.gz
-
+# Usually pypi packages does not include license boilerplate.
+# so, I've downloaded it from the project github repository
+# wget -N https://raw.githubusercontent.com/scrapy/w3lib/master/LICENSE -O LICENSE-w3lib
+Source1:        LICENSE-w3lib
 BuildArch:      noarch
 BuildRequires:  python2-devel python-setuptools
+Requires:       python-six
 
 %description
 This is a Python library of web-related functions, such as:
@@ -28,7 +32,10 @@ This is a Python library of web-related functions, such as:
 
 %prep
 %setup -qn %{tarball_name}-%{version}
-
+# Remove bundled egg
+rm -rf w3lib.egg-info
+# copy LICENSE-w3lib file to sources as well.
+cp -a %{SOURCE1} .
 
 %build
 %{__python2} setup.py build
@@ -40,10 +47,15 @@ rm -rf %{buildroot}
 
 
 %files
-%{python2_sitelib}/*
+%doc README.rst LICENSE-w3lib
+%{python2_sitelib}/w3lib/
+%{python2_sitelib}/w3lib-*.egg-info
 
 
 %changelog
+* Sun Feb 15 2015 Eduardo Echeverria <echevemaster at gmail.com> - 1.11.0-1
+- Updated to new upstream version 
+
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.3-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/sources b/sources
index 0b701c9..56d88d0 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-1a32470a2e58ff887f5bc1d69334542e  w3lib-1.3.tar.gz
+0ecadf121a90f1ac182b739a7d028ae2  w3lib-1.11.0.tar.gz


More information about the scm-commits mailing list