diff --git a/python-sys/python-sys.spec b/python-sys/python-sys.spec index 5538f3fdc6..54a38b5e78 100644 --- a/python-sys/python-sys.spec +++ b/python-sys/python-sys.spec @@ -31,6 +31,7 @@ %define V_shutilwhich 1.1.0 %define V_watchdog 0.9.0 %define V_pathtools 0.1.2 +%define V_pybind11 2.4.3 # package information Name: python-sys @@ -43,7 +44,7 @@ Class: BASE Group: Language License: GPL Version: %{V_python} -Release: 20191212 +Release: 20200103 # list of sources Source0: https://files.pythonhosted.org/packages/source/p/psutil/psutil-%{V_psutil}.tar.gz @@ -54,6 +55,7 @@ Source4: https://files.pythonhosted.org/packages/source/s/six/six-%{V_six}. Source5: https://files.pythonhosted.org/packages/source/s/shutilwhich/shutilwhich-%{V_shutilwhich}.tar.gz Source6: https://files.pythonhosted.org/packages/source/w/watchdog/watchdog-%{V_watchdog}.tar.gz Source7: https://files.pythonhosted.org/packages/source/p/pathtools/pathtools-%{V_pathtools}.tar.gz +Source8: https://files.pythonhosted.org/packages/source/p/pybind11/pybind11-%{V_pybind11}.tar.gz # build information BuildPreReq: OpenPKG, openpkg >= 20160101, python >= %{V_python} @@ -104,6 +106,11 @@ PreReq: OpenPKG, openpkg >= 20160101, python >= %{V_python} url = https://pypi.python.org/pypi/pathtools regex = pathtools-(__VER__)\.tar\.gz } + prog python-sys:pybind11 = { + version = %{V_pybind11} + url = https://pypi.python.org/pypi/pybind11 + regex = pybind11-(__VER__)\.tar\.gz + } %prep %setup -q -c @@ -114,6 +121,7 @@ PreReq: OpenPKG, openpkg >= 20160101, python >= %{V_python} %setup -q -T -D -a 5 %setup -q -T -D -a 6 %setup -q -T -D -a 7 + %setup -q -T -D -a 8 chmod -R a+rx shutilwhich-%{V_shutilwhich} %build @@ -168,6 +176,12 @@ PreReq: OpenPKG, openpkg >= 20160101, python >= %{V_python} --root=$RPM_BUILD_ROOT \ --prefix=%{l_prefix} ) || exit $? + ( cd pybind11-%{V_pybind11} + %{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