1 Star 0 Fork 20

huangtianhua/python-wrapt

forked from src-openEuler/python-wrapt 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-wrapt.spec 3.81 KB
一键复制 编辑 原始数据 按行查看 历史
starlet_dx 提交于 2022-06-27 14:46 . Package upgrade
%global _empty_manifest_terminate_build 0
Name: python-wrapt
Version: 1.14.0
Release: 1
Summary: A Python module for decorators, wrappers and monkey patching
License: BSD-2-Clause
URL: https://github.com/GrahamDumpleton/wrapt
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,
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
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
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
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 -n python3-wrapt -f filelist.lst
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Thu Jun 23 2022 SimpleUpdate Robot <tc@openeuler.org> - 1.14.0-1
- Upgrade to version 1.14.0
* 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
- License compliance rectification
* Wed Mar 30 2022 xu_ping <xuping33@huawei.com> - 1.12.1-3
- Fix non-recognition ? the installed failed
* 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
* Tue Aug 11 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 1.10.11-7
- Remove python2-wrapt subpackage
* Mon Feb 17 2020 daiqianwen <daiqianwen@huawei.com> - 1.10.11-6
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/huangtianhua/python-wrapt.git
git@gitee.com:huangtianhua/python-wrapt.git
huangtianhua
python-wrapt
python-wrapt
master

搜索帮助