Hello community,

here is the log from the commit of package python-pysrt for openSUSE:Leap:15.2 
checked in at 2020-05-06 20:40:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-pysrt (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-pysrt.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pysrt"

Wed May  6 20:40:41 2020 rev:14 rq:800629 version:1.1.2

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-pysrt/python-pysrt.changes      
2020-04-18 18:41:08.713968132 +0200
+++ /work/SRC/openSUSE:Leap:15.2/.python-pysrt.new.2738/python-pysrt.changes    
2020-05-06 20:40:42.188684023 +0200
@@ -1,0 +2,5 @@
+Tue May  5 22:18:14 UTC 2020 - Matej Cepl <[email protected]>
+
+- Don't use %python3_only command, but properly use alternatives.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-pysrt.spec ++++++
--- /var/tmp/diff_new_pack.i0vqvl/_old  2020-05-06 20:40:42.536684744 +0200
+++ /var/tmp/diff_new_pack.i0vqvl/_new  2020-05-06 20:40:42.540684752 +0200
@@ -31,6 +31,8 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-chardet
+Requires(post):   update-alternatives
+Requires(postun):  update-alternatives
 BuildArch:      noarch
 %python_subpackages
 
@@ -48,14 +50,21 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/srt
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %pytest
 
+%post
+%python_install_alternative srt
+
+%postun
+%python_uninstall_alternative srt
+
 %files %{python_files}
 %doc README.rst
-%python3_only %{_bindir}/srt
+%python_alternative %{_bindir}/srt
 %{python_sitelib}/pysrt
 %{python_sitelib}/pysrt-%{version}-py%{python_version}.egg-info
 


Reply via email to