1 %define module requests
2 Summary: HTTP library for Python
5 %define _verinternal 0.13.2
6 %define _relstr 11-g52b55cc
9 Group: Development/Languages/Python
10 Source0: https://github.com/kennethreitz/requests/tarball/develop/kennethreitz-%{module}-v%{version}-%{_relstr}.tar.gz
11 # Source0-md5: 083bd0d48b75d2ab79f2636f5bb204fc
12 URL: https://github.com/kennethreitz/requests
13 BuildRequires: rpm-pythonprov
14 BuildRequires: rpmbuild(macros) >= 1.219
15 Requires: python-modules
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Requests is an ISC Licensed HTTP library, written in Python, for human
23 Most existing Python modules for sending HTTP requests are extremely
24 verbose and cumbersome. Python's builtin urllib2 module provides most
25 of the HTTP capabilities you should need, but the api is thoroughly
26 broken. It requires an enormous amount of work (even method overrides)
27 to perform the simplest of tasks.
29 Things shouldn't be this way. Not in Python.
36 # Filename says 0.13.3, __version__ says 0.13.2, so the test fails
37 #ver=$(%{__python} -c "import requests; print requests.__version__")
38 #test "$ver" = %{version}
40 %{__python} setup.py build
43 rm -rf $RPM_BUILD_ROOT
44 %{__python} setup.py install \
47 --root=$RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
56 %doc AUTHORS.rst README.rst LICENSE docs
57 %{py_sitescriptdir}/%{module}
58 %if "%{py_ver}" > "2.4"
59 %{py_sitescriptdir}/%{module}-%{_verinternal}-*.egg-info