# Created by pyp2rpm-3.3.2 %global pypi_name ipcalc Name: python-%{pypi_name} Version: 1.99.0 Release: 1%{?dist} Summary: IP subnet calculator License: None URL: https://github.com/tehmaze/ipcalc/ Source0: https://files.pythonhosted.org/packages/source/i/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %description This module allows you to perform IP subnet calculations, there is support for both IPv4 and IPv6 CIDR notation.Example Usage :: >>> import ipcalc >>> for x in ipcalc.Network('172.16.42.0/30'): ... print str(x) 172.16.42.1 172.16.42.2 >>> subnet ipcalc.Network('2001:beef:babe::/48') >>> print str(subnet.network()) 2001:beef:babe:0000:0000:0000:0000:0000 >>> print str(subnet.netmask())... %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} This module allows you to perform IP subnet calculations, there is support for both IPv4 and IPv6 CIDR notation.Example Usage :: >>> import ipcalc >>> for x in ipcalc.Network('172.16.42.0/30'): ... print str(x) 172.16.42.1 172.16.42.2 >>> subnet ipcalc.Network('2001:beef:babe::/48') >>> print str(subnet.network()) 2001:beef:babe:0000:0000:0000:0000:0000 >>> print str(subnet.netmask())... %prep %autosetup -n %{pypi_name}-%{version} %build %py3_build %install %py3_install %files -n python3-%{pypi_name} %license LICENSE.md %doc README.md %{python3_sitelib}/__pycache__/* %{python3_sitelib}/%{pypi_name}.py %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Fri Dec 27 2019 Felix Kaechele - 1.99.0-1 - Initial package.