From 5375446dd29965b6cc0da5be4994c872725377bedaeb58ddffe6bf1dae6aacac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 23 Nov 2018 08:32:13 +0000 Subject: [PATCH] Accepting request 651337 from home:jsegitz:branches:devel:languages:python - Update to version 0.83 * Add carrier grade NAT ranges * Unbreak lots of packing systems by not having a letter in the release version * Correct x.next() -> next(x) python3 compatability * Add support for array slices * Add __and__ and isdisjoint for IPSet * Fix a bug in IPSet where contains may incorrectly return false - Moved to singlespec and added explicit license OBS-URL: https://build.opensuse.org/request/show/651337 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ipy?expand=0&rev=10 --- IPy-0.81.tar.gz | 3 --- IPy-0.83.tar.gz | 3 +++ python-ipy.changes | 12 ++++++++++++ python-ipy.spec | 39 +++++++++++++++++++-------------------- 4 files changed, 34 insertions(+), 23 deletions(-) delete mode 100644 IPy-0.81.tar.gz create mode 100644 IPy-0.83.tar.gz diff --git a/IPy-0.81.tar.gz b/IPy-0.81.tar.gz deleted file mode 100644 index 184e93f..0000000 --- a/IPy-0.81.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4bc17a9b5e72e893a034e77193b82c2bc321ddf8d8c345281f2bb81bb007b939 -size 32318 diff --git a/IPy-0.83.tar.gz b/IPy-0.83.tar.gz new file mode 100644 index 0000000..6293445 --- /dev/null +++ b/IPy-0.83.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:61da5a532b159b387176f6eabf11946e7458b6df8fb8b91ff1d345ca7a6edab8 +size 31816 diff --git a/python-ipy.changes b/python-ipy.changes index 627681c..dc5ce9b 100644 --- a/python-ipy.changes +++ b/python-ipy.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Thu Nov 22 14:26:39 UTC 2018 - jsegitz@suse.com + +- Update to version 0.83 + * Add carrier grade NAT ranges + * Unbreak lots of packing systems by not having a letter in the release version + * Correct x.next() -> next(x) python3 compatability + * Add support for array slices + * Add __and__ and isdisjoint for IPSet + * Fix a bug in IPSet where contains may incorrectly return false +- Moved to singlespec and added explicit license + ------------------------------------------------------------------- Sun Dec 8 21:12:16 UTC 2013 - p.drouand@gmail.com diff --git a/python-ipy.spec b/python-ipy.spec index 609fe9b..836af43 100644 --- a/python-ipy.spec +++ b/python-ipy.spec @@ -1,7 +1,7 @@ # # spec file for package python-ipy # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,23 +16,21 @@ # -%define modname IPy - +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-ipy -Version: 0.81 +Version: 0.83 Release: 0 +Summary: Class and tools for handling of IPv4 and IPv6 addresses and networks License: BSD-3-Clause -Summary: Class and Tools for Handling of IPv4 and IPv6 Addresses and Networks -Url: http://software.inl.fr/trac/wiki/IPy Group: Development/Languages/Python -Source: https://pypi.python.org/packages/source/I/IPy/IPy-%{version}.tar.gz -BuildRequires: python-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else +Url: https://github.com/autocracy/python-ipy +Source: https://files.pythonhosted.org/packages/source/I/IPy/IPy-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildArch: noarch -%endif + +%python_subpackages %description The IP class allows a comfortable parsing and handling for most @@ -42,17 +40,18 @@ doesn't share the implementation. It doesn't share non-CIDR netmasks, so funky stuff like a netmask of 0xffffff0f can't be done here. %prep -%setup -q -n %{modname}-%{version} +%setup -q -n IPy-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +#install COPYING %{buildroot} -%files -%defattr(-,root,root) -%doc AUTHORS COPYING ChangeLog README -%{python_sitelib} +%files %{python_files} +%{python_sitelib}/* +%license COPYING %changelog