commit python-backports.ssl_match_hostname for openSUSE:Factory
Hello community, here is the log from the commit of package python-backports.ssl_match_hostname for openSUSE:Factory checked in at 2017-08-10 14:01:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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" Thu Aug 10 14:01:16 2017 rev:5 rq:514261 version:3.5.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-backports.ssl_match_hostname/python-backports.ssl_match_hostname.changes 2017-04-19 18:06:38.337376497 +0200 +++ /work/SRC/openSUSE:Factory/.python-backports.ssl_match_hostname.new/python-backports.ssl_match_hostname.changes 2017-08-10 14:11:05.173044379 +0200 @@ -1,0 +2,5 @@ +Thu Aug 3 16:51:09 UTC 2017 - toddrme2178@gmail.com + +- Support python3 for python < 3.5 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-backports.ssl_match_hostname.spec ++++++ --- /var/tmp/diff_new_pack.gIvOtB/_old 2017-08-10 14:11:06.076917118 +0200 +++ /var/tmp/diff_new_pack.gIvOtB/_new 2017-08-10 14:11:06.088915430 +0200 @@ -16,29 +16,32 @@ # +%bcond_without tests + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-backports.ssl_match_hostname Version: 3.5.0.1 Release: 0 -Summary: The ssl.match_hostname() function from Python 3.4 +Summary: The ssl.match_hostname() function from Python 3.5 License: Python-2.0 Group: Development/Languages/Python Url: http://bitbucket.org/brandon/backports.ssl_match_hostname -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 +Source: https://files.pythonhosted.org/packages/source/b/backports.ssl_match_hostname/backports.ssl_match_hostname-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module backports} +BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-backports -Provides: python2-backports.ssl_match_hostname = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +%if %{python3_version_nodots} > 34 +%define skip_python3 1 +%endif + +%python_subpackages + %description The Secure Sockets layer is only actually *secure* if you check the hostname in the certificate returned @@ -71,17 +74,19 @@ %setup -q -n backports.ssl_match_hostname-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} - -rm %{buildroot}%{python_sitelib}/backports/__init__.py* +%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_sitearch} -%files +%files %{python_files} %defattr(-,root,root,-) %doc backports/ssl_match_hostname/README.txt %doc backports/ssl_match_hostname/LICENSE.txt +%dir %{python_sitelib}/backports/ %{python_sitelib}/backports/ssl_match_hostname/ %{python_sitelib}/backports.ssl_match_hostname-%{version}-py*.egg-info
participants (1)
-
root@hilbert.suse.de