Hello community, here is the log from the commit of package python-napalm for openSUSE:Factory checked in at 2020-05-28 09:10:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-napalm (Old) and /work/SRC/openSUSE:Factory/.python-napalm.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-napalm" Thu May 28 09:10:56 2020 rev:5 rq:808037 version:3.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-napalm/python-napalm.changes 2020-05-15 23:52:22.617551119 +0200 +++ /work/SRC/openSUSE:Factory/.python-napalm.new.3606/python-napalm.changes 2020-05-28 09:11:43.204372548 +0200 @@ -1,0 +2,5 @@ +Thu May 21 10:56:30 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-napalm.spec ++++++ --- /var/tmp/diff_new_pack.I2Al28/_old 2020-05-28 09:11:46.648380872 +0200 +++ /var/tmp/diff_new_pack.I2Al28/_new 2020-05-28 09:11:46.652380882 +0200 @@ -43,6 +43,8 @@ Requires: python-scp Requires: python-setuptools >= 38.4.0 Requires: python-textfsm +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module Jinja2} @@ -78,6 +80,10 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/napalm +%python_clone -a %{buildroot}%{_bindir}/cl_napalm_validate +%python_clone -a %{buildroot}%{_bindir}/cl_napalm_test +%python_clone -a %{buildroot}%{_bindir}/cl_napalm_configure %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -86,13 +92,25 @@ rm -Rf test/junos/ %pytest +%post +%python_install_alternative napalm +%python_install_alternative cl_napalm_validate +%python_install_alternative cl_napalm_test +%python_install_alternative cl_napalm_configure + +%postun +%python_uninstall_alternative napalm +%python_uninstall_alternative cl_napalm_validate +%python_uninstall_alternative cl_napalm_test +%python_uninstall_alternative cl_napalm_configure + %files %{python_files} %license LICENSE %doc README.md -%python3_only %{_bindir}/cl_napalm_configure -%python3_only %{_bindir}/cl_napalm_test -%python3_only %{_bindir}/cl_napalm_validate -%python3_only %{_bindir}/napalm +%python_alternative %{_bindir}/cl_napalm_configure +%python_alternative %{_bindir}/cl_napalm_test +%python_alternative %{_bindir}/cl_napalm_validate +%python_alternative %{_bindir}/napalm %{python_sitelib}/* %changelog
