diff --git a/1.10.8.tar.gz b/1.10.8.tar.gz new file mode 100644 index 0000000..a23d028 Binary files /dev/null and b/1.10.8.tar.gz differ diff --git a/python-wrapt.spec b/python-wrapt.spec new file mode 100644 index 0000000..1b379e5 --- /dev/null +++ b/python-wrapt.spec @@ -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 - 1.10.8-1 +- package init