Hello community,
here is the log from the commit of package
python-backports.shutil_get_terminal_size for openSUSE:Factory checked in at
2018-03-28 10:28:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-backports.shutil_get_terminal_size
(Old)
and
/work/SRC/openSUSE:Factory/.python-backports.shutil_get_terminal_size.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-backports.shutil_get_terminal_size"
Wed Mar 28 10:28:51 2018 rev:3 rq:590711 version:1.0.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-backports.shutil_get_terminal_size/python-backports.shutil_get_terminal_size.changes
2017-05-08 19:02:56.908699981 +0200
+++
/work/SRC/openSUSE:Factory/.python-backports.shutil_get_terminal_size.new/python-backports.shutil_get_terminal_size.changes
2018-03-28 10:28:51.886475933 +0200
@@ -1,0 +2,7 @@
+Fri Mar 23 14:35:36 UTC 2018 - [email protected]
+
+- Switch to singlespec package
+- Build for python3 < 3.3
+- Make structure consistent with other backports packages
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-backports.shutil_get_terminal_size.spec ++++++
--- /var/tmp/diff_new_pack.uRx2cO/_old 2018-03-28 10:28:52.830441987 +0200
+++ /var/tmp/diff_new_pack.uRx2cO/_new 2018-03-28 10:28:52.838441699 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-backports.shutil_get_terminal_size
#
-# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,6 +15,7 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-backports.shutil_get_terminal_size
Version: 1.0.0
Release: 0
@@ -22,24 +23,28 @@
Summary: A backport of the get_terminal_size function from Python 3.3's
shutil
Url: https://github.com/chrippa/backports.shutil_get_terminal_size
Group: Development/Languages/Python
-Source:
https://pypi.io/packages/source/b/backports.shutil_get_terminal_size/backports.shutil_get_terminal_size-%{version}.tar.gz
-BuildRequires: python-devel
-BuildRequires: python-setuptools
-#BuildRequires: python-nose
-#BuildRequires: python-pytest
+Source:
https://files.pythonhosted.org/packages/source/b/backports.shutil_get_terminal_size/backports.shutil_get_terminal_size-%{version}.tar.gz
+BuildRequires: %{python_module devel}
+BuildRequires: %{python_module setuptools}
+BuildRequires: fdupes
+BuildRequires: python-rpm-macros
# NOTE:
-# %{python_sitelib}/backports is a namespace package, and so under python 2 it
must have a proper namespace __init__.py
+# %%{python_sitelib}/backports is a namespace package, and so under python 2
it must have a proper namespace __init__.py
# python-backports provides this __init__.py to prevent backports packages
from conflicting.
# Please see:
# https://pypi.python.org/pypi/backports/
# https://www.python.org/dev/peps/pep-0420/%23namespace-packages-today
# If you need to link, the python-backports package is built as a subpackage
of python-configparser
-BuildRequires: python-backports
+BuildRequires: %{python_module backports}
Requires: python-backports
-Provides: python2-backports.shutil_get_terminal_size
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
+%if %{python3_version_nodots} >=33
+%define skip_python3 1
+%endif
+
+%python_subpackages
+
%description
A backport of the `get_terminal_size`_ function from Python 3.3's shutil.
Unlike the original version it is written in pure Python rather than C,
@@ -49,20 +54,18 @@
%setup -q -n backports.shutil_get_terminal_size-%{version}
%build
-python setup.py build
+%python_build
%install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
-
-rm %{buildroot}%{python_sitelib}/backports/__init__.py*
-
-%check
-#nosetests
+%python_install
+%python_expand rm %{buildroot}%{$python_sitelib}/backports/__init__.py*
+%python_expand rm -rf %{buildroot}%{$python_sitelib}/backports/__pycache__/
+%python_expand %fdupes
%{buildroot}%{$python_sitelib}/backports/shutil_get_terminal_size/
-%files
+%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README.rst
%{python_sitelib}/backports/shutil_get_terminal_size/
-%{python_sitelib}/backports.shutil_get_terminal_size-%{version}-py%{py_ver}.egg-info
+%{python_sitelib}/backports.shutil_get_terminal_size-%{version}-py*.egg-info
%changelog