diff --git a/python-texttable.spec b/python-texttable.spec new file mode 100644 index 0000000000000000000000000000000000000000..e7897f0200688cc954ce3b7485c19e18c36dfe81 --- /dev/null +++ b/python-texttable.spec @@ -0,0 +1,56 @@ +Name: python-texttable +Version: 1.4.0 +Release: 2 +Summary: Python module for creating simple ASCII tables +License: LGPLv3 +URL: https://github.com/foutaise/texttable +Source0: https://github.com/foutaise/texttable/archive/v%{version}.tar.gz +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 +BuildRequires: python3-devel, python3-setuptools, python3-pytest + +%description -n python3-texttable +Python module for creating simple ASCII tables + +%prep +%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 +* Thu Feb 13 2020 Ruijun Ge - 1.4.0-2 +- init package diff --git a/v1.4.0.tar.gz b/v1.4.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..66ba34d17b338aaa43bc03dba4537b3ed9e34112 Binary files /dev/null and b/v1.4.0.tar.gz differ