python-httplib2/python-httplib2.spec

91 lines
2.3 KiB
RPMSpec
Raw Normal View History

2020-10-29 10:38:18 +08:00
Name: python-httplib2
2021-03-02 16:59:07 +08:00
Version: 0.19.0
Release: 4
2020-10-29 10:38:18 +08:00
Summary: Small, fast HTTP client library for Python.
License: MIT
2021-03-02 16:59:07 +08:00
URL: https://github.com/httplib2/httplib2
Source0: https://files.pythonhosted.org/packages/ed/ef/f0e05d5886a9c25dea4b18be06cd7bcaddbae0168cc576f3568f9bd6a35a/httplib2-0.19.0.tar.gz
Patch0: 0001-cancel-require-pyparsing-version-limit.patch
2019-11-19 11:54:02 +08:00
%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.
%if 0%{?with_python3}
%package -n python3-httplib2
Summary: Small, fast HTTP client library for Python.
%{?python_provide:%python_provide python3-httplib2}
2019-11-19 11:54:02 +08:00
%description -n python3-httplib2
Small, fast HTTP client library for Python.
%endif
2019-11-19 11:54:02 +08:00
%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
%if 0%{?with_python3}
pushd %{py3dir}
%{__python3} setup.py build
popd
%endif
%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
%if 0%{?with_python3}
%files -n python3-httplib2
%defattr(-,root,root)
%{python3_sitelib}/*
%endif
%changelog
* Mon Jan 9 2022 baizhonggui <baizhonggui@huawei.com> - 0.19.0-4
- support newst pyparsing syntax
* Sat Jan 8 2022 baizhonggui <baizhonggui@huawei.com> - 0.19.0-3
- fix require pyparsing version limit
* Wed Mar 31 2021 zhangjiapeng <zhangjiapeng9@huawei.com> - 0.19.0-2
- python3-httplib2 provides python-httplib2
2021-03-02 16:59:07 +08:00
* Tue Mar 2 2021 zhanghua <zhanghua40@huawei.com> - 0.19.0-1
- update to 0.19.0 to fix CVE-2021-21240
2020-10-29 10:38:18 +08:00
* Wed Oct 21 2020 leiju <leiju4@huawei.com> - 0.13.1-6
- remove python2 subpackage
2020-07-20 15:55:11 +08:00
* Mon Jul 20 2020 wangxiao <wangxiao65@huawei.com> - 0.13.1-5
- fix CVE-2020-11078
2020-01-14 15:11:39 +08:00
* Tue Jan 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.13.1-4
- Delete the useless patch
2020-01-13 20:21:26 +08:00
* Fri Jan 10 2020 gulining <gulining1@huawei.com> - 0.13.1-3
2020-01-10 11:44:46 +08:00
- Change the URL to a valid one
2020-01-13 20:21:26 +08:00
* Sat Nov 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.13.1-2
2019-12-13 16:03:00 +08:00
- 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