Todd R 2015-09-26 09:06:08 +00:00 committed by Git OBS Bridge
parent df777e1a6f
commit 50bec8800e

View File

@ -35,9 +35,7 @@ BuildRequires: python-devel
BuildRequires: python-py
BuildRequires: python-setuptools
Requires: python
Requires: python-chardet
Requires: python-py
Requires: python-urllib3
%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()")}
%else
@ -78,8 +76,6 @@ sed -i '/^#!/d' ./requests/certs.py
%patch1 -p1
%endif
rm ./requests/cacert.pem
# Unbundle python-chardet and python-urllib3
sed -i 's|.packages.||g' requests/*.py
%build
python setup.py build
@ -92,7 +88,6 @@ python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm -rf %{buildroot}%{python_sitelib}/requests/packages
%files
%defattr(-,root,root)