Hello community,

here is the log from the commit of package python-pysrt for openSUSE:Factory 
checked in at 2020-05-06 11:04:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pysrt (Old)
 and      /work/SRC/openSUSE:Factory/.python-pysrt.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pysrt"

Wed May  6 11:04:31 2020 rev:5 rq:800527 version:1.1.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pysrt/python-pysrt.changes        
2020-04-18 00:33:48.122471210 +0200
+++ /work/SRC/openSUSE:Factory/.python-pysrt.new.2738/python-pysrt.changes      
2020-05-06 11:04:39.335312693 +0200
@@ -1,0 +2,5 @@
+Tue May  5 22:18:14 UTC 2020 - Matej Cepl <mc...@suse.com>
+
+- Don't use %python3_only command, but properly use alternatives.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-pysrt.spec ++++++
--- /var/tmp/diff_new_pack.bRQfmn/_old  2020-05-06 11:04:41.151316591 +0200
+++ /var/tmp/diff_new_pack.bRQfmn/_new  2020-05-06 11:04:41.159316609 +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