Hello community,
here is the log from the commit of package python-backports.ssl_match_hostname
for openSUSE:Factory checked in at 2017-04-19 18:06:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-backports.ssl_match_hostname (Old)
and /work/SRC/openSUSE:Factory/.python-backports.ssl_match_hostname.new
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-backports.ssl_match_hostname"
Wed Apr 19 18:06:37 2017 rev:4 rq:484261 version:3.5.0.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-backports.ssl_match_hostname/python-backports.ssl_match_hostname.changes
2016-04-28 17:02:18.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.python-backports.ssl_match_hostname.new/python-backports.ssl_match_hostname.changes
2017-04-19 18:06:38.337376497 +0200
@@ -1,0 +2,28 @@
+Fri Mar 31 19:27:35 UTC 2017 - [email protected]
+
+- %{python_sitelib}/backports is a namespace package, and so under
+ python 2.x it must have a proper
+ %{python_sitelib}/backports/__init__.py file.
+ python-backports provides this __init__.py to prevent backports
+ packages from conflicting.
+ Please see the following links for more details:
+ https://pypi.python.org/pypi/backports/
+ https://www.python.org/dev/peps/pep-0420/%23namespace-packages-today
+
+-------------------------------------------------------------------
+Fri Mar 31 07:16:20 UTC 2017 - [email protected]
+
+- Remove not needed Requires and BuildRequires for python-backports
+
+-------------------------------------------------------------------
+Fri Mar 31 02:19:32 UTC 2017 - [email protected]
+
+- Add python2 provides.
+
+-------------------------------------------------------------------
+Thu Mar 30 22:14:12 UTC 2017 - [email protected]
+
+- Use the common __init__.py used by the python-backports package
+ to avoid conflicts.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-backports.ssl_match_hostname.spec ++++++
--- /var/tmp/diff_new_pack.YURbE1/_old 2017-04-19 18:06:39.025279190 +0200
+++ /var/tmp/diff_new_pack.YURbE1/_new 2017-04-19 18:06:39.029278624 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-backports.ssl_match_hostname
#
-# Copyright (c) 2016 SUSE LINUX 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
@@ -26,12 +26,18 @@
Source:
https://pypi.python.org/packages/source/b/backports.ssl_match_hostname/backports.ssl_match_hostname-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools
+# NOTE:
+# %{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
+Requires: python-backports
+Provides: python2-backports.ssl_match_hostname = %{version}
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
%description
The Secure Sockets layer is only actually *secure*
@@ -70,14 +76,13 @@
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+rm %{buildroot}%{python_sitelib}/backports/__init__.py*
+
%files
%defattr(-,root,root,-)
-%dir %{python_sitelib}/backports/
-%{python_sitelib}/backports/__init__.py*
-%dir %{python_sitelib}/backports/ssl_match_hostname/
%doc backports/ssl_match_hostname/README.txt
%doc backports/ssl_match_hostname/LICENSE.txt
-%{python_sitelib}/backports/ssl_match_hostname/__init__.py*
+%{python_sitelib}/backports/ssl_match_hostname/
%{python_sitelib}/backports.ssl_match_hostname-%{version}-py*.egg-info
%changelog