Hello community,

here is the log from the commit of package python-netaddr for openSUSE:Factory 
checked in at 2017-08-24 18:52:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-netaddr (Old)
 and      /work/SRC/openSUSE:Factory/.python-netaddr.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-netaddr"

Thu Aug 24 18:52:15 2017 rev:21 rq:516767 version:0.7.19

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-netaddr/python-netaddr.changes    
2017-01-25 23:32:45.793506528 +0100
+++ /work/SRC/openSUSE:Factory/.python-netaddr.new/python-netaddr.changes       
2017-08-24 18:52:16.662444497 +0200
@@ -0,0 +1,6 @@
+
+-------------------------------------------------------------------
+Sun Aug  6 09:31:51 UTC 2017 - [email protected]
+
+- Convert to singlespec
+

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

Other differences:
------------------
++++++ python-netaddr.spec ++++++
--- /var/tmp/diff_new_pack.ndAIYu/_old  2017-08-24 18:52:17.622309343 +0200
+++ /var/tmp/diff_new_pack.ndAIYu/_new  2017-08-24 18:52:17.638307090 +0200
@@ -16,24 +16,22 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+#%%bcond_without test
 Name:           python-netaddr
 Version:        0.7.19
 Release:        0
-Url:            http://github.com/drkjam/netaddr
 Summary:        Pythonic manipulation of IPv4, IPv6, CIDR, EUI and MAC network 
addresses
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
-Source:         
https://pypi.io/packages/source/n/netaddr/netaddr-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
-%if 0%{?suse_version}
-%py_requires
-%if 0%{?suse_version} > 1110
+Url:            http://github.com/drkjam/netaddr
+Source:         
https://files.pythonhosted.org/packages/source/n/netaddr/netaddr-%{version}.tar.gz
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
 BuildArch:      noarch
-%endif
-%endif
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%python_subpackages
 
 %description
 A pure Python network address representation and manipulation library.
@@ -57,15 +55,22 @@
 sed -i "1d" netaddr/{ip/iana,eui/ieee,tests/__init__}.py # Fix non-executable 
scripts
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%python_clone %{buildroot}%{_bindir}/netaddr
+%fdupes %{buildroot}
+
+%if %{with test}
+%check
+%python_exec setup.py test
+%endif
 
-%files
-%defattr(-,root,root,-)
+%files %{python_files}
 %{python_sitelib}/*
-%{_bindir}/netaddr
+%{_bindir}/netaddr-%{python_bin_suffix}
+%python3_only %{_bindir}/netaddr
 %doc AUTHORS CHANGELOG COPYRIGHT README.md LICENSE
 
 %changelog


Reply via email to