Hello community,

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

Package is "python-pymavlink"

Sat May 23 17:27:00 2020 rev:4 rq:807709 version:2.4.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pymavlink/python-pymavlink.changes        
2020-03-21 00:02:53.729148483 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pymavlink.new.2738/python-pymavlink.changes  
    2020-05-23 17:28:14.575512160 +0200
@@ -1,0 +2,5 @@
+Wed May 20 07:26:34 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-pymavlink.spec ++++++
--- /var/tmp/diff_new_pack.bctWDo/_old  2020-05-23 17:28:15.171513449 +0200
+++ /var/tmp/diff_new_pack.bctWDo/_new  2020-05-23 17:28:15.175513457 +0200
@@ -17,6 +17,7 @@
 #
 
 
+%define binaries mavtomfile mavtogpx mavsummarize mavsigloss mavsearch 
mavplayback mavparms mavparmdiff mavmission mavloss mavlogdump 
mavlink_bitmask_decoder mavkml mavgraph mavgpslock mavgen mavflighttime 
mavflightmodes mavfft_isb mavfft mavextract magfit_motors magfit_gps 
magfit_delta magfit MPU6KSearch
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-pymavlink
 Version:        2.4.6
@@ -29,13 +30,15 @@
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module future}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires:       python-future
+Requires:       python-lxml
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 # SECTION test requirements
 BuildRequires:  %{python_module lxml}
 # /SECTION
-BuildRequires:  fdupes
-Requires:       python-future
-Requires:       python-lxml
 %python_subpackages
 
 %description
@@ -62,6 +65,9 @@
 %python_expand find %{buildroot}%{$python_sitearch} -name "*.xml" -exec chmod 
-x '{}' \;
 # strip .py file extension from scripts
 %python_expand cd %{buildroot}%{_bindir} && find . -name "*.py" -exec sh -c 
'mv $0 `basename "$0" .py`' '{}' \;
+for b in %{binaries}; do
+  %python_clone -a %{buildroot}%{_bindir}/$b
+done
 #
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
 # remove unneeded files
@@ -71,34 +77,44 @@
 # FIXME: testsuite does not run in OBS
 #%%python_exec setup.py test
 
+%post
+for b in %{binaries}; do
+  %python_install_alternative $b
+done
+
+%postun
+for b in %{binaries}; do
+  %python_uninstall_alternative $b
+done
+
 %files %{python_files}
 %doc README.md
-%python3_only %{_bindir}/MPU6KSearch
-%python3_only %{_bindir}/magfit
-%python3_only %{_bindir}/magfit_delta
-%python3_only %{_bindir}/magfit_gps
-%python3_only %{_bindir}/magfit_motors
-%python3_only %{_bindir}/mavextract
-%python3_only %{_bindir}/mavfft
-%python3_only %{_bindir}/mavfft_isb
-%python3_only %{_bindir}/mavflightmodes
-%python3_only %{_bindir}/mavflighttime
-%python3_only %{_bindir}/mavgen
-%python3_only %{_bindir}/mavgpslock
-%python3_only %{_bindir}/mavgraph
-%python3_only %{_bindir}/mavkml
-%python3_only %{_bindir}/mavlink_bitmask_decoder
-%python3_only %{_bindir}/mavlogdump
-%python3_only %{_bindir}/mavloss
-%python3_only %{_bindir}/mavmission
-%python3_only %{_bindir}/mavparmdiff
-%python3_only %{_bindir}/mavparms
-%python3_only %{_bindir}/mavplayback
-%python3_only %{_bindir}/mavsearch
-%python3_only %{_bindir}/mavsigloss
-%python3_only %{_bindir}/mavsummarize
-%python3_only %{_bindir}/mavtogpx
-%python3_only %{_bindir}/mavtomfile
+%python_alternative %{_bindir}/MPU6KSearch
+%python_alternative %{_bindir}/magfit
+%python_alternative %{_bindir}/magfit_delta
+%python_alternative %{_bindir}/magfit_gps
+%python_alternative %{_bindir}/magfit_motors
+%python_alternative %{_bindir}/mavextract
+%python_alternative %{_bindir}/mavfft
+%python_alternative %{_bindir}/mavfft_isb
+%python_alternative %{_bindir}/mavflightmodes
+%python_alternative %{_bindir}/mavflighttime
+%python_alternative %{_bindir}/mavgen
+%python_alternative %{_bindir}/mavgpslock
+%python_alternative %{_bindir}/mavgraph
+%python_alternative %{_bindir}/mavkml
+%python_alternative %{_bindir}/mavlink_bitmask_decoder
+%python_alternative %{_bindir}/mavlogdump
+%python_alternative %{_bindir}/mavloss
+%python_alternative %{_bindir}/mavmission
+%python_alternative %{_bindir}/mavparmdiff
+%python_alternative %{_bindir}/mavparms
+%python_alternative %{_bindir}/mavplayback
+%python_alternative %{_bindir}/mavsearch
+%python_alternative %{_bindir}/mavsigloss
+%python_alternative %{_bindir}/mavsummarize
+%python_alternative %{_bindir}/mavtogpx
+%python_alternative %{_bindir}/mavtomfile
 %{python_sitearch}/mavnative*.so
 %{python_sitearch}/pymavlink*
 


Reply via email to