diff --git a/1.14.0.tar.gz b/1.14.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..74aad28ac5aa7cc848d11fef79458f2479b87c8e Binary files /dev/null and b/1.14.0.tar.gz differ diff --git a/python-wrapt.spec b/python-wrapt.spec index 5d53e642095b0de18cc6eb5f5d2db69ba82d9472..92ed5d6e1969163bbecfecf944240e4d91116ba1 100644 --- a/python-wrapt.spec +++ b/python-wrapt.spec @@ -1,12 +1,11 @@ +%global _empty_manifest_terminate_build 0 Name: python-wrapt -Version: 1.12.1 -Release: 2 +Version: 1.14.0 +Release: 1 Summary: A Python module for decorators, wrappers and monkey patching -License: BSD +License: BSD-2-Clause URL: https://github.com/GrahamDumpleton/wrapt -Source0: https://github.com/GrahamDumpleton/wrapt/archive/%{version}.tar.gz#/wrapt-%{version}.tar.gz - -BuildRequires: python3-devel python3-sphinx gcc +Source0: https://github.com/GrahamDumpleton/%{sname}/archive/%{version}.tar.gz %description The aim of the wrapt module is to provide a transparent object proxy for Python, @@ -16,44 +15,54 @@ 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 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 -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 Python3 module for wrapt module. +%package help +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. + %prep %autosetup -n wrapt-%{version} -p1 -rm -rf wrapt.egg-info - %build -CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build - -cd docs +%py3_build +pushd docs sphinx-build -b html -d build/doctrees . build/html -cd - +popd %install -%{__python3} setup.py install --skip-build --root %{buildroot} +%py3_install %files -n python3-wrapt %doc README.rst LICENSE -%{python3_sitearch}/{wrapt,wrapt-%{version}-py?.?.egg-info} +%{python3_sitearch}/{wrapt,wrapt-%{version}-py*.egg-info} %files help %doc docs/build/html %changelog +* Fri Oct 21 2022 caodongxia <caodongxia@h-partners.com> - 1.14.0-1 +- Update to 1.14.0 + * Mon May 31 2021 huanghaitao <huanghaitao8@huawei.com> - 1.12.1-2 - Completing build dependencies diff --git a/wrapt-1.12.1.tar.gz b/wrapt-1.12.1.tar.gz deleted file mode 100644 index 2695091fbe2b1ccaef88f4831f9a771e2744f28f..0000000000000000000000000000000000000000 Binary files a/wrapt-1.12.1.tar.gz and /dev/null differ