Hello community, here is the log from the commit of package python-npTDMS for openSUSE:Factory checked in at 2020-05-26 17:20:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-npTDMS (Old) and /work/SRC/openSUSE:Factory/.python-npTDMS.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-npTDMS" Tue May 26 17:20:25 2020 rev:2 rq:808045 version:0.18.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-npTDMS/python-npTDMS.changes 2019-12-10 22:41:54.505820575 +0100 +++ /work/SRC/openSUSE:Factory/.python-npTDMS.new.2738/python-npTDMS.changes 2020-05-26 17:20:28.484123711 +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.Eibxms/_old 2020-05-26 17:20:29.244125345 +0200 +++ /var/tmp/diff_new_pack.Eibxms/_new 2020-05-26 17:20:29.244125345 +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
