代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/python-contextlib2 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%{!?_licensedir: %global license %%doc}
Name: python-contextlib2
Version: 0.5.5
Release: 10
Summary: Backports and enhancements for the contextlib module
License: Python
URL: https://pypi.io/project/contextlib2
Source0: https://pypi.io/packages/source/c/contextlib2/contextlib2-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
%description
The package is a backport of the standard library's contextlib module to earlier Python versions.
It provides a ground for enhancements to the standard library version.
%package -n python3-contextlib2
Summary: Backports and enhancements for the contextlib module
%description -n python3-contextlib2
The package is a backport of the standard library's contextlib module to earlier Python versions.
It provides a ground for enhancements to the standard library version.
%prep
%autosetup -n contextlib2-%{version}
rm -rf contextlib2.egg-info
rm -rf %{py3dir}
cp -a . %{py3dir}
%build
cd %{py3dir}
%{__python3} setup.py build
cd -
%install
cd %{py3dir}
%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
%check
cd %{py3dir}
%{__python3} test_contextlib2.py
cd -
%files -n python3-contextlib2
%doc README.rst VERSION.txt NEWS.rst
%license LICENSE.txt
%{python3_sitelib}/*
%changelog
* Wed Oct 21 2020 zhangtao <zhangtao221@huawei.com> - 0.5.5-10
- delete python2
* Wed Mar 4 2020 zhujunhao <zhujunhao5@huawei.com> - 0.5.5-9
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。