|
|
@ -2,7 +2,6 @@
|
|
|
|
%global sname wrapt
|
|
|
|
%global sname wrapt
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 8
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 8
|
|
|
|
%global with_python3 1
|
|
|
|
|
|
|
|
%global with_docs 1
|
|
|
|
%global with_docs 1
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
@ -10,7 +9,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-%{sname}
|
|
|
|
Name: python-%{sname}
|
|
|
|
Version: 1.11.2
|
|
|
|
Version: 1.11.2
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Summary: A Python module for decorators, wrappers and monkey patching
|
|
|
|
Summary: A Python module for decorators, wrappers and monkey patching
|
|
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
License: BSD
|
|
|
@ -18,11 +17,8 @@ URL: https://github.com/GrahamDumpleton/wrapt
|
|
|
|
Source0: https://github.com/GrahamDumpleton/%{sname}/archive/%{version}.tar.gz
|
|
|
|
Source0: https://github.com/GrahamDumpleton/%{sname}/archive/%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global _description\
|
|
|
|
%global _description\
|
|
|
|
The aim of the wrapt module is to provide a transparent object proxy\
|
|
|
|
The aim of the wrapt module is to provide a transparent object proxy\
|
|
|
@ -31,12 +27,6 @@ function wrappers and decorator functions.
|
|
|
|
|
|
|
|
|
|
|
|
%description %_description
|
|
|
|
%description %_description
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python2-wrapt
|
|
|
|
|
|
|
|
Summary: %summary
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python2-wrapt}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python2-wrapt %_description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_docs}
|
|
|
|
%if 0%{?with_docs}
|
|
|
|
%package doc
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for the wrapt module
|
|
|
|
Summary: Documentation for the wrapt module
|
|
|
@ -48,33 +38,23 @@ BuildRequires: python3-sphinx_rtd_theme
|
|
|
|
Documentation for the wrapt module
|
|
|
|
Documentation for the wrapt module
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
%package -n python3-wrapt
|
|
|
|
%package -n python3-wrapt
|
|
|
|
Summary: A Python module for decorators, wrappers and monkey patching
|
|
|
|
Summary: A Python module for decorators, wrappers and monkey patching
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python3-wrapt}
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-wrapt
|
|
|
|
%description -n python3-wrapt
|
|
|
|
The aim of the wrapt module is to provide a transparent object proxy
|
|
|
|
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
|
|
|
|
for Python, which can be used as the basis for the construction of
|
|
|
|
function wrappers and decorator functions.
|
|
|
|
function wrappers and decorator functions.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{sname}-%{version}
|
|
|
|
%setup -q -n %{sname}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
# Remove bundled egg-info in case it exists
|
|
|
|
# Remove bundled egg-info in case it exists
|
|
|
|
rm -rf %{sname}.egg-info
|
|
|
|
rm -rf %{sname}.egg-info
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
|
|
|
%py3_build
|
|
|
|
%py3_build
|
|
|
|
popd
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_docs}
|
|
|
|
%if 0%{?with_docs}
|
|
|
|
# for docs
|
|
|
|
# for docs
|
|
|
@ -84,33 +64,24 @@ popd
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
|
|
|
%py3_install
|
|
|
|
%py3_install
|
|
|
|
popd
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python2-wrapt
|
|
|
|
|
|
|
|
%doc README.rst
|
|
|
|
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%{python2_sitearch}/%{sname}
|
|
|
|
|
|
|
|
%{python2_sitearch}/%{sname}-%{version}-py?.?.egg-info
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_docs}
|
|
|
|
%if 0%{?with_docs}
|
|
|
|
%files doc
|
|
|
|
%files doc
|
|
|
|
%doc docs/build/html
|
|
|
|
%doc docs/build/html
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
%files -n python3-wrapt
|
|
|
|
%files -n python3-wrapt
|
|
|
|
%doc README.rst
|
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%{python3_sitearch}/%{sname}
|
|
|
|
%{python3_sitearch}/%{sname}
|
|
|
|
%{python3_sitearch}/%{sname}-%{version}-py?.?.egg-info
|
|
|
|
%{python3_sitearch}/%{sname}-%{version}-py?.?.egg-info
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Wed Sep 11 2019 Miro Hrončok <mhroncok@redhat.com> - 1.11.2-4
|
|
|
|
|
|
|
|
- Subpackage python2-wrapt has been removed
|
|
|
|
|
|
|
|
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1.11.2-3
|
|
|
|
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1.11.2-3
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
|
|