package init

This commit is contained in:
hht8 2021-04-29 20:17:31 +08:00
parent 6a0a68e425
commit 4a2b373282
2 changed files with 50 additions and 0 deletions

BIN
1.10.8.tar.gz Normal file

Binary file not shown.

50
python-wrapt.spec Normal file
View File

@ -0,0 +1,50 @@
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/%{version}.tar.gz
BuildRequires: python3-devel
%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.
%package doc
Summary: Documentation for the wrapt module
BuildRequires: python-sphinx python-sphinx_rtd_theme
%description doc
Documentation for the wrapt module
%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.
%prep
%setup -q -n wrapt-%{version}
%build
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
pushd docs
sphinx-build -b html -d build/doctrees . build/html
popd
%install
%{__python3} setup.py install --skip-build --root %{buildroot}
%files doc
%doc docs/build/html
%files -n python3-wrapt
%doc README.rst
%license LICENSE
%{python3_sitearch}/wrapt
%{python3_sitearch}/wrapt-%{version}-py?.?.egg-info
%changelog
* Thu Apr 14 2021 huanghaitao <huanghaitao8@huawei.com> - 1.10.8-1
- package init