2011-05-20 21:15:11 +02:00
#
# spec file for package python-requests
#
2012-04-28 01:00:17 +02:00
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
2011-05-20 21:15:11 +02:00
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2012-04-28 01:00:17 +02:00
2011-05-20 21:15:11 +02:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2011-09-23 14:10:26 +02:00
Name : python-requests
2012-05-30 11:17:32 +02:00
Version : 0.13.0
2011-05-20 21:15:11 +02:00
Release : 0
Url : http://python-requests.org
Summary : Awesome Python HTTP Library That's Actually Usable
License : ISC
Group : Development/Languages/Python
2011-09-23 14:10:26 +02:00
Source : http://pypi.python.org/packages/source/r/requests/requests-%{version} .tar.gz
2012-05-23 14:16:00 +02:00
# PATCH-FIX-UPSREAM requests-suse_cert_paths.patch [bnc#761501] -- Load directory-based cert store in /etc/ssl/certs. Depends on Python patched to allow it, fall back to /etc/ssl/ca-bundle.pem otherwise
Patch0 : requests-suse_cert_paths.patch
2011-05-20 21:15:11 +02:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2011-11-27 10:11:09 +01:00
BuildRequires : python
2012-05-23 14:16:00 +02:00
BuildRequires : python-chardet
2011-05-20 21:15:11 +02:00
BuildRequires : python-devel
2012-05-18 03:36:28 +02:00
BuildRequires : python-distribute
BuildRequires : python-oauthlib
2011-11-27 10:11:09 +01:00
Requires : python
2012-05-18 03:36:28 +02:00
Requires : python-chardet
2012-05-30 11:17:32 +02:00
Requires : python-grequests
2012-05-18 03:36:28 +02:00
Requires : python-oauthlib
2012-02-06 14:42:06 +01:00
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c " f r o m d i s t u t i l s . s y s c o n f i g i m p o r t g e t _ p y t h o n _ l i b ; p r i n t g e t _ p y t h o n _ l i b ( ) " )}
%else
2011-05-20 21:15:11 +02:00
BuildArch : noarch
%endif
%description
2011-09-23 14:10:26 +02:00
Requests is an ISC Licensed HTTP library, written in Python, for human
beings.
2011-05-20 21:15:11 +02:00
2011-09-23 14:10:26 +02:00
Most existing Python modules for sending HTTP requests are extremely
verbose and cumbersome. Python's builtin urllib2 module provides most of
the HTTP capabilities you should need, but the api is thoroughly broken.
It requires an enormous amount of work (even method overrides) to
perform the simplest of tasks.
2011-05-20 21:15:11 +02:00
Features:
- Extremely simple GET, HEAD, POST, PUT, DELETE Requests
+ Simple HTTP Header Request Attachment
+ Simple Data/Params Request Attachment
+ Simple Multipart File Uploads
+ CookieJar Support
+ Redirection History
+ Redirection Recursion Urllib Fix
+ Auto Decompression of GZipped Content
+ Unicode URL Support
- Simple Authentication
+ Simple URL + HTTP Auth Registry
%prep
2011-09-23 14:10:26 +02:00
%setup -q -n requests-%{version}
2012-05-20 19:46:42 +02:00
%patch0 -p1
2011-05-20 21:15:11 +02:00
%build
python setup.py build
2012-05-18 03:36:28 +02:00
%check
python setup.py test
2011-05-20 21:15:11 +02:00
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr (-,root,root)
2012-01-12 23:10:51 +01:00
%doc README.rst HISTORY.rst LICENSE NOTICE
2011-05-20 21:15:11 +02:00
%{python_sitelib} /*
2011-09-23 14:10:26 +02:00
%changelog