commit 06ad5fa5b5495a011617dd1db2bd4a8420b4c9d0 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:15:02 2019 -0400 Package init diff --git a/ipaddress-1.0.18.tar.gz b/ipaddress-1.0.18.tar.gz new file mode 100644 index 0000000..c79343f Binary files /dev/null and b/ipaddress-1.0.18.tar.gz differ diff --git a/python-ipaddress.spec b/python-ipaddress.spec new file mode 100644 index 0000000..d370982 --- /dev/null +++ b/python-ipaddress.spec @@ -0,0 +1,82 @@ +Name: python-ipaddress +Version: 1.0.18 +Release: 7 +Summary: IPv4/IPv6 manipulation library +License: Python +URL: https://github.com/phihag/ipaddress +Source0: https://pypi.io/packages/source/i/ipaddress/ipaddress-%{version}.tar.gz + +BuildArch: noarch + +%if 0%{?with_python2} +BuildRequires: python2-devel python2-setuptools +%endif + +%if 0%{?with_python3} +BuildRequires: python3-devel python3-setuptools +%endif + +%description +Python 3.3+'s ipaddress for Python 2.6, 2.7, 3.2. + +%if 0%{?with_python2} +%package -n python2-ipaddress +Summary: Python2 package for python-ipaddress +%{?python_provide: %python_provide python2-ipaddress} + +%description -n python2-ipaddress +Python2 package for python-ipaddress +%endif + +%if 0%{?with_python3} +%package -n python3-ipaddress +Summary: Python3 package for python-ipaddress + +%description -n python3-ipaddress +Python3 package for python-ipaddress +%endif + +%prep +%autosetup -n ipaddress-%{version} -p1 + +%build +%if 0%{?with_python2} +%py2_build +%endif + +%if 0%{?with_python3} +%py3_build +%endif + +%install +%if 0%{?with_python2} +%py2_install +%endif + +%if 0%{?with_python3} +%py3_install +%endif + +%if 0%{?with_python2} +%files -n python2-ipaddress +%defattr(-,root,root) +%doc README.md +%{python2_sitelib}/* +%endif + +%if 0%{?with_python3} +%files -n python3-ipaddress +%defattr(-,root,root) +%doc README.md +%{python3_sitelib}/* +%endif + +%changelog +* Mon Sep 16 2019 openEuler Buildteam - 1.0.18-7 +- Type:bugfix +- Id:NA +- SUG:NA +- DESC:bugfix about the provides for python2-ipaddress + +* Tue Sep 3 2019 openEuler Buildteam - 1.0.18-6 +- Package init