|
|
32c800 |
%global pyname ipaddress
|
|
|
32c800 |
|
|
|
32c800 |
Name: python-%{pyname}
|
|
|
32c800 |
Version: 1.0.18
|
|
|
32c800 |
Release: 6%{?dist}
|
|
|
32c800 |
Summary: Port of the python 3.3+ ipaddress module to 2.6+
|
|
|
32c800 |
|
|
|
32c800 |
License: Python
|
|
|
32c800 |
URL: https://pypi.python.org/pypi/ipaddress/
|
|
|
32c800 |
Source0: https://pypi.python.org/packages/source/i/%{pyname}/%{pyname}-%{version}.tar.gz
|
|
|
32c800 |
|
|
|
32c800 |
BuildArch: noarch
|
|
|
32c800 |
BuildRequires: python2-devel
|
|
|
32c800 |
|
|
|
32c800 |
%global _description\
|
|
|
32c800 |
ipaddress provides the capabilities to create, manipulate and operate\
|
|
|
32c800 |
on IPv4 and IPv6 addresses and networks.\
|
|
|
32c800 |
\
|
|
|
32c800 |
The functions and classes in this module make it straightforward to\
|
|
|
32c800 |
handle various tasks related to IP addresses, including checking\
|
|
|
32c800 |
whether or not two hosts are on the same subnet, iterating over all\
|
|
|
32c800 |
hosts in a particular subnet, checking whether or not a string\
|
|
|
32c800 |
represents a valid IP address or network definition, and so on.
|
|
|
32c800 |
|
|
|
32c800 |
%description %_description
|
|
|
32c800 |
|
|
|
32c800 |
%package -n python2-%{pyname}
|
|
|
32c800 |
Summary: %summary
|
|
|
32c800 |
%{?python_provide:%python_provide python2-%{pyname}}
|
|
|
32c800 |
|
|
|
32c800 |
%description -n python2-%{pyname} %_description
|
|
|
32c800 |
|
|
|
32c800 |
%prep
|
|
|
32c800 |
%setup -q -n %{pyname}-%{version}
|
|
|
32c800 |
|
|
|
32c800 |
|
|
|
32c800 |
%build
|
|
|
32c800 |
%{__python2} setup.py build
|
|
|
32c800 |
|
|
|
32c800 |
|
|
|
32c800 |
%install
|
|
|
32c800 |
rm -rf $RPM_BUILD_ROOT
|
|
|
32c800 |
%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
32c800 |
|
|
|
32c800 |
|
|
|
32c800 |
%files -n python2-%{pyname}
|
|
|
32c800 |
%doc README.md
|
|
|
32c800 |
%{python2_sitelib}/*
|
|
|
32c800 |
|
|
|
32c800 |
|
|
|
32c800 |
%changelog
|
|
|
32c800 |
* Thu Apr 25 2019 Tomas Orsava <torsava@redhat.com> - 1.0.18-6
|
|
|
32c800 |
- Bumping due to problems with modular RPM upgrade path
|
|
|
32c800 |
- Resolves: rhbz#1695587
|
|
|
32c800 |
|
|
|
32c800 |
* Mon Jul 16 2018 LumÃr Balhar <lbalhar@redhat.com> - 1.0.18-5
|
|
|
32c800 |
- First version for python27 module
|