From 91963db0116b9c44f637fcd046cdddcc4b10a12a Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 7 May 2019 08:13:21 -0400 Subject: [PATCH] import python-ipaddress-1.0.18-5.module+el8+2540+b19c9b35 --- .gitignore | 1 + .python-ipaddress.metadata | 1 + SPECS/python-ipaddress.spec | 53 +++++++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 .gitignore create mode 100644 .python-ipaddress.metadata create mode 100644 SPECS/python-ipaddress.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..24f1410 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/ipaddress-1.0.18.tar.gz diff --git a/.python-ipaddress.metadata b/.python-ipaddress.metadata new file mode 100644 index 0000000..4775547 --- /dev/null +++ b/.python-ipaddress.metadata @@ -0,0 +1 @@ +f15a3714e4bea2ddfe54e80ad6f7b5de57cc94c5 SOURCES/ipaddress-1.0.18.tar.gz diff --git a/SPECS/python-ipaddress.spec b/SPECS/python-ipaddress.spec new file mode 100644 index 0000000..c6fefdb --- /dev/null +++ b/SPECS/python-ipaddress.spec @@ -0,0 +1,53 @@ +%global pyname ipaddress + +Name: python-%{pyname} +Version: 1.0.18 +Release: 5%{?dist} +Summary: Port of the python 3.3+ ipaddress module to 2.6+ + +License: Python +URL: https://pypi.python.org/pypi/ipaddress/ +Source0: https://pypi.python.org/packages/source/i/%{pyname}/%{pyname}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python2-devel + +%global _description\ +ipaddress provides the capabilities to create, manipulate and operate\ +on IPv4 and IPv6 addresses and networks.\ +\ +The functions and classes in this module make it straightforward to\ +handle various tasks related to IP addresses, including checking\ +whether or not two hosts are on the same subnet, iterating over all\ +hosts in a particular subnet, checking whether or not a string\ +represents a valid IP address or network definition, and so on. + +%description %_description + +%package -n python2-%{pyname} +Summary: %summary +%{?python_provide:%python_provide python2-%{pyname}} + +%description -n python2-%{pyname} %_description + +%prep +%setup -q -n %{pyname}-%{version} + + +%build +%{__python2} setup.py build + + +%install +rm -rf $RPM_BUILD_ROOT +%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT + + +%files -n python2-%{pyname} +%doc README.md +%{python2_sitelib}/* + + +%changelog +* Mon Jul 16 2018 Lumír Balhar - 1.0.18-5 +- First version for python27 module