diff --git a/python-texttable.changes b/python-texttable.changes index 1552700..9523908 100644 --- a/python-texttable.changes +++ b/python-texttable.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Dec 7 13:10:46 UTC 2017 - sebix+novell.com@sebix.at + +- update to 1.1.1, no upstream changelog available + ------------------------------------------------------------------- Tue Aug 18 09:06:05 UTC 2015 - jmassaguerpla@suse.com diff --git a/python-texttable.spec b/python-texttable.spec index 8fd7c54..621288c 100644 --- a/python-texttable.spec +++ b/python-texttable.spec @@ -1,7 +1,7 @@ # # spec file for package python-texttable # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,40 +16,49 @@ # -%define upstream_name texttable +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_with test Name: python-texttable -Version: 0.8.3 +Version: 1.1.1 Release: 0 Summary: Module for creating simple ASCII tables -License: LGPL-3.0+ +License: LGPL-3.0 Group: Development/Languages/Python -Url: http://foutaise.org/code -Source0: %{upstream_name}-%{version}.tar.gz -BuildRequires: python-setuptools -BuildRoot: %{_tmppath}/%{name}-%{version}-build - -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else -BuildArch: noarch +Url: https://github.com/foutaise/texttable/ +Source: https://files.pythonhosted.org/packages/source/t/texttable/texttable-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +%if %{with test} +BuildRequires: python3-testsuite %endif +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch + +%python_subpackages %description -Texttable is a module to generate a formatted text table, using ASCII +texttable is a module to generate a formatted text table, using ASCII characters. %prep -%setup -q -n %{upstream_name}-%{version} +%setup -q -n texttable-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} -%files -%defattr(-,root,root,-) -%{python_sitelib}/%{upstream_name}.py* -%{python_sitelib}/%{upstream_name}-%{version}*egg-info +%if %{with test} +%check +%python_exec setup.py test +%endif + +%files %{python_files} +%license LICENSE +%doc README.md +%{python_sitelib}/* %changelog diff --git a/texttable-0.8.3.tar.gz b/texttable-0.8.3.tar.gz deleted file mode 100644 index e50e50c..0000000 --- a/texttable-0.8.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f333ac915e7c5daddc7d4877b096beafe74ea88b4b746f82a4b110f84e348701 -size 8569 diff --git a/texttable-1.1.1.tar.gz b/texttable-1.1.1.tar.gz new file mode 100644 index 0000000..5299d64 --- /dev/null +++ b/texttable-1.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:44674d1d470a9fc264c4d1eba44b74463ca0066d7b954453dd5a4f8057779c9c +size 11623