!8 Upgrade to latest release [python-portend -> 3.2.0]

From: @Jason_828e 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2023-07-13 10:08:19 +00:00 committed by Gitee
commit 547c784a12
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 16 additions and 33 deletions

View File

@ -5,7 +5,7 @@ index 8a7a0be..1dba288 100644
@@ -1,5 +1,6 @@
[metadata]
name = portend
+version = 3.1.0
+version = 3.2.0
author = Jason R. Coombs
author_email = jaraco@jaraco.com
description = TCP port monitoring and discovery

Binary file not shown.

BIN
portend-3.2.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,11 +1,11 @@
%global _empty_manifest_terminate_build 0
Name: python-portend
Version: 3.1.0
Release: 2
Version: 3.2.0
Release: 1
Summary: TCP port monitoring and discovery
License: MIT
URL: https://pypi.org/project/portend
Source0: https://files.pythonhosted.org/packages/6e/0a/42bcc9c97744958ce72d33f526e972379b9e90adede8a151f338818c41d4/portend-3.1.0.tar.gz
Source0: https://files.pythonhosted.org/packages/8f/fc/bcfc768996b438d6e4bde7a6c8cfd62089847b0f5381a0e0ec2d8ee6b202/portend-3.2.0.tar.gz
Patch0000: Add-version-fix-no-version-in-build-product.patch
BuildArch: noarch
@ -49,8 +49,9 @@ assert_free will raise a ``PortNotFree`` exception.
Summary: TCP port monitoring and discovery
Provides: python-portend
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
BuildRequires: python3-flit
BuildRequires: python3-wheel
BuildRequires: python3-pip
%description -n python3-portend
Use portend to monitor TCP ports for bound or unbound states.
For example, to wait for a port to be occupied, timing out after 3 seconds::
@ -107,46 +108,28 @@ a bound listener (i.e. a TCP connection is established to that host/port),
assert_free will raise a ``PortNotFree`` exception.
%prep
%autosetup -n portend-3.1.0 -p1
%autosetup -n portend-3.2.0 -p1
%build
%py3_build
%pyproject_build
%install
%py3_install
%pyproject_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
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
fi
if [ -d usr/lib64 ]; then
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
fi
if [ -d usr/sbin ]; then
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
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-portend -f filelist.lst
%dir %{python3_sitelib}/*
%files -n python3-portend
%{python3_sitelib}/*
%files help -f doclist.lst
%files help
%{_docdir}/*
%changelog
* Tue Jul 11 2023 chenzixuan <chenzixuan@kylinos.cn> - 3.2.0-1
- Upgrade to version 3.2.0
* Wed Jul 06 2022 xu_ping <xuping33@h-partners.com> - 3.1.0-2
- Add version fixes no version in build product