2d879f6b |
%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
2ffc7209 |
Name: python-ipaddress |
7404bf19 |
Version: 1.0.22
Release: 1%{?dist} |
2ffc7209 |
Summary: Port of the 3.3+ ipaddress module to 2.6, 2.7, 3.2
License: MIT
Group: Development/Languages/Python
Url: https://pypi.python.org/pypi/ipaddress
Vendor: VMware, Inc.
Distribution: Photon
Source0: ipaddress-%{version}.tar.gz |
7404bf19 |
%define sha1 ipaddress=7b60cef3c7fdb7fa9c991ddff5968754cec6adb0 |
2ffc7209 |
BuildRequires: python2
BuildRequires: python2-libs
BuildRequires: python-setuptools
Requires: python2
Requires: python2-libs
BuildArch: noarch
%description
IPv4/IPv6 manipulation library
%prep
%setup -n ipaddress-%{version}
%build |
2d879f6b |
python2 setup.py build |
2ffc7209 |
%install |
2d879f6b |
python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
2ffc7209 |
%check |
2d879f6b |
python2 setup.py test |
2ffc7209 |
%files
%defattr(-,root,root,-) |
2d879f6b |
%{python2_sitelib}/* |
2ffc7209 |
%changelog |
7404bf19 |
* Sun Sep 09 2018 Tapas Kundu <tkundu@vmware.com> 1.0.22-1
- Update to version 1.0.22 |
2d879f6b |
* Thu Jun 01 2017 Dheeraj Shetty <dheerajs@vmware.com> 1.0.18-2
- Change python to python2 |
2ffc7209 |
* Thu Feb 16 2017 Xiaolin Li <xiaolinl@vmware.com> 1.0.18-1
- Initial packaging for Photon |