[python-w3lib] Initial commit to python-w3lib

Daniel Bruno dbruno at fedoraproject.org
Wed Sep 11 12:14:56 UTC 2013


commit f18b7e7210a8fe8312a564ef9c9cb03805a9cd90
Author: Daniel Bruno <danielbrunos at gmail.com>
Date:   Wed Sep 11 08:13:36 2013 -0400

    Initial commit to python-w3lib

 .gitignore        |    1 +
 python-w3lib.spec |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources           |    1 +
 3 files changed, 53 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4910dd8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/w3lib-1.3.tar.gz
diff --git a/python-w3lib.spec b/python-w3lib.spec
new file mode 100644
index 0000000..ebda947
--- /dev/null
+++ b/python-w3lib.spec
@@ -0,0 +1,51 @@
+%global tarball_name w3lib 
+
+Name:           python-w3lib
+Version:        1.3
+Release:        2%{?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
+
+BuildArch:      noarch
+BuildRequires:  python2-devel python-setuptools
+
+%description
+This is a Python library of web-related functions, such as:
+- Remove comments, or tags from HTML snippets
+- Extract base url from HTML snippets
+- Translate entites on HTML strings
+- Encoding mulitpart/form-data
+- Convert raw HTTP headers to dicts and vice-versa
+- Construct HTTP auth header
+- Converting HTML pages to unicode
+- RFC-compliant url joining
+- Sanitize urls (like browsers do)
+- Extract arguments from urls
+
+%prep
+%setup -qn %{tarball_name}-%{version}
+
+
+%build
+%{__python2} setup.py build
+
+
+%install
+rm -rf %{buildroot}
+%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
+
+
+%files
+%{python2_sitelib}/*
+
+
+%changelog
+* Mon Sep 09 2013 Daniel Bruno <dbruno at fedoraproject.org> - 1.3-2
+- Adjusting the spec for Fedora patterns
+
+* Mon Sep 02 2013 Daniel Bruno <dbruno at fedoraproject.org> - 1.3-1 
+- First version of RPM Package of w3lib
diff --git a/sources b/sources
index e69de29..0b701c9 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1a32470a2e58ff887f5bc1d69334542e  w3lib-1.3.tar.gz


More information about the scm-commits mailing list