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/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..b59c04fd2a1267e5a8dc3d4c705db378687b984d 100644 --- a/python-netifaces.spec +++ b/python-netifaces.spec @@ -1,64 +1,43 @@ %global _empty_manifest_terminate_build 0 Name: python-netifaces -Version: 0.10.9 +Version: 0.10.6 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/72/01/ba076082628901bca750bf53b322a8ff10c1d757dc29196a8e6082711c9d/netifaces-0.10.6.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: python2-pip 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.6 %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 +64,14 @@ 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 +* Thu Apr 29 2021 openstack-sig +- Package Spec generated for python2 * Fri Oct 09 2020 Python_Bot - Package Spec generated diff --git a/python-netifaces.yaml b/python-netifaces.yaml deleted file mode 100644 index fb35d3fe44544ed660265f5effa36f218210fbf1..0000000000000000000000000000000000000000 --- a/python-netifaces.yaml +++ /dev/null @@ -1,4 +0,0 @@ -version_control: pypi -src_repo: netifaces -tag_prefix: -seperator: .