Merge latest rawhide into el6. (rhbz #904243)
This commit is contained in:
commit
e89ab766f4
3 changed files with 32 additions and 9 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -8,3 +8,5 @@
|
|||
/requests-0.10.6.tar.gz
|
||||
/requests-0.10.8.tar.gz
|
||||
/requests-0.11.1.tar.gz
|
||||
/requests-0.13.1.tar.gz
|
||||
/requests-0.14.1.tar.gz
|
||||
|
|
|
|||
|
|
@ -3,9 +3,10 @@
|
|||
%else
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
|
||||
%endif
|
||||
|
||||
# Turn off the brp-python-bytecompile script
|
||||
#%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
|
||||
Name: python-requests
|
||||
Version: 0.11.1
|
||||
Version: 0.14.1
|
||||
Release: 2%{?dist}
|
||||
Summary: HTTP library, written in Python, for human beings
|
||||
|
||||
|
|
@ -14,12 +15,13 @@ URL: http://pypi.python.org/pypi/requests
|
|||
Source0: http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python2-devel
|
||||
|
||||
Requires: python-certifi
|
||||
%if 0%{?fedora}
|
||||
Requires: python-gevent
|
||||
%endif
|
||||
Requires: ca-certificates
|
||||
|
||||
%description
|
||||
Most existing Python modules for sending HTTP requests are extremely verbose and
|
||||
|
|
@ -43,20 +45,27 @@ designed to make HTTP requests easy for developers.
|
|||
%setup -q -n requests-%{version}
|
||||
|
||||
%build
|
||||
%{__python} setup.py build
|
||||
%if 0%{?_with_python3}
|
||||
%{__python3} setup.py build
|
||||
%endif
|
||||
|
||||
%{__python} setup.py build
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
||||
%if 0%{?_with_python3}
|
||||
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
||||
PYTHONDONTWRITEBYTECODE=1 %{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
||||
#%py_byte_compile %{__python} %{buildroot}%{python3_sitelib}/requests/packages/chardet2
|
||||
#%py_byte_compile %{__python} %{buildroot}%{python3_sitelib}/requests/packages/oauthlib
|
||||
#%py_byte_compile %{__python} %{buildroot}%{python3_sitelib}/requests/packages/urllib3
|
||||
#%py_byte_compile %{__python} %{buildroot}%{python3_sitelib}/requests/*.py
|
||||
%endif
|
||||
|
||||
|
||||
PYTHONDONTWRITEBYTECODE=1 %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
||||
#%py_byte_compile %{__python} %{buildroot}%{python_sitelib}/requests/packages/chardet
|
||||
#%py_byte_compile %{__python} %{buildroot}%{python_sitelib}/requests/packages/oauthlib
|
||||
#%py_byte_compile %{__python} %{buildroot}%{python_sitelib}/requests/packages/urllib3
|
||||
#%py_byte_compile %{__python} %{buildroot}%{python_sitelib}/requests/*.py
|
||||
#
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc NOTICE LICENSE README.rst HISTORY.rst
|
||||
|
|
@ -72,6 +81,18 @@ rm -rf $RPM_BUILD_ROOT
|
|||
|
||||
|
||||
%changelog
|
||||
* Mon Jan 28 2013 Ralph Bean <rbean@redhat.com> 0.14.1-2
|
||||
- Merged latest rawhide into el6.
|
||||
|
||||
* Wed Oct 22 2012 Arun S A G <sagarun@gmail.com> 0.14.1-1
|
||||
- Updated to latest upstream release
|
||||
|
||||
* Sun Jun 10 2012 Arun S A G <sagarun@gmail.com> 0.13.1-1
|
||||
- Updated to latest upstream release 0.13.1
|
||||
- Use system provided ca-certificates
|
||||
- No more async requests use grrequests https://github.com/kennethreitz/grequests
|
||||
- Remove gevent as it is no longer required by requests
|
||||
|
||||
* Sun Apr 09 2012 Arun S A G <sagarun@gmail.com> 0.11.1-2
|
||||
- Fix rhbz#808912
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
c903c32a0e1f04889e693da8e9c71872 requests-0.11.1.tar.gz
|
||||
3de30600072cbc7214ae342d1d08aa46 requests-0.14.1.tar.gz
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue