Hello community, here is the log from the commit of package python-npTDMS for openSUSE:Leap:15.2 checked in at 2020-05-28 20:10:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/python-npTDMS (Old) and /work/SRC/openSUSE:Leap:15.2/.python-npTDMS.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-npTDMS" Thu May 28 20:10:04 2020 rev:2 rq:809273 version:0.18.1 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/python-npTDMS/python-npTDMS.changes 2020-02-09 15:02:36.326749240 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.python-npTDMS.new.3606/python-npTDMS.changes 2020-05-28 20:10:05.178986525 +0200 @@ -1,0 +2,5 @@ +Thu May 21 10:56:39 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-npTDMS.spec ++++++ --- /var/tmp/diff_new_pack.1ZfiE5/_old 2020-05-28 20:10:05.522987550 +0200 +++ /var/tmp/diff_new_pack.1ZfiE5/_new 2020-05-28 20:10:05.530987573 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-npTDMS # -# Copyright (c) 2019 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 @@ -29,6 +29,8 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-numpy +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module numpy} @@ -46,15 +48,22 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/tdmsinfo %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %python_exec -B -m unittest discover -s nptdms -p "*_test.py" +%post +%python_install_alternative tdmsinfo + +%postun +%python_uninstall_alternative tdmsinfo + %files %{python_files} %doc README.rst %license COPYING COPYING.LESSER -%python3_only %{_bindir}/tdmsinfo +%python_alternative %{_bindir}/tdmsinfo %{python_sitelib}/* %changelog
