diff --git a/.gitignore b/.gitignore index 41e5225..b0af200 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/python-requests.spec b/python-requests.spec index 93cb7ef..0aeaa9f 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -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 0.14.1-2 +- Merged latest rawhide into el6. + +* Wed Oct 22 2012 Arun S A G 0.14.1-1 +- Updated to latest upstream release + +* Sun Jun 10 2012 Arun S A G 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 0.11.1-2 - Fix rhbz#808912 diff --git a/sources b/sources index 35b2373..611d373 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c903c32a0e1f04889e693da8e9c71872 requests-0.11.1.tar.gz +3de30600072cbc7214ae342d1d08aa46 requests-0.14.1.tar.gz