!4 remove python2 of package python-singledispatch

From: @zhanghua1831
Reviewed-by: @small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2020-10-30 10:10:49 +08:00 committed by Gitee
commit b5a1abd47c

View File

@ -1,6 +1,6 @@
Name: python-singledispatch
Version: 3.4.0.3
Release: 14
Release: 15
Summary: Transform a method into a single-dispatch generic function
License: MIT
URL: https://pypi.org/project/singledispatch/
@ -11,21 +11,7 @@ BuildArch: noarch
%description
PEP 443 proposed to expose a mechanism in the functools standard library module in Python 3.4
that provides a simple form of generic programming known as single-dispatch generic functions.
This library is a backport of this functionality to Python 2.6 - 3.3.
%package -n python2-singledispatch
Summary: Transform a method into a single-dispatch generic function
%{?python_provide:%python_provide python2-singledispatch}
Provides: python-singledispatch = %{version}-%{release}
Obsoletes: python-singledispatch < 3.4.0.3-2
BuildRequires: python2-devel python2-setuptools python2-six
Requires: python2-six
%description -n python2-singledispatch
PEP 443 proposed to expose a mechanism in the functools standard library module in Python 3.4
that provides a simple form of generic programming known as single-dispatch generic functions.
This library is a backport of this functionality to Python 2.6 - 3.3.
This library is a backport of this functionality to Python 3.3.
%package -n python3-singledispatch
Summary: Transform a method into a single-dispatch generic function
@ -36,7 +22,7 @@ Requires: python3-six
%description -n python3-singledispatch
PEP 443 proposed to expose a mechanism in the functools standard library module in Python 3.4
that provides a simple form of generic programming known as single-dispatch generic functions.
This library is a backport of this functionality to Python 2.6 - 3.3.
This library is a backport of this functionality to Python 3.3.
%prep
%autosetup -n singledispatch-%{version} -p1
@ -45,23 +31,14 @@ sed -i '1d' singledispatch.py
sed -i '1d' singledispatch_helpers.py
%build
%{__python2} setup.py build
%{__python3} setup.py build
%install
%{__python2} setup.py install --skip-build --root %{buildroot}
%{__python3} setup.py install --skip-build --root %{buildroot}
%check
%{__python2} setup.py test
%{__python3} setup.py test
%files -n python2-singledispatch
%doc README.rst
%{python2_sitelib}/singledispatch-%{version}-py?.?.egg-info
%{python2_sitelib}/singledispatch.py*
%{python2_sitelib}/singledispatch_helpers.py*
%files -n python3-singledispatch
%doc README.rst
%{python3_sitelib}/singledispatch-%{version}-py?.?.egg-info
@ -70,7 +47,8 @@ sed -i '1d' singledispatch_helpers.py
%{python3_sitelib}/__pycache__/*
%changelog
* Tue Nov 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.1.11-2
* Wed Oct 21 2020 zhanghua <zhanghua40@huawei.com> - 3.4.0.3-15
- remove python2 subpackage, fix changelog version as 3.4.0.3
* Tue Nov 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.4.0.3-14
- Package init