python-wrapt/python-wrapt.spec

77 lines
2.8 KiB
RPMSpec
Raw Normal View History

2022-10-21 10:38:08 +08:00
%global _empty_manifest_terminate_build 0
2020-02-26 16:35:56 +08:00
Name: python-wrapt
2022-10-21 10:38:08 +08:00
Version: 1.14.0
Release: 1
2020-02-26 16:35:56 +08:00
Summary: A Python module for decorators, wrappers and monkey patching
2022-10-21 10:38:08 +08:00
License: BSD-2-Clause
2020-02-26 16:35:56 +08:00
URL: https://github.com/GrahamDumpleton/wrapt
2022-10-21 10:38:08 +08:00
Source0: https://github.com/GrahamDumpleton/%{sname}/archive/%{version}.tar.gz
2020-02-26 16:35:56 +08:00
%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.
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.
%package -n python3-wrapt
2022-10-21 10:38:08 +08:00
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
2020-02-26 16:35:56 +08:00
%description -n python3-wrapt
Python3 module for wrapt module.
2022-10-21 10:38:08 +08:00
%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.
2020-02-26 16:35:56 +08:00
%prep
%autosetup -n wrapt-%{version} -p1
%build
2022-10-21 10:38:08 +08:00
%py3_build
pushd docs
2020-02-26 16:35:56 +08:00
sphinx-build -b html -d build/doctrees . build/html
2022-10-21 10:38:08 +08:00
popd
2020-02-26 16:35:56 +08:00
%install
2022-10-21 10:38:08 +08:00
%py3_install
2020-02-26 16:35:56 +08:00
%files -n python3-wrapt
%doc README.rst LICENSE
2022-10-21 10:38:08 +08:00
%{python3_sitearch}/{wrapt,wrapt-%{version}-py*.egg-info}
2020-02-26 16:35:56 +08:00
%files help
%doc docs/build/html
%changelog
2022-10-21 10:38:08 +08:00
* Fri Oct 21 2022 caodongxia <caodongxia@h-partners.com> - 1.14.0-1
- Update to 1.14.0
2021-06-01 14:55:33 +08:00
* Mon May 31 2021 huanghaitao <huanghaitao8@huawei.com> - 1.12.1-2
- Completing build dependencies
* Wed Oct 14 2020 Zhipeng Xie <xiezhipeng1@huawei.com> - 1.12.1-1
- upgrade to 1.12.1
2020-08-11 17:28:35 +08:00
* Tue Aug 11 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 1.10.11-7
- Remove python2-wrapt subpackage
2020-02-26 16:35:56 +08:00
* Mon Feb 17 2020 daiqianwen <daiqianwen@huawei.com> - 1.10.11-6
- Package init