diff --git a/python-waitress.spec b/python-waitress.spec index ba8fcb0..d22e6d3 100644 --- a/python-waitress.spec +++ b/python-waitress.spec @@ -1,14 +1,10 @@ -%global srcname waitress - -%global _docdir_fmt %{name} - -Name: python-%{srcname} +Name: python-waitress Version: 1.4.4 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Waitress WSGI server License: ZPLv2.1 -URL: https://github.com/Pylons/%{srcname} +URL: https://github.com/Pylons/waitress Source0: v%{version}-nodocs.tar.gz # Upstream ships non free docs files. # We do not even want them in our src.rpms @@ -22,47 +18,47 @@ Source1: generate-tarball.sh BuildArch: noarch -# No docs as we don't have packaged pylons theme for sphinx - -%global _description \ -Waitress is meant to be a production-quality pure-Python WSGI server with\ -very acceptable performance. It has no dependencies except ones which live\ -in the Python standard library. It runs on CPython on Unix and Windows under\ -Python 2.6+ and Python 3.3+. It is also known to run on PyPy 1.6.0+ on UNIX.\ -It supports HTTP/1.0 and HTTP/1.1. +%global _description %{expand: +Waitress is meant to be a production-quality pure-Python WSGI server with very +acceptable performance. It has no dependencies except ones which live in the +Python standard library. It runs on CPython on Unix and Windows under Python +2.7+ and Python 3.5+. It is also known to run on PyPy 1.6.0+ on UNIX. It +supports HTTP/1.0 and HTTP/1.1.} %description %{_description} -%package -n python3-%{srcname} -Summary: Waitress WSGI server +%package -n python3-waitress +Summary: %{summary} BuildRequires: python3-devel -BuildRequires: python3-setuptools -%description -n python3-%{srcname} %{_description} - -Python 3 version. +%description -n python3-waitress %{_description} %prep -%autosetup -n %{srcname}-%{version}-nodocs +%autosetup -n waitress-%{version}-nodocs + +%generate_buildrequires +%pyproject_buildrequires %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files waitress #check # disable checks for now as they fail trying to lookup localhost in koji. # -%files -n python3-%{srcname} +%files -n python3-waitress -f %{pyproject_files} %license COPYRIGHT.txt LICENSE.txt %doc README.rst CHANGES.txt %{_bindir}/waitress-serve -%{python3_sitelib}/%{srcname}/ -%{python3_sitelib}/%{srcname}-*.egg-info/ %changelog +* Wed May 10 2023 Carl George - 1.4.4-7 +- Convert to pyproject macros + * Fri Jan 21 2022 Fedora Release Engineering - 1.4.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild