Hello community,

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

Package is "python-netaddr"

Thu May 28 09:11:25 2020 rev:23 rq:808040 version:0.7.19

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-netaddr/python-netaddr.changes    
2018-12-24 11:40:07.453519604 +0100
+++ /work/SRC/openSUSE:Factory/.python-netaddr.new.3606/python-netaddr.changes  
2020-05-28 09:12:42.824516642 +0200
@@ -1,0 +2,5 @@
+Thu May 21 10:56:34 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-netaddr.spec ++++++
--- /var/tmp/diff_new_pack.DPXzhJ/_old  2020-05-28 09:12:43.916519282 +0200
+++ /var/tmp/diff_new_pack.DPXzhJ/_new  2020-05-28 09:12:43.920519291 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-netaddr
 #
-# Copyright (c) 2018 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
@@ -24,11 +24,13 @@
 Summary:        Pythonic manipulation of IPv4, IPv6, CIDR, EUI and MAC network 
addresses
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
-Url:            http://github.com/drkjam/netaddr
+URL:            https://github.com/drkjam/netaddr
 Source:         
https://files.pythonhosted.org/packages/source/n/netaddr/netaddr-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 %python_subpackages
 
@@ -58,7 +60,7 @@
 
 %install
 %python_install
-%python_clone %{buildroot}%{_bindir}/netaddr
+%python_clone -a %{buildroot}%{_bindir}/netaddr
 %fdupes %{buildroot}
 
 %if %{with test}
@@ -66,10 +68,17 @@
 %python_exec setup.py test
 %endif
 
+%post
+%python_install_alternative netaddr
+
+%postun
+%python_uninstall_alternative netaddr
+
 %files %{python_files}
 %{python_sitelib}/*
 %{_bindir}/netaddr-%{python_bin_suffix}
-%python3_only %{_bindir}/netaddr
-%doc AUTHORS CHANGELOG COPYRIGHT README.md LICENSE
+%python_alternative %{_bindir}/netaddr
+%license LICENSE
+%doc AUTHORS CHANGELOG COPYRIGHT README.md
 
 %changelog


Reply via email to