remove python2

This commit is contained in:
zhangtao2020 2020-10-30 10:07:19 +08:00
parent f7af57f83d
commit 1c800db020

View File

@ -1,24 +1,17 @@
Name: python-cycler Name: python-cycler
Version: 0.10.0 Version: 0.10.0
Release: 2 Release: 3
Summary: Composable cycles Summary: Composable cycles
License: BSD License: BSD
URL: https://github.com/matplotlib/cycler.git URL: https://github.com/matplotlib/cycler.git
Source0: https://github.com/matplotlib/cycler/archive/v%{version}.tar.gz#/cycler-%{version}.tar.gz Source0: https://github.com/matplotlib/cycler/archive/v%{version}.tar.gz#/cycler-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires:python2-devel python2-nose python2-six python3-devel python3-nose python3-six BuildRequires:python3-devel python3-nose python3-six
%description %description
Composable cycles used by matplotlib. Composable cycles used by matplotlib.
%package -n python2-cycler
Summary: Composable cycles
%{?python_provide:%python_provide python2-cycler}
%description -n python2-cycler
Composable cycles used by matplotlib.
%package -n python3-cycler %package -n python3-cycler
Summary: Composable cycles Summary: Composable cycles
%{?python_provide:%python_provide python3-cycler} %{?python_provide:%python_provide python3-cycler}
@ -30,22 +23,14 @@ Composable cycles used by matplotlib.
%autosetup -n cycler-%{version} %autosetup -n cycler-%{version}
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_install %py3_install
%check %check
PYTHONPATH=%{buildroot}%{python2_sitelib} %{__python2} run_tests.py
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} run_tests.py PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} run_tests.py
%files -n python2-cycler
%license LICENSE
%doc README.rst
%{python2_sitelib}/*
%files -n python3-cycler %files -n python3-cycler
%license LICENSE %license LICENSE
%doc README.rst %doc README.rst
@ -54,5 +39,7 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} run_tests.py
%{python3_sitelib}/cycler-*.egg-info/ %{python3_sitelib}/cycler-*.egg-info/
%changelog %changelog
* Thu Oct 22 2020 zhangtao <zhangtao221@huawei.com> - 0.10.0-3
- remove python2
* Tue Nov 5 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.10.0-2 * Tue Nov 5 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.10.0-2
- Package init - Package init