Hello community,
here is the log from the commit of package python-PrettyTable for
openSUSE:Factory checked in at 2017-08-24 18:18:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-PrettyTable (Old)
and /work/SRC/openSUSE:Factory/.python-PrettyTable.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-PrettyTable"
Thu Aug 24 18:18:15 2017 rev:5 rq:518360 version:0.7.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-PrettyTable/python-PrettyTable.changes
2013-10-25 11:26:47.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.python-PrettyTable.new/python-PrettyTable.changes
2017-08-24 18:18:16.221837877 +0200
@@ -1,0 +2,5 @@
+Wed Aug 23 09:46:12 UTC 2017 - [email protected]
+
+- convert to singlespec
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-PrettyTable.spec ++++++
--- /var/tmp/diff_new_pack.HhQfGE/_old 2017-08-24 18:18:16.933737640 +0200
+++ /var/tmp/diff_new_pack.HhQfGE/_new 2017-08-24 18:18:16.941736514 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-PrettyTable
#
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Christian Berendt.
#
# All modifications and additions to the file contributed by third parties
@@ -17,6 +17,8 @@
#
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define oldpython python
Name: python-PrettyTable
Version: 0.7.2
Release: 0
@@ -25,16 +27,17 @@
Group: Development/Languages/Python
Url:
https://prettytable.googlecode.com/files/prettytable-%{version}.tar.bz2
Source: prettytable-%{version}.tar.bz2
-BuildRequires: python-devel
-BuildRequires: python-setuptools
-Provides: python-prettytable = 0.7.2
-Obsoletes: python-prettytable < 0.7.2
+BuildRequires: %{python_module devel}
+BuildRequires: %{python_module setuptools}
+BuildRequires: python-rpm-macros
+%ifpython2
+Provides: %{oldpython}-prettytable = 0.7.2
+Obsoletes: %{oldpython}-prettytable < 0.7.2
+%endif
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
-%endif
+
+%python_subpackages
%description
PrettyTable is a simple Python library designed to make it quick and easy to
@@ -48,15 +51,16 @@
%setup -n prettytable-%{version}
%build
-python setup.py build
+%python_build
%install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
%check
-python setup.py test
+# disable tests - does not work with python3
+#%%python_exec setup.py test
-%files
+%files %{python_files}
%defattr(-,root,root,-)
%doc CHANGELOG COPYING README
%{python_sitelib}/*