remove python2 dependency

This commit is contained in:
19909236985 2020-10-30 14:32:42 +08:00
parent 00a4a01ed3
commit 9ddfdea311

View File

@ -1,6 +1,6 @@
Name: python-texttable
Version: 1.6.2
Release: 1
Release: 2
Summary: Python module for creating simple ASCII tables
License: LGPLv3
URL: https://github.com/foutaise/texttable
@ -10,14 +10,6 @@ BuildArch: noarch
%description
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
%{?python_provide:%python_provide python3-texttable}
Summary: Python module for creating simple ASCII tables
@ -30,28 +22,23 @@ Python module for creating simple ASCII tables
%autosetup -n texttable-%{version}
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%check
py.test-%{python2_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
%doc PKG-INFO README.md
%license LICENSE
%{python3_sitelib}/*
%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
- update package to 1.6.2