!8 upgrade the version to 0.11.0
From: @huyuqi2 Reviewed-by: @gaoruoshu Signed-off-by: @gaoruoshu
This commit is contained in:
commit
1aba8efda2
Binary file not shown.
BIN
netifaces-0.11.0.tar.gz
Normal file
BIN
netifaces-0.11.0.tar.gz
Normal file
Binary file not shown.
@ -1,11 +1,11 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-netifaces
|
Name: python-netifaces
|
||||||
Version: 0.10.9
|
Version: 0.11.0
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: Portable network interface information.
|
Summary: Portable network interface information.
|
||||||
License: MIT License
|
License: MIT
|
||||||
URL: https://github.com/al45tair/netifaces
|
URL: https://github.com/al45tair/netifaces
|
||||||
Source0: https://files.pythonhosted.org/packages/0d/18/fd6e9c71a35b67a73160ec80a49da63d1eed2d2055054cc2995714949132/netifaces-0.10.9.tar.gz
|
Source0: https://files.pythonhosted.org/packages/a6/91/86a6eac449ddfae239e93ffc1918cf33fd9bab35c04d1e963b311e347a73/netifaces-0.11.0.tar.gz
|
||||||
|
|
||||||
%description
|
%description
|
||||||
It’s been annoying me for some time that there’s no easy way to get the
|
It’s been annoying me for some time that there’s no easy way to get the
|
||||||
@ -21,8 +21,12 @@ This package attempts to solve that problem.
|
|||||||
%package -n python3-netifaces
|
%package -n python3-netifaces
|
||||||
Summary: Portable network interface information.
|
Summary: Portable network interface information.
|
||||||
Provides: python-netifaces
|
Provides: python-netifaces
|
||||||
|
# Base build requires
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-pbr
|
||||||
|
BuildRequires: python3-pip
|
||||||
|
BuildRequires: python3-wheel
|
||||||
BuildRequires: python3-cffi
|
BuildRequires: python3-cffi
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
%description -n python3-netifaces
|
%description -n python3-netifaces
|
||||||
@ -51,7 +55,7 @@ system-dependent low-level networking APIs.
|
|||||||
This package attempts to solve that problem.
|
This package attempts to solve that problem.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n netifaces-0.10.9
|
%autosetup -n netifaces-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_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
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
||||||
pushd %{buildroot}
|
pushd %{buildroot}
|
||||||
if [ -d usr/lib ]; then
|
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
|
fi
|
||||||
if [ -d usr/lib64 ]; then
|
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
|
fi
|
||||||
if [ -d usr/bin ]; then
|
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
|
fi
|
||||||
if [ -d usr/sbin ]; then
|
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
|
fi
|
||||||
touch doclist.lst
|
touch doclist.lst
|
||||||
if [ -d usr/share/man ]; then
|
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
|
fi
|
||||||
popd
|
popd
|
||||||
mv %{buildroot}/filelist.lst .
|
mv %{buildroot}/filelist.lst .
|
||||||
mv %{buildroot}/doclist.lst .
|
mv %{buildroot}/doclist.lst .
|
||||||
|
|
||||||
|
%check
|
||||||
|
%{__python3} setup.py test
|
||||||
|
|
||||||
%files -n python3-netifaces -f filelist.lst
|
%files -n python3-netifaces -f filelist.lst
|
||||||
%dir %{python3_sitearch}/*
|
%dir %{python3_sitearch}/*
|
||||||
|
|
||||||
@ -91,6 +98,9 @@ mv %{buildroot}/doclist.lst .
|
|||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Aug 04 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.10.9-2
|
||||||
- DESC: delete BuildRequires gdb
|
- DESC: delete BuildRequires gdb
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user