Blame SPECS/python-ipaddress.spec

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