2019-11-19 11:54:02 +08:00
|
|
|
Name: python-httplib2
|
|
|
|
|
Version: 0.13.1
|
2020-01-10 11:44:46 +08:00
|
|
|
Release: 3
|
2019-11-19 11:54:02 +08:00
|
|
|
Summary: Small, fast HTTP client library for Python.
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/httplib2/httplib2
|
2020-01-10 11:44:46 +08:00
|
|
|
Source0: https://files.pythonhosted.org/packages/78/23/bb9606e87a66fd8c72a2b1a75b049d3859a122bc2648915be845bc44e04f/httplib2-0.13.1.tar.gz
|
2019-11-19 11:54:02 +08:00
|
|
|
|
|
|
|
|
Patch1: python-httplib2.certfile.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: python2-setuptools python2-devel
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
BuildRequires: python3-setuptools python3-devel
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
httplib2 is a comprehensive HTTP client library, httplib2.py supports many
|
|
|
|
|
features left out of other HTTP libraries.
|
|
|
|
|
|
|
|
|
|
%package -n python2-httplib2
|
|
|
|
|
Summary: Small, fast HTTP client library for Python.
|
|
|
|
|
%{?python_provide:%python_provide python2-httplib2}
|
|
|
|
|
|
|
|
|
|
%description -n python2-httplib2
|
|
|
|
|
Small, fast HTTP client library for Python.
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%package -n python3-httplib2
|
|
|
|
|
Summary: Small, fast HTTP client library for Python.
|
|
|
|
|
|
|
|
|
|
%description -n python3-httplib2
|
|
|
|
|
Small, fast HTTP client library for Python.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n httplib2-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
|
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!/usr/bin/python|#!%{__python3}|'
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%{__python2} setup.py build
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
%{__python3} setup.py build
|
|
|
|
|
popd
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py2_install
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
2019-12-13 16:03:00 +08:00
|
|
|
pushd %{py3dir}
|
|
|
|
|
%py3_install
|
|
|
|
|
popd
|
2019-11-19 11:54:02 +08:00
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files -n python2-httplib2
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{python2_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%files -n python3-httplib2
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-01-10 11:44:46 +08:00
|
|
|
* Fri Jan 10 2019 gulining<gulining1@huawei.com> - 0.13.1-3
|
|
|
|
|
- Change the URL to a valid one
|
|
|
|
|
|
2019-12-13 16:03:00 +08:00
|
|
|
* Fri Nov 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.13.1-2
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:change the root of install for python3
|
|
|
|
|
|
2019-11-19 11:54:02 +08:00
|
|
|
* Thu Nov 7 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.13.1-1
|
|
|
|
|
- Package init
|