[packages/python-waitress] Rel 4; python3 in python3-waitress.spec
arekm
arekm at pld-linux.org
Sun May 4 16:31:34 CEST 2025
commit 15766cd6eec5a0600484d9a7a8f07713fe1c588d
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun May 4 15:56:36 2025 +0200
Rel 4; python3 in python3-waitress.spec
python-waitress.spec | 54 +---------------------------------------------------
1 file changed, 1 insertion(+), 53 deletions(-)
---
diff --git a/python-waitress.spec b/python-waitress.spec
index dadee11..7b103dc 100644
--- a/python-waitress.spec
+++ b/python-waitress.spec
@@ -1,7 +1,5 @@
#
# Conditional build:
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
%bcond_without doc # Sphinx documentation
%bcond_without tests # unit tests
@@ -11,21 +9,15 @@ Summary(pl.UTF-8): Serwer WSGI Waitress
Name: python-%{module}
# keep 1.x here for python2 support
Version: 1.4.4
-Release: 3
+Release: 4
License: ZPL v2.1
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/waitress/
Source0: https://files.pythonhosted.org/packages/source/w/waitress/%{module}-%{version}.tar.gz
# Source0-md5: 079c3c4902b1cb5d0a917276ee70f1df
URL: https://docs.pylonsproject.org/projects/waitress/
-%if %{with python2}
BuildRequires: python-modules >= 1:2.7
BuildRequires: python-setuptools >= 1:41
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.5
-BuildRequires: python3-setuptools >= 1:41
-%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
%if %{with doc}
@@ -45,20 +37,6 @@ with very acceptable performance.
Waitress jest serwerem WSGI tworzonym w czystym Pythonie, z myślą o
produkcyjnej jakości i akceptowalnej wydajności.
-%package -n python3-%{module}
-Summary: Waitress WSGI server
-Summary(pl.UTF-8): Serwer WSGI Waitress
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.5
-
-%description -n python3-%{module}
-Waitress is meant to be a production-quality pure-Python WSGI server
-with very acceptable performance.
-
-%description -n python3-%{module} -l pl.UTF-8
-Waitress jest serwerem WSGI tworzonym w czystym Pythonie, z myślą o
-produkcyjnej jakości i akceptowalnej wydajności.
-
%package apidocs
Summary: API documentation for Python waitress module
Summary(pl.UTF-8): Dokumentacja API modułu Pythona waitress
@@ -74,23 +52,12 @@ Dokumentacja API modułu Pythona waitress.
%setup -q -n %{module}-%{version}
%build
-%if %{with python2}
%py_build
%if %{with tests}
PYTHONPATH=$(pwd)/src \
%{__python} -m unittest discover -s tests
%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTHONPATH=$(pwd)/src \
-%{__python3} -m unittest discover -s tests
-%endif
-%endif
%if %{with doc}
PYTHONPATH=$(pwd)/src \
@@ -101,40 +68,21 @@ PYTHONPATH=$(pwd)/src \
%install
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%py_install
%{__mv} $RPM_BUILD_ROOT%{_bindir}/waitress-serve{,-2}
%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-
-%{__mv} $RPM_BUILD_ROOT%{_bindir}/waitress-serve{,-3}
-%endif
%clean
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%files
%defattr(644,root,root,755)
%doc CHANGES.txt COPYRIGHT.txt HISTORY.txt LICENSE.txt README.rst
%attr(755,root,root) %{_bindir}/waitress-serve-2
%{py_sitescriptdir}/waitress
%{py_sitescriptdir}/waitress-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc CHANGES.txt COPYRIGHT.txt HISTORY.txt LICENSE.txt README.rst
-%attr(755,root,root) %{_bindir}/waitress-serve-3
-%{py3_sitescriptdir}/waitress
-%{py3_sitescriptdir}/waitress-%{version}-py*.egg-info
-%endif
%if %{with doc}
%files apidocs
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-waitress.git/commitdiff/15766cd6eec5a0600484d9a7a8f07713fe1c588d
More information about the pld-cvs-commit
mailing list