Hello community,
here is the log from the commit of package python-napalm-ansible for
openSUSE:Factory checked in at 2020-05-28 09:11:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-napalm-ansible (Old)
and /work/SRC/openSUSE:Factory/.python-napalm-ansible.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-napalm-ansible"
Thu May 28 09:11:08 2020 rev:3 rq:808038 version:1.1.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-napalm-ansible/python-napalm-ansible.changes
2020-05-16 22:27:52.425462694 +0200
+++
/work/SRC/openSUSE:Factory/.python-napalm-ansible.new.3606/python-napalm-ansible.changes
2020-05-28 09:12:12.028442212 +0200
@@ -1,0 +2,5 @@
+Thu May 21 10:56:31 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-napalm-ansible.spec ++++++
--- /var/tmp/diff_new_pack.9EVCkL/_old 2020-05-28 09:12:15.824451387 +0200
+++ /var/tmp/diff_new_pack.9EVCkL/_new 2020-05-28 09:12:15.828451396 +0200
@@ -27,15 +27,17 @@
URL: https://github.com/napalm-automation/napalm-ansible
Source:
https://github.com/napalm-automation/napalm-ansible/archive/%{version}.tar.gz#/napalm-ansible-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
+BuildRequires: fdupes
BuildRequires: python-rpm-macros
+Requires: python-napalm
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module napalm}
BuildRequires: %{python_module pytest}
BuildRequires: ansible
# /SECTION
-BuildRequires: fdupes
-Requires: python-napalm
-BuildArch: noarch
%python_subpackages
%description
@@ -54,15 +56,22 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/napalm-ansible
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
+%post
+%python_install_alternative napalm-ansible
+
+%postun
+%python_uninstall_alternative napalm-ansible
+
%files %{python_files}
%license LICENSE
%doc README.md CHANGELOG.rst
-%python3_only %{_bindir}/napalm-ansible
+%python_alternative %{_bindir}/napalm-ansible
%{python_sitelib}/*
%changelog