diff --git a/netifaces-0.10.4.tar.gz b/netifaces-0.10.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..c86ff9253f8a80b6ef21bdecbd651906cf01538b Binary files /dev/null and b/netifaces-0.10.4.tar.gz differ diff --git a/netifaces-0.10.9.tar.gz b/netifaces-0.10.9.tar.gz deleted file mode 100644 index 97ea2e70f2f78ae539c4a5ecb097f9c2d64215c6..0000000000000000000000000000000000000000 Binary files a/netifaces-0.10.9.tar.gz and /dev/null differ diff --git a/python-netifaces.spec b/python-netifaces.spec index 70acbee01d6a32fd4d299f34a97306aac56217d0..afe891535d45e672cf3d6de69f39537cde4a05c6 100644 --- a/python-netifaces.spec +++ b/python-netifaces.spec @@ -1,64 +1,42 @@ %global _empty_manifest_terminate_build 0 Name: python-netifaces -Version: 0.10.9 +Version: 0.10.4 Release: 1 Summary: Portable network interface information. License: MIT License -URL: https://github.com/al45tair/netifaces -Source0: https://files.pythonhosted.org/packages/0d/18/fd6e9c71a35b67a73160ec80a49da63d1eed2d2055054cc2995714949132/netifaces-0.10.9.tar.gz - +URL: https://bitbucket.org/al45tair/netifaces +Source0: https://files.pythonhosted.org/packages/18/fa/dd13d4910aea339c0bb87d2b3838d8fd923c11869b1f6e741dbd0ff3bc00/netifaces-0.10.4.tar.gz %description -It’s been annoying me for some time that there’s no easy way to get the -address(es) of the machine’s network interfaces from Python. There is -a good reason for this difficulty, which is that it is virtually impossible -to do so in a portable manner. However, it seems to me that there should -be a package you can easy_install that will take care of working out the -details of doing so on the machine you’re using, then you can get on with -writing Python code without concerning yourself with the nitty gritty of -system-dependent low-level networking APIs. -This package attempts to solve that problem. +Portable network interface information. + -%package -n python3-netifaces +%package -n python2-netifaces Summary: Portable network interface information. -Provides: python-netifaces -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-cffi +Provides: python2-netifaces +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python2-cffi BuildRequires: gcc BuildRequires: gdb -%description -n python3-netifaces -It’s been annoying me for some time that there’s no easy way to get the -address(es) of the machine’s network interfaces from Python. There is -a good reason for this difficulty, which is that it is virtually impossible -to do so in a portable manner. However, it seems to me that there should -be a package you can easy_install that will take care of working out the -details of doing so on the machine you’re using, then you can get on with -writing Python code without concerning yourself with the nitty gritty of -system-dependent low-level networking APIs. -This package attempts to solve that problem. +%description -n python2-netifaces +Portable network interface information. + %package help Summary: Development documents and examples for netifaces -Provides: python3-netifaces-doc +Provides: python2-netifaces-doc %description help -It’s been annoying me for some time that there’s no easy way to get the -address(es) of the machine’s network interfaces from Python. There is -a good reason for this difficulty, which is that it is virtually impossible -to do so in a portable manner. However, it seems to me that there should -be a package you can easy_install that will take care of working out the -details of doing so on the machine you’re using, then you can get on with -writing Python code without concerning yourself with the nitty gritty of -system-dependent low-level networking APIs. -This package attempts to solve that problem. +Portable network interface information. + %prep -%autosetup -n netifaces-0.10.9 +%autosetup -n netifaces-0.10.4 %build -%py3_build +%py2_build %install -%py3_install +%py2_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi @@ -85,12 +63,12 @@ popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . -%files -n python3-netifaces -f filelist.lst -%dir %{python3_sitearch}/* +%files -n python2-netifaces -f filelist.lst +%dir %{python2_sitearch}/* %files help -f doclist.lst %{_docdir}/* %changelog -* Fri Oct 09 2020 Python_Bot +* Fri May 14 2021 openstack-sig - Package Spec generated