Hello community,

here is the log from the commit of package python-Twisted for openSUSE:Factory 
checked in at 2020-05-28 09:07:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Twisted (Old)
 and      /work/SRC/openSUSE:Factory/.python-Twisted.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Twisted"

Thu May 28 09:07:32 2020 rev:39 rq:806989 version:19.10.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Twisted/python-Twisted.changes    
2020-02-06 13:19:10.168670598 +0100
+++ /work/SRC/openSUSE:Factory/.python-Twisted.new.3606/python-Twisted.changes  
2020-05-28 09:07:36.123749891 +0200
@@ -1,0 +2,5 @@
+Mon May 18 13:15:58 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-Twisted.spec ++++++
--- /var/tmp/diff_new_pack.dQDWB1/_old  2020-05-28 09:07:37.235753225 +0200
+++ /var/tmp/diff_new_pack.dQDWB1/_new  2020-05-28 09:07:37.239753237 +0200
@@ -25,7 +25,7 @@
 Summary:        An asynchronous networking framework written in Python
 License:        MIT
 Group:          Development/Languages/Python
-URL:            http://twistedmatrix.com/
+URL:            https://twistedmatrix.com/
 Source:         
https://files.pythonhosted.org/packages/source/T/Twisted/%{modname}-%{version}.tar.bz2
 Patch1:         skip_MultiCast.patch
 Patch2:         no-pygtkcompat.patch
@@ -73,6 +73,8 @@
 Requires:       python-pyserial >= 3.0
 Requires:       python-service_identity >= 18.1.0
 Requires:       python-zope.interface >= 4.4.2
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 %ifpython2
 Provides:       %{oldpython}-twisted = %{version}
 Obsoletes:      %{oldpython}-twisted < %{version}
@@ -153,6 +155,26 @@
 export PYTHONDONTWRITEBYTECODE=1
 %python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m 
twisted.trial twisted
 
+%post
+%python_install_alternative twist
+%python_install_alternative trial
+%python_install_alternative tkconch
+%python_install_alternative pyhtmlizer
+%python_install_alternative conch
+%python_install_alternative ckeygen
+%python_install_alternative cftp
+%python_install_alternative twistd
+
+%postun
+%python_uninstall_alternative twist
+%python_uninstall_alternative trial trial.1
+%python_uninstall_alternative tkconch tkconch.1
+%python_uninstall_alternative pyhtmlizer pyhtmlizer.1
+%python_uninstall_alternative conch conch.1
+%python_uninstall_alternative ckeygen ckeygen.1
+%python_uninstall_alternative cftp cftp.1
+%python_uninstall_alternative twistd twistd.1
+
 %files -n %{name}-doc
 %doc docs/*
 
@@ -161,24 +183,24 @@
 %doc NEWS.rst README.rst
 %{_bindir}/*-%{python_bin_suffix}
 %{_mandir}/man1/*-%{python_bin_suffix}.1%{?ext_man}
-%python3_only %{_bindir}/twistd
-%python3_only %{_bindir}/cftp
-%python3_only %{_bindir}/ckeygen
-%python3_only %{_bindir}/conch
+%python_alternative %{_bindir}/twistd
+%python_alternative %{_bindir}/cftp
+%python_alternative %{_bindir}/ckeygen
+%python_alternative %{_bindir}/conch
 # Supported only in python2
 %python2_only %{_bindir}/mailmail
-%python3_only %{_bindir}/pyhtmlizer
-%python3_only %{_bindir}/tkconch
-%python3_only %{_bindir}/trial
-%python3_only %{_bindir}/twist
-%python3_only %{_mandir}/man1/twistd.1%{?ext_man}
-%python3_only %{_mandir}/man1/cftp.1%{?ext_man}
-%python3_only %{_mandir}/man1/ckeygen.1%{?ext_man}
-%python3_only %{_mandir}/man1/conch.1%{?ext_man}
+%python_alternative %{_bindir}/pyhtmlizer
+%python_alternative %{_bindir}/tkconch
+%python_alternative %{_bindir}/trial
+%python_alternative %{_bindir}/twist
+%python_alternative %{_mandir}/man1/twistd.1%{?ext_man}
+%python_alternative %{_mandir}/man1/cftp.1%{?ext_man}
+%python_alternative %{_mandir}/man1/ckeygen.1%{?ext_man}
+%python_alternative %{_mandir}/man1/conch.1%{?ext_man}
 %python2_only %{_mandir}/man1/mailmail.1%{?ext_man}
-%python3_only %{_mandir}/man1/pyhtmlizer.1%{?ext_man}
-%python3_only %{_mandir}/man1/tkconch.1%{?ext_man}
-%python3_only %{_mandir}/man1/trial.1%{?ext_man}
+%python_alternative %{_mandir}/man1/pyhtmlizer.1%{?ext_man}
+%python_alternative %{_mandir}/man1/tkconch.1%{?ext_man}
+%python_alternative %{_mandir}/man1/trial.1%{?ext_man}
 %{python_sitearch}/*
 
 %changelog


Reply via email to