Hello community,

here is the log from the commit of package python-getmac for openSUSE:Factory 
checked in at 2020-05-28 09:16:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-getmac (Old)
 and      /work/SRC/openSUSE:Factory/.python-getmac.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-getmac"

Thu May 28 09:16:57 2020 rev:4 rq:809371 version:0.8.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-getmac/python-getmac.changes      
2020-04-16 23:06:55.607870997 +0200
+++ /work/SRC/openSUSE:Factory/.python-getmac.new.3606/python-getmac.changes    
2020-05-28 09:17:08.928939582 +0200
@@ -1,0 +2,5 @@
+Tue May 26 06:34:22 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-getmac.spec ++++++
--- /var/tmp/diff_new_pack.AwUsVK/_old  2020-05-28 09:17:09.932941951 +0200
+++ /var/tmp/diff_new_pack.AwUsVK/_new  2020-05-28 09:17:09.932941951 +0200
@@ -32,6 +32,8 @@
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 %python_subpackages
 
@@ -49,6 +51,8 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_mandir}/man1/getmac.1
+%python_clone -a %{buildroot}%{_bindir}/getmac
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
@@ -57,11 +61,17 @@
 # test_cli_multiple_debug_levels  same as above
 %pytest tests -k 'not test_get_default_iface_freebsd and not test_cli_main and 
not test_cli_multiple_debug_levels'
 
+%post
+%python_install_alternative getmac getmac.1
+
+%postun
+%python_uninstall_alternative getmac
+
 %files %{python_files}
 %doc CHANGELOG.md README.md
 %license LICENSE
-%python3_only %{_bindir}/getmac
-%python3_only %{_mandir}/man1/getmac.1*
+%python_alternative %{_bindir}/getmac
+%python_alternative %{_mandir}/man1/getmac.1%{?ext_man}
 %{python_sitelib}/getmac*
 
 %changelog


Reply via email to