diff --git a/netifaces-0.10.6.tar.gz b/netifaces-0.10.6.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0cee125360249c43b79fad8f0d99fdd9e65f05cf Binary files /dev/null and b/netifaces-0.10.6.tar.gz differ diff --git a/python-netifaces.spec b/python-netifaces.spec new file mode 100644 index 0000000000000000000000000000000000000000..ef34ca73e013c90b4e07fc5d0954f9c6e5efaf9c --- /dev/null +++ b/python-netifaces.spec @@ -0,0 +1,55 @@ +Name: python-netifaces +Version: 0.10.6 +Release: 7 +Summary: Portable network interface information +License: MIT +URL: https://pypi.python.org/pypi/netifaces +Source0: https://files.pythonhosted.org/packages/source/n/netifaces/netifaces-%{version}.tar.gz +BuildRequires: python2-devel python2-setuptools + +%description +netifaces provides a way for Python programmers to get access to a list of the network interfaces on the local machine, +and to obtain the addresses of those network interfaces. + +%package -n python2-netifaces +Summary: Portable network interface information with Python 2 library. +%{?python_provide:%python_provide python2-netifaces} + +%description -n python2-netifaces +Python programmers to get access to a list of the network interfaces on the local machine with Python 2 library. + +%package -n python%{python3_pkgversion}-netifaces +Summary: Portable network interface information with Python %{python3_pkgversion} library. + +BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}-setuptools +%{?python_provide:%python_provide python%{python3_pkgversion}-netifaces} + +%description -n python%{python3_pkgversion}-netifaces +Python programmers to get access to a list of the network interfaces on the local machine with Python %{python3_pkgversion} library. + +%prep +%autosetup -n netifaces-%{version} -p1 + +%build +%py2_build +%py3_build + + +%install +%py2_install +%py3_install + + +%files -n python2-netifaces +%doc README.rst +%{python2_sitearch}/netifaces-%{version}-*.egg-info/ +%{python2_sitearch}/netifaces.so + +%files -n python%{python3_pkgversion}-netifaces +%doc README.rst +%{python3_sitearch}/netifaces-%{version}-*.egg-info/ +%{python3_sitearch}/netifaces*.so + +%changelog +* Fri Feb 14 2020 gulining - 0.10.6-7 +- Package init