remove python2 of package python-singledispatch

This commit is contained in:
zhanghua 2020-10-29 15:24:14 +08:00
parent cd21788132
commit 33f7a9c5f0

View File

@ -1,6 +1,6 @@
Name: python-singledispatch Name: python-singledispatch
Version: 3.4.0.3 Version: 3.4.0.3
Release: 14 Release: 15
Summary: Transform a method into a single-dispatch generic function Summary: Transform a method into a single-dispatch generic function
License: MIT License: MIT
URL: https://pypi.org/project/singledispatch/ URL: https://pypi.org/project/singledispatch/
@ -11,21 +11,7 @@ BuildArch: noarch
%description %description
PEP 443 proposed to expose a mechanism in the functools standard library module in Python 3.4 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. 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 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.
%package -n python3-singledispatch %package -n python3-singledispatch
Summary: Transform a method into a single-dispatch generic function Summary: Transform a method into a single-dispatch generic function
@ -36,7 +22,7 @@ Requires: python3-six
%description -n python3-singledispatch %description -n python3-singledispatch
PEP 443 proposed to expose a mechanism in the functools standard library module in Python 3.4 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. 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 %prep
%autosetup -n singledispatch-%{version} -p1 %autosetup -n singledispatch-%{version} -p1
@ -45,23 +31,14 @@ sed -i '1d' singledispatch.py
sed -i '1d' singledispatch_helpers.py sed -i '1d' singledispatch_helpers.py
%build %build
%{__python2} setup.py build
%{__python3} setup.py build %{__python3} setup.py build
%install %install
%{__python2} setup.py install --skip-build --root %{buildroot}
%{__python3} setup.py install --skip-build --root %{buildroot} %{__python3} setup.py install --skip-build --root %{buildroot}
%check %check
%{__python2} setup.py test
%{__python3} 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 %files -n python3-singledispatch
%doc README.rst %doc README.rst
%{python3_sitelib}/singledispatch-%{version}-py?.?.egg-info %{python3_sitelib}/singledispatch-%{version}-py?.?.egg-info
@ -70,7 +47,8 @@ sed -i '1d' singledispatch_helpers.py
%{python3_sitelib}/__pycache__/* %{python3_sitelib}/__pycache__/*
%changelog %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 - Package init