Accepting request 333526 from home:posophe:branches:devel:languages:python
fix OBS-URL: https://build.opensuse.org/request/show/333526 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=66
This commit is contained in:
parent
747f35ba1f
commit
e10b18927e
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 24 21:22:11 UTC 2015 - p.drouand@gmail.com
|
||||||
|
|
||||||
|
- Unbundle python-chardet and python-urllib3 (boo#947357)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Sep 14 07:48:30 UTC 2015 - tbechtold@suse.com
|
Mon Sep 14 07:48:30 UTC 2015 - tbechtold@suse.com
|
||||||
|
|
||||||
|
@ -35,7 +35,9 @@ BuildRequires: python-devel
|
|||||||
BuildRequires: python-py
|
BuildRequires: python-py
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools
|
||||||
Requires: python
|
Requires: python
|
||||||
|
Requires: python-chardet
|
||||||
Requires: python-py
|
Requires: python-py
|
||||||
|
Requires: python-urllib3
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||||
%else
|
%else
|
||||||
@ -76,6 +78,8 @@ sed -i '/^#!/d' ./requests/certs.py
|
|||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%endif
|
%endif
|
||||||
rm ./requests/cacert.pem
|
rm ./requests/cacert.pem
|
||||||
|
# Unbundle python-chardet and python-urllib3
|
||||||
|
sed -i 's|.packages.||g' requests/*.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
python setup.py build
|
||||||
@ -88,6 +92,7 @@ python setup.py build
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
rm -rf %{buildroot}%{python_sitelib}/requests/packages
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user