From 6c9acd1f4d48cacd58c03d66e5f9f97778c299de Mon Sep 17 00:00:00 2001 From: wenyuzifang Date: Wed, 27 Aug 2025 20:47:14 +0800 Subject: [PATCH] Update code from upstream --- generate-tarball.sh | 12 +++++++++--- python-waitress.spec | 13 +++++++++---- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/generate-tarball.sh b/generate-tarball.sh index f45f570..d6b0ffa 100755 --- a/generate-tarball.sh +++ b/generate-tarball.sh @@ -1,8 +1,14 @@ -#!/bin/sh +#!/bin/bash + +if [[ $# -ne 1 ]]; then + echo "usage: $(basename $0) " + exit 1 +fi VERSION=$1 -tar -xzvf v$VERSION.tar.gz +wget https://github.com/Pylons/waitress/archive/v$VERSION/waitress-$VERSION.tar.gz +tar -xzvf waitress-$VERSION.tar.gz rm -rf waitress-$VERSION/docs mv waitress-$VERSION waitress-$VERSION-nodocs -tar -czvf v$VERSION-nodocs.tar.gz waitress-$VERSION-nodocs +tar -czvf waitress-$VERSION-nodocs.tar.gz waitress-$VERSION-nodocs diff --git a/python-waitress.spec b/python-waitress.spec index 5edf865..cef50e1 100644 --- a/python-waitress.spec +++ b/python-waitress.spec @@ -1,15 +1,16 @@ -%define anolis_release 3 +%define anolis_release 1 %global pypi_name waitress %global _docdir_fmt %{name} Summary: Waitress WSGI server Name: python-%{pypi_name} -Version: 2.1.2 +Version: 3.0.2 Release: %{anolis_release}%{?dist} License: ZPLv2.1 URL: https://github.com/Pylons/%{pypi_name} -Source0: https://github.com/Pylons/waitress/archive/v%{version}/v%{version}-nodocs.tar.gz +Source0: generate-tarball.sh +Source1: waitress-3.0.2-nodocs.tar.gz BuildArch: noarch %description @@ -23,6 +24,7 @@ It supports HTTP/1.0 and HTTP/1.1. Summary: Waitress WSGI server BuildRequires: python3-devel BuildRequires: python3-setuptools +BuildRequires: pyproject-rpm-macros %description -n python3-%{pypi_name} Waitress is meant to be a production-quality pure-Python WSGI server with @@ -50,6 +52,10 @@ Python 3 version. %{python3_sitelib}/%{pypi_name}-*.egg-info/ %changelog +* Wed Aug 27 2025 wenyuzifang - 3.0.2-1 +- Updated to version 3.0.2 to fix xxxxxxxxxx + + * Mon Mar 11 2024 Zhao Hang - 2.1.2-3 - Rebuild with python3.11 @@ -58,4 +64,3 @@ Python 3 version. * Thu Apr 20 2023 DengXiewei - 2.1.2-1 - Initial package from upstream - -- Gitee