[packages/python-WSGIProxy2] Rel 4; python3 in python3-WSGIProxy2.spec now
arekm
arekm at pld-linux.org
Wed May 28 20:01:23 CEST 2025
commit fa98cb769fccaeaa6337403eadab5453ac42ef05
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed May 28 19:45:43 2025 +0200
Rel 4; python3 in python3-WSGIProxy2.spec now
python-WSGIProxy2.spec | 55 +-------------------------------------------------
1 file changed, 1 insertion(+), 54 deletions(-)
---
diff --git a/python-WSGIProxy2.spec b/python-WSGIProxy2.spec
index 25e2aa3..9848286 100644
--- a/python-WSGIProxy2.spec
+++ b/python-WSGIProxy2.spec
@@ -2,22 +2,19 @@
# Conditional build:
%bcond_without doc # Sphinx documentation
%bcond_without tests # unit tests
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
Summary: WSGI Proxy with various HTTP client backends
Summary(pl.UTF-8): Proxy WSGI z różnymi backendami klienta HTTP
Name: python-WSGIProxy2
# keep 0.4.x here for python2 support
Version: 0.4.6
-Release: 3
+Release: 4
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/wsgiproxy2/
Source0: https://files.pythonhosted.org/packages/source/W/WSGIProxy2/WSGIProxy2-%{version}.tar.gz
# Source0-md5: cf4f45bed6ab74ad644bee58bcad4e83
URL: https://github.com/gawel/WSGIProxy2/
-%if %{with python2}
BuildRequires: python-modules >= 1:2.6
BuildRequires: python-setuptools
%if %{with tests}
@@ -27,18 +24,6 @@ BuildRequires: python-six
BuildRequires: python-urllib3
BuildRequires: python-webtest
%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.2
-BuildRequires: python3-setuptools
-%if %{with tests}
-BuildRequires: python3-WebOb
-BuildRequires: python3-requests
-BuildRequires: python3-six
-BuildRequires: python3-urllib3
-BuildRequires: python3-webtest
-%endif
-%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
%if %{with doc}
@@ -54,18 +39,6 @@ WSGI Proxy with various HTTP client backends.
%description -l pl.UTF-8
Proxy WSGI z różnymi backendami klienta HTTP.
-%package -n python3-WSGIProxy2
-Summary: WSGI Proxy with various HTTP client backends
-Summary(pl.UTF-8): Proxy WSGI z różnymi backendami klienta HTTP
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.2
-
-%description -n python3-WSGIProxy2
-WSGI Proxy with various HTTP client backends.
-
-%description -n python3-WSGIProxy2 -l pl.UTF-8
-Proxy WSGI z różnymi backendami klienta HTTP.
-
%package apidocs
Summary: API documentation for Python WSGIProxy2 module
Summary(pl.UTF-8): Dokumentacja API modułu Pythona WSGIProxy2
@@ -81,22 +54,12 @@ Dokumentacja API modułu Pythona WSGIProxy2.
%setup -q -n WSGIProxy2-%{version}
%build
-%if %{with python2}
%py_build
%if %{with tests}
# test_quoted_utf8_url fails with InvalidURL
nosetests-%{py_ver} wsgiproxy -e test_quoted_utf8_url
%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-nosetests-%{py3_ver} wsgiproxy
-%endif
-%endif
%if %{with doc}
%{__make} -C docs html \
@@ -106,34 +69,18 @@ nosetests-%{py3_ver} wsgiproxy
%install
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%py_install
%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
%clean
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%files
%defattr(644,root,root,755)
%doc CHANGES.rst COPYING README.rst
%{py_sitescriptdir}/wsgiproxy
%{py_sitescriptdir}/WSGIProxy2-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-WSGIProxy2
-%defattr(644,root,root,755)
-%doc CHANGES.rst COPYING README.rst
-%{py3_sitescriptdir}/wsgiproxy
-%{py3_sitescriptdir}/WSGIProxy2-%{version}-py*.egg-info
-%endif
%if %{with doc}
%files apidocs
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-WSGIProxy2.git/commitdiff/fa98cb769fccaeaa6337403eadab5453ac42ef05
More information about the pld-cvs-commit
mailing list