代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/python-wrapt 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%global with_python3 0
%global with_docs 1
%{!?_licensedir: %global license %%doc}
Name: python-wrapt
Version: 1.10.8
Release: 1
Summary: A Python module for decorators, wrappers and monkey patching
License: BSD
URL: https://github.com/GrahamDumpleton/wrapt
Source0: https://github.com/GrahamDumpleton/wrapt/archive/1.10.8.tar.gz
BuildRequires: python2-devel
%if 0%{?with_python3}
BuildRequires: python3-devel
%endif
%description
The aim of the wrapt module is to provide a transparent object proxy
for Python, which can be used as the basis for the construction of
function wrappers and decorator functions.
%if 0%{?with_docs}
%package doc
Summary: Documentation for the wrapt module
BuildRequires: python-sphinx
BuildRequires: python-sphinx_rtd_theme
%description doc
Documentation for the wrapt module
%endif
%if 0%{?with_python3}
%package -n python3-wrapt
Summary: A Python module for decorators, wrappers and monkey patching
%description -n python3-wrapt
The aim of the wrapt module is to provide a transparent object proxy
for Python, which can be used as the basis for the construction of
function wrappers and decorator functions.
%endif
%prep
%setup -q -n wrapt-1.10.8
# Remove bundled egg-info in case it exists
rm -rf wrapt.egg-info
%if 0%{?with_python3}
rm -rf %{py3dir}
cp -a . %{py3dir}
%endif
%build
CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build
%if 0%{?with_python3}
pushd %{py3dir}
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
popd
%endif
%if 0%{?with_docs}
# for docs
pushd docs
sphinx-build -b html -d build/doctrees . build/html
popd
%endif
%install
%if 0%{?with_python3}
pushd %{py3dir}
%{__python3} setup.py install --skip-build --root %{buildroot}
popd
%endif
%{__python2} setup.py install --skip-build --root %{buildroot}
%files
%doc README.rst
%license LICENSE
%{python2_sitearch}/wrapt
%{python2_sitearch}/wrapt-1.10.8-py?.?.egg-info
%if 0%{?with_docs}
%files doc
%doc docs/build/html
%endif
%if 0%{?with_python3}
%files -n python3-wrapt
%doc README.rst
%license LICENSE
%{python3_sitearch}/wrapt
%{python3_sitearch}/wrapt-1.10.8-py?.?.egg-info
%endif
%changelog
* Thu Apr 29 2021 openstack-sig <openstack@openeuler.org>
- Package Spec generated
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。