diff --git a/Add-version-fix-no-version-in-build-product.patch b/Add-version-fix-no-version-in-build-product.patch index 33a7c02..399f3c9 100644 --- a/Add-version-fix-no-version-in-build-product.patch +++ b/Add-version-fix-no-version-in-build-product.patch @@ -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 diff --git a/portend-3.1.0.tar.gz b/portend-3.1.0.tar.gz deleted file mode 100644 index 958de34..0000000 Binary files a/portend-3.1.0.tar.gz and /dev/null differ diff --git a/portend-3.2.0.tar.gz b/portend-3.2.0.tar.gz new file mode 100644 index 0000000..c45f967 Binary files /dev/null and b/portend-3.2.0.tar.gz differ diff --git a/python-portend.spec b/python-portend.spec index 39b26ec..b61719c 100644 --- a/python-portend.spec +++ b/python-portend.spec @@ -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 - 3.2.0-1 +- Upgrade to version 3.2.0 + * Wed Jul 06 2022 xu_ping - 3.1.0-2 - Add version fixes no version in build product