!8 upgrade the version to 0.11.0

From: @huyuqi2 
Reviewed-by: @gaoruoshu 
Signed-off-by: @gaoruoshu
This commit is contained in:
openeuler-ci-bot 2022-07-04 07:41:04 +00:00 committed by Gitee
commit 1aba8efda2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 23 additions and 13 deletions

Binary file not shown.

BIN
netifaces-0.11.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,11 +1,11 @@
%global _empty_manifest_terminate_build 0
Name: python-netifaces
Version: 0.10.9
Release: 2
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
Name: python-netifaces
Version: 0.11.0
Release: 1
Summary: Portable network interface information.
License: MIT
URL: https://github.com/al45tair/netifaces
Source0: https://files.pythonhosted.org/packages/a6/91/86a6eac449ddfae239e93ffc1918cf33fd9bab35c04d1e963b311e347a73/netifaces-0.11.0.tar.gz
%description
Its been annoying me for some time that theres no easy way to get the
@ -21,8 +21,12 @@ This package attempts to solve that problem.
%package -n python3-netifaces
Summary: Portable network interface information.
Provides: python-netifaces
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-cffi
BuildRequires: gcc
%description -n python3-netifaces
@ -51,7 +55,7 @@ system-dependent low-level networking APIs.
This package attempts to solve that problem.
%prep
%autosetup -n netifaces-0.10.9
%autosetup -n netifaces-%{version}
%build
%py3_build
@ -65,25 +69,28 @@ if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%check
%{__python3} setup.py test
%files -n python3-netifaces -f filelist.lst
%dir %{python3_sitearch}/*
@ -91,6 +98,9 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/*
%changelog
* Sat Jun 04 2022 OpenStack_SIG <openstack@openeuler.org> - 0.11.0-1
- Upgrade python3-netifaces to version 0.11.0
* Wed Aug 04 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.10.9-2
- DESC: delete BuildRequires gdb