Hello community, here is the log from the commit of package python3-backports.ssl_match_hostname for openSUSE:Factory checked in at 2016-06-02 09:36:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-backports.ssl_match_hostname (Old) and /work/SRC/openSUSE:Factory/.python3-backports.ssl_match_hostname.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python3-backports.ssl_match_hostname" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-backports.ssl_match_hostname/python3-backports.ssl_match_hostname.changes 2016-04-28 16:59:23.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python3-backports.ssl_match_hostname.new/python3-backports.ssl_match_hostname.changes 2016-06-02 09:37:00.000000000 +0200 @@ -1,0 +2,12 @@ +Fri May 20 19:01:56 UTC 2016 - toddrme2178@gmail.com + +- Implement update-alternatives. + +------------------------------------------------------------------- +Sun May 8 07:15:35 UTC 2016 - arun@gmx.de + +- specfile: + * updated source url to files.pythonhosted.org + + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-backports.ssl_match_hostname.spec ++++++ --- /var/tmp/diff_new_pack.ThEoNL/_old 2016-06-02 09:37:01.000000000 +0200 +++ /var/tmp/diff_new_pack.ThEoNL/_new 2016-06-02 09:37:01.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package python3-backports.ssl_match_hostname # -# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2016 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 @@ -23,11 +23,13 @@ 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 +Source: https://files.pythonhosted.org/packages/source/b/backports.ssl_match_hostname/backports.ssl_match_hostname-%{version}.tar.gz BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +Requires(post): update-alternatives +Requires(postun): update-alternatives %description The Secure Sockets layer is only actually *secure* @@ -45,9 +47,30 @@ %install python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} +# Prepare for update-alternatives usage +mkdir -p %{buildroot}%{_sysconfdir}/alternatives/ +mv %{buildroot}%{python3_sitelib}/backports/__init__.py %{buildroot}%{python3_sitelib}/backports/__init__ssl_match_hostname.py +ln -s -f %{_sysconfdir}/alternatives/__init__.py %{buildroot}%{python3_sitelib}/backports/__init__.py +# create a dummy target for /etc/alternatives/__init__.py +touch %{buildroot}%{_sysconfdir}/alternatives/__init__.py +rm -rf %{buildroot}%{python3_sitelib}/backports/__pycache__/ + +%post +"%_sbindir/update-alternatives" \ + --install %{python3_sitelib}/backports/__init__.py __init__.py %{python3_sitelib}/backports/__init__ssl_match_hostname.py 30 + +%postun +if [ $1 -eq 0 ] ; then + "%_sbindir/update-alternatives" --remove __init__.py %{python3_sitelib}/backports/__init__ssl_match_hostname.py +fi + %files %defattr(-,root,root,-) -%{python3_sitelib}/backports +%dir %{python3_sitelib}/backports/ +%{python3_sitelib}/backports/__init__.py +%{python3_sitelib}/backports/__init__ssl_match_hostname.py +%ghost %{_sysconfdir}/alternatives/__init__.py +%{python3_sitelib}/backports/ssl_match_hostname/ %{python3_sitelib}/backports.ssl_match_hostname-%{version}-py*.egg-info %changelog