[packages/python-WSGIProxy2] - new

qboosh qboosh at pld-linux.org
Sat Jul 21 21:18:36 CEST 2018


commit 800a36fba18cf988d3dfd29f67e4e8461300c9bf
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jul 21 21:20:23 2018 +0200

    - new

 python-WSGIProxy2.spec | 132 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 132 insertions(+)
---
diff --git a/python-WSGIProxy2.spec b/python-WSGIProxy2.spec
new file mode 100644
index 0000000..1f484d9
--- /dev/null
+++ b/python-WSGIProxy2.spec
@@ -0,0 +1,132 @@
+#
+# 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
+Version:	0.4.4
+Release:	1
+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:	888f225f00a7923445e24f0979d92a45
+URL:		https://github.com/gawel/WSGIProxy2/
+%if %{with python2}
+BuildRequires:	python-modules >= 1:2.6
+BuildRequires:	python-setuptools
+%if %{with tests}
+BuildRequires:	python-WebOb
+BuildRequires:	python-requests
+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}
+BuildRequires:	sphinx-pdg
+%endif
+Requires:	python-modules >= 1:2.6
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+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
+Group:		Documentation
+
+%description apidocs
+API documentation for Python WSGIProxy2 module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona WSGIProxy2.
+
+%prep
+%setup -q -n WSGIProxy2-%{version}
+
+%build
+%if %{with python2}
+%py_build %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%py3_build %{?with_tests:test}
+%endif
+
+%if %{with doc}
+%{__make} -C docs html \
+	SPHINXBUILD=sphinx-build
+%endif
+
+%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
+%defattr(644,root,root,755)
+%doc docs/_build/html/{_static,*.html,*.js}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-WSGIProxy2.git/commitdiff/800a36fba18cf988d3dfd29f67e4e8461300c9bf



More information about the pld-cvs-commit mailing list