!5 remove python2 dependency
From: @xinghe_1 Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
dbe79f68a8
@ -1,6 +1,6 @@
|
|||||||
Name: python-texttable
|
Name: python-texttable
|
||||||
Version: 1.6.2
|
Version: 1.6.2
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Python module for creating simple ASCII tables
|
Summary: Python module for creating simple ASCII tables
|
||||||
License: LGPLv3
|
License: LGPLv3
|
||||||
URL: https://github.com/foutaise/texttable
|
URL: https://github.com/foutaise/texttable
|
||||||
@ -10,14 +10,6 @@ BuildArch: noarch
|
|||||||
%description
|
%description
|
||||||
Python module for creating simple ASCII tables
|
Python module for creating simple ASCII tables
|
||||||
|
|
||||||
%package -n python2-texttable
|
|
||||||
%{?python_provide:%python_provide python2-texttable}
|
|
||||||
Summary: Python module for creating simple ASCII tables
|
|
||||||
BuildRequires: python2-devel, python2-setuptools, python2-pytest
|
|
||||||
|
|
||||||
%description -n python2-texttable
|
|
||||||
Python module for creating simple ASCII tables
|
|
||||||
|
|
||||||
%package -n python3-texttable
|
%package -n python3-texttable
|
||||||
%{?python_provide:%python_provide python3-texttable}
|
%{?python_provide:%python_provide python3-texttable}
|
||||||
Summary: Python module for creating simple ASCII tables
|
Summary: Python module for creating simple ASCII tables
|
||||||
@ -30,28 +22,23 @@ Python module for creating simple ASCII tables
|
|||||||
%autosetup -n texttable-%{version}
|
%autosetup -n texttable-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
py.test-%{python2_version} --verbose tests.py
|
|
||||||
py.test-%{python3_version} --verbose tests.py
|
py.test-%{python3_version} --verbose tests.py
|
||||||
|
|
||||||
%files -n python2-texttable
|
|
||||||
%doc PKG-INFO README.md
|
|
||||||
%license LICENSE
|
|
||||||
%{python2_sitelib}/*
|
|
||||||
|
|
||||||
%files -n python3-texttable
|
%files -n python3-texttable
|
||||||
%doc PKG-INFO README.md
|
%doc PKG-INFO README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 30 2020 yanglongkang <yanglongkang@huawei.com> - 1.6.2-2
|
||||||
|
- remove python2 dependency
|
||||||
|
|
||||||
* Thu Jul 16 2020 jixinjie <jixinjie@huawei.com> - 1.6.2-1
|
* Thu Jul 16 2020 jixinjie <jixinjie@huawei.com> - 1.6.2-1
|
||||||
- update package to 1.6.2
|
- update package to 1.6.2
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user