15
0
forked from pool/python-ipy

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
This commit is contained in:
Tomáš Chvátal
2018-11-23 08:32:13 +00:00
committed by Git OBS Bridge
parent 6bba18ec70
commit 5375446dd2
4 changed files with 34 additions and 23 deletions

View File

@@ -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