diff --git a/generate-tarball.sh b/generate-tarball.sh index f45f570f64c9202e0a9ca8c7aa790a5066b879cf..d6b0ffa9b0844bfddef4257a2b017d04b9809ad0 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 5edf865e5e138e1fb2ee45db5236232f65a7b920..1cbb2c868faacfa40dd0f2bd4c398495e137a446 100644 --- a/python-waitress.spec +++ b/python-waitress.spec @@ -1,15 +1,17 @@ -%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 +Source: waitress-3.0.2-nodocs.tar.gz +Source2: generate-tarball.sh BuildArch: noarch %description @@ -23,6 +25,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 +53,10 @@ Python 3 version. %{python3_sitelib}/%{pypi_name}-*.egg-info/ %changelog +* Wed Aug 20 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 +65,3 @@ Python 3 version. * Thu Apr 20 2023 DengXiewei - 2.1.2-1 - Initial package from upstream -