Browse Source

add dependencies for crossbar

master
parent
commit
60b4a53882
  1. 15
      python-net/python-net.spec

15
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

Loading…
Cancel
Save