!2 remove python2 subpackage

From: @lei_ju
Reviewed-by: @myeuler
Signed-off-by: @myeuler
This commit is contained in:
openeuler-ci-bot 2020-10-30 16:04:04 +08:00 committed by Gitee
commit 9283a5cbd0

View File

@ -1,6 +1,6 @@
Name: python-ipython_genutils
Version: 0.1.0
Release: 15
Release: 16
Summary: IPython vestigial utilities
License: BSD
URL: https://github.com/ipython/ipython_genutils
@ -10,16 +10,6 @@ BuildArch: noarch
%description
The package provides IPython vestigial utilities.
%package -n python2-ipython_genutils
Summary: IPython vestigial utilities
BuildRequires: python2-devel python2-nose
%{?python_provide:%python_provide python2-ipython_genutils}
%description -n python2-ipython_genutils
The package provides IPython vestigial utilities.
%package -n python%{python3_pkgversion}-ipython_genutils
Summary: IPython vestigial utilities
BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}-nose
@ -28,38 +18,27 @@ BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}-no
%description -n python%{python3_pkgversion}-ipython_genutils
The package provides IPython vestigial utilities.
%prep
%autosetup -n ipython_genutils-%{version}
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%check
export LANG=en_US.UTF-8
nosetests-%{python2_version} -v
nosetests-%{python3_version} -v
%files -n python2-ipython_genutils
%doc README.md
%license COPYING.md
%{python2_sitelib}/*
%files -n python%{python3_pkgversion}-ipython_genutils
%doc README.md
%license COPYING.md
%{python3_sitelib}/*
%changelog
* Wed Oct 21 2020 leiju <leiju4@huawei.com> - 0.1.0-16
- remove python2 subpackage
* Thu Mar 5 2020 zhujunhao <zhujunhao5@huawei.com> - 0.1.0-15
- Package init