You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python-waitress/python-waitress.spec

63 lines
1.5 KiB

Name: python-waitress
Version: 2.1.2
Release: %autorelease
Summary: Waitress WSGI server
License: ZPL-2.1
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
# So we remove them before uploading.
#
# Download the upstream tarball and invoke this script while in the
# tarball's directory:
# ./generate-tarball.sh 1.0
#
Source1: generate-tarball.sh
BuildArch: noarch
%global _description %{expand:
Waitress is 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 3.7+. It
is also known to run on PyPy 3 (version 3.7 compatible python) on UNIX. It
supports HTTP/1.0 and HTTP/1.1.}
%description %{_description}
%package -n python3-waitress
Summary: %{summary}
BuildRequires: python3-devel
%description -n python3-waitress %{_description}
%prep
%autosetup -n waitress-%{version}-nodocs
sed -e '/pytest-cover/d' \
-e '/coverage/d' \
-e '/addopts/d' \
-i setup.cfg
%generate_buildrequires
%pyproject_buildrequires -x testing
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files waitress
%check
%pytest
%files -n python3-waitress -f %{pyproject_files}
%license COPYRIGHT.txt LICENSE.txt
%doc README.rst CHANGES.txt
%{_bindir}/waitress-serve
%changelog
%autochangelog