commit
e7250a3ce9
@ -1,12 +1,12 @@
|
|||||||
Name: python-wrapt
|
Name: python-wrapt
|
||||||
Version: 1.10.11
|
Version: 1.10.11
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: A Python module for decorators, wrappers and monkey patching
|
Summary: A Python module for decorators, wrappers and monkey patching
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://github.com/GrahamDumpleton/wrapt
|
URL: https://github.com/GrahamDumpleton/wrapt
|
||||||
Source0: https://github.com/GrahamDumpleton/wrapt/archive/%{version}.tar.gz
|
Source0: https://github.com/GrahamDumpleton/wrapt/archive/%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: python2-devel python3-devel python3-sphinx
|
BuildRequires: python3-devel python3-sphinx
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The aim of the wrapt module is to provide a transparent object proxy for Python,
|
The aim of the wrapt module is to provide a transparent object proxy for Python,
|
||||||
@ -16,16 +16,9 @@ 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
|
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.
|
far more scenarios than typical decorators and provide more predictable and consistent behaviour.
|
||||||
|
|
||||||
%package -n python2-wrapt
|
|
||||||
Summary: Python2 module for wrapt module
|
|
||||||
%{?python_provide:%python_provide python2-wrapt}
|
|
||||||
|
|
||||||
%description -n python2-wrapt
|
|
||||||
Python2 module for wrapt module.
|
|
||||||
|
|
||||||
%package help
|
%package help
|
||||||
Summary: Documentation for the python-wrapt
|
Summary: Documentation for the python-wrapt
|
||||||
BuildRequires: python2-sphinx python2-sphinx_rtd_theme
|
BuildRequires: python3-sphinx python3-sphinx_rtd_theme
|
||||||
Provides: %{name}-doc = %{version}-%{release}
|
Provides: %{name}-doc = %{version}-%{release}
|
||||||
Obsoletes: %{name}-doc < %{version}-%{release}
|
Obsoletes: %{name}-doc < %{version}-%{release}
|
||||||
|
|
||||||
@ -42,28 +35,16 @@ Python3 module for wrapt module.
|
|||||||
%autosetup -n wrapt-%{version} -p1
|
%autosetup -n wrapt-%{version} -p1
|
||||||
|
|
||||||
rm -rf wrapt.egg-info
|
rm -rf wrapt.egg-info
|
||||||
rm -rf %{py3dir}
|
|
||||||
cp -a . %{py3dir}
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build
|
|
||||||
cd %{py3dir}
|
|
||||||
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
|
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
|
||||||
cd -
|
|
||||||
|
|
||||||
cd docs
|
cd docs
|
||||||
sphinx-build -b html -d build/doctrees . build/html
|
sphinx-build -b html -d build/doctrees . build/html
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd %{py3dir}
|
|
||||||
%{__python3} setup.py install --skip-build --root %{buildroot}
|
%{__python3} setup.py install --skip-build --root %{buildroot}
|
||||||
cd -
|
|
||||||
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
||||||
|
|
||||||
%files -n python2-wrapt
|
|
||||||
%doc README.rst LICENSE
|
|
||||||
%{python2_sitearch}/{wrapt,wrapt-%{version}-py?.?.egg-info}
|
|
||||||
|
|
||||||
%files -n python3-wrapt
|
%files -n python3-wrapt
|
||||||
%doc README.rst LICENSE
|
%doc README.rst LICENSE
|
||||||
@ -73,5 +54,8 @@ cd -
|
|||||||
%doc docs/build/html
|
%doc docs/build/html
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* Mon Feb 17 2020 daiqianwen <daiqianwen@huawei.com> - 1.10.11-6
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user