From 60b4a538825b4dcea65183fd38bdf12b3cbf2513 Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Sun, 24 Sep 2017 21:00:45 +0200 Subject: [PATCH] add dependencies for crossbar --- python-net/python-net.spec | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/python-net/python-net.spec b/python-net/python-net.spec index bcb62e92af..d33c07e4c1 100644 --- a/python-net/python-net.spec +++ b/python-net/python-net.spec @@ -45,6 +45,7 @@ %define V_hyperframe 5.1.0 %define V_h2 3.0.1 %define V_hyperlink 17.3.1 +%define V_urllib3 1.22 # package information Name: python-net @@ -81,6 +82,7 @@ Source17: https://files.pythonhosted.org/packages/source/h/hpack/hpack-%{V_h Source18: https://files.pythonhosted.org/packages/source/h/hyperframe/hyperframe-%{V_hyperframe}.tar.gz Source19: https://files.pythonhosted.org/packages/source/h/h2/h2-%{V_h2}.tar.gz Source20: https://files.pythonhosted.org/packages/source/h/hyperlink/hyperlink-%{V_hyperlink}.tar.gz +Source21: https://files.pythonhosted.org/packages/source/u/urllib3/urllib3-%{V_urllib3}.tar.gz # build information BuildPreReq: OpenPKG, openpkg >= 20160101, python >= %{V_python} @@ -192,6 +194,11 @@ PreReq: python-setup, python-util url = https://pypi.python.org/pypi/hyperlink regex = hyperlink-(__VER__)\.tar\.gz } + prog python-net:urllib3 = { + version = %{V_urllib3} + url = https://pypi.python.org/pypi/urllib3 + regex = urllib3-(__VER__)\.tar\.gz + } %prep %setup -q -c @@ -215,6 +222,7 @@ PreReq: python-setup, python-util %setup -q -T -D -a 18 %setup -q -T -D -a 19 %setup -q -T -D -a 20 + %setup -q -T -D -a 21 %build @@ -366,6 +374,13 @@ PreReq: python-setup, python-util --root=$RPM_BUILD_ROOT \ --prefix=%{l_prefix} ) || exit $? + ( cd urllib3-%{V_urllib3} + PYTHONPATH=$RPM_BUILD_ROOT%{l_prefix}/lib/python/site-packages \ + %{l_prefix}/bin/python \ + setup.py install \ + --root=$RPM_BUILD_ROOT \ + --prefix=%{l_prefix} + ) || exit $? %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} %files -f files