Hello community,

here is the log from the commit of package python-pastream for openSUSE:Factory 
checked in at 2020-05-26 17:16:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pastream (Old)
 and      /work/SRC/openSUSE:Factory/.python-pastream.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pastream"

Tue May 26 17:16:50 2020 rev:3 rq:807649 version:0.2.0.post0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pastream/python-pastream.changes  
2019-12-07 15:09:03.003849697 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pastream.new.2738/python-pastream.changes    
    2020-05-26 17:17:52.415788189 +0200
@@ -1,0 +2,5 @@
+Wed May 20 07:26:08 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-pastream.spec ++++++
--- /var/tmp/diff_new_pack.VusQSk/_old  2020-05-26 17:17:53.943791474 +0200
+++ /var/tmp/diff_new_pack.VusQSk/_new  2020-05-26 17:17:53.947791483 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pastream
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
 Summary:        GIL-less Portaudio Streams for Python
 License:        MIT
 Group:          Development/Languages/Python
-Url:            http://github.com/tgarc/pastream
+URL:            https://github.com/tgarc/pastream
 Source0:        
https://files.pythonhosted.org/packages/source/p/pastream/pastream-%{version}.tar.gz
 Source100:      python-pastream-rpmlintrc
 BuildRequires:  %{python_module cffi >= 1.4.0}
@@ -32,22 +32,24 @@
 BuildRequires:  %{python_module pa-ringbuffer >= 0.1.2}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
+BuildRequires:  pkgconfig
 BuildRequires:  python-rpm-macros
 BuildRequires:  pkgconfig(portaudiocpp)
-# SECTION test requirements
-BuildRequires:  %{python_module SoundFile >= 0.9.0}
-BuildRequires:  %{python_module numpy}
-BuildRequires:  %{python_module pytest >= 3.0}
-BuildRequires:  %{python_module sounddevice >= 0.3.9}
-# /SECTION
 Requires:       libsndfile
 Requires:       portaudio
 Requires:       python-SoundFile >= 0.9.0
 Requires:       python-cffi >= 1.0.0
 Requires:       python-pa-ringbuffer >= 0.1.2
 Requires:       python-sounddevice >= 0.3.9
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 Recommends:     python-numpy
-
+# SECTION test requirements
+BuildRequires:  %{python_module SoundFile >= 0.9.0}
+BuildRequires:  %{python_module numpy}
+BuildRequires:  %{python_module pytest >= 3.0}
+BuildRequires:  %{python_module sounddevice >= 0.3.9}
+# /SECTION
 %python_subpackages
 
 %description
@@ -66,6 +68,7 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/pastream
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
 
 # Tests require an audio device
@@ -76,10 +79,16 @@
 # }
 # popd
 
+%post
+%python_install_alternative pastream
+
+%postun
+%python_uninstall_alternative pastream
+
 %files %{python_files}
 %doc CHANGELOG.rst README.rst
 %license LICENSE
-%python3_only %{_bindir}/pastream
+%python_alternative %{_bindir}/pastream
 %{python_sitearch}/*
 
 %changelog


Reply via email to