!11 upgrade the version to 1.13.3

From: @huyuqi2 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2022-06-11 04:04:44 +00:00 committed by Gitee
commit 09f05a7806
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 62 additions and 30 deletions

View File

@ -1,12 +1,11 @@
%global _empty_manifest_terminate_build 0
Name: python-wrapt Name: python-wrapt
Version: 1.12.1 Version: 1.13.3
Release: 4 Release: 1
Summary: A Python module for decorators, wrappers and monkey patching Summary: A Python module for decorators, wrappers and monkey patching
License: BSD-2-Clause License: BSD-2-Clause
URL: https://github.com/GrahamDumpleton/wrapt URL: https://github.com/GrahamDumpleton/wrapt
Source0: https://github.com/GrahamDumpleton/wrapt/archive/%{version}.tar.gz#/wrapt-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/eb/f6/d81ccf43ac2a3c80ddb6647653ac8b53ce2d65796029369923be06b815b8/wrapt-1.13.3.tar.gz
BuildRequires: python3-devel python3-sphinx gcc
%description %description
The aim of the wrapt module is to provide a transparent object proxy for Python, The aim of the wrapt module is to provide a transparent object proxy for Python,
@ -16,44 +15,77 @@ such as functools.wraps() to ensure that decorators preserve introspectability,
type checking abilities etc. The decorators that can be constructed using this module will work in type checking abilities etc. The decorators that can be constructed using this module will work in
far more scenarios than typical decorators and provide more predictable and consistent behaviour. far more scenarios than typical decorators and provide more predictable and consistent behaviour.
%package help
Summary: Documentation for the python-wrapt
BuildRequires: python3-sphinx python3-sphinx_rtd_theme
Provides: %{name}-doc = %{version}-%{release}
Obsoletes: %{name}-doc < %{version}-%{release}
%description help
Documentation for the python-wrapt.
%package -n python3-wrapt %package -n python3-wrapt
Summary: Python3 module for wrapt module Summary: Module for decorators, wrappers and monkey patching.
Provides: python-wrapt
# Base build requires
BuildRequires: python3-sphinx
BuildRequires: gcc
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
%description -n python3-wrapt %description -n python3-wrapt
Python3 module for wrapt module. Python3 module for wrapt module.
%prep %package help
%autosetup -n wrapt-%{version} -p1 Summary: Module for decorators, wrappers and monkey patching.
Provides: python3-wrapt-doc
%description help
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.
The wrapt module focuses very much on correctness. It therefore goes way beyond existing mechanisms
such as functools.wraps() to ensure that decorators preserve introspectability, signatures,
type checking abilities etc. The decorators that can be constructed using this module will work in
far more scenarios than typical decorators and provide more predictable and consistent behaviour.
rm -rf wrapt.egg-info %prep
%autosetup -n wrapt-%{version}
%build %build
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build %py3_build
cd docs
sphinx-build -b html -d build/doctrees . build/html
cd -
%install %install
%{__python3} setup.py install --skip-build --root %{buildroot} %py3_install
%files -n python3-wrapt install -d -m755 %{buildroot}/%{_pkgdocdir}
%doc README.rst LICENSE if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
%{python3_sitearch}/{wrapt,wrapt-%{version}-py*.egg-info} if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files help
%doc docs/build/html
%files -n python3-wrapt -f filelist.lst
%files help -f doclist.lst
%{_docdir}/*
%changelog %changelog
* Sat Jun 04 2022 OpenStack_SIG <openstack@openeuler.org> - 1.13.3-1
- upgrade package python3-wrapt to version 1.13.3
* Tue May 10 2022 yangping <yangping69@h-partners> - 1.12.1-4 * Tue May 10 2022 yangping <yangping69@h-partners> - 1.12.1-4
- License compliance rectification - License compliance rectification

Binary file not shown.

BIN
wrapt-1.13.3.tar.gz Normal file

Binary file not shown.