diff --git a/python-util/python-util.spec b/python-util/python-util.spec index 49b9ecc550..d6b82aecf0 100644 --- a/python-util/python-util.spec +++ b/python-util/python-util.spec @@ -31,6 +31,7 @@ %define V_constantly 15.1.0 %define V_automat 0.6.0 %define V_monk 0.13.2 +%define V_pluginbase 0.5 # package information Name: python-util @@ -43,7 +44,7 @@ Class: BASE Group: Language License: GPL Version: %{V_python} -Release: 20180123 +Release: 20180205 # list of sources Source0: https://files.pythonhosted.org/packages/source/z/zope.component/zope.component-%{V_zope_component}.tar.gz @@ -54,6 +55,7 @@ Source4: https://files.pythonhosted.org/packages/source/a/attrs/attrs-%{V_a Source5: https://files.pythonhosted.org/packages/source/c/constantly/constantly-%{V_constantly}.tar.gz Source6: https://files.pythonhosted.org/packages/source/A/Automat/Automat-%{V_automat}.tar.gz Source7: https://files.pythonhosted.org/packages/source/m/monk/monk-%{V_monk}.tar.gz +Source8: https://files.pythonhosted.org/packages/source/p/pluginbase/pluginbase-%{V_pluginbase}.tar.gz Patch0: python-util.patch # build information @@ -105,6 +107,11 @@ PreReq: OpenPKG, openpkg >= 20160101, python >= %{V_python} url = https://pypi.python.org/pypi/Automat regex = monk-(__VER__)\.tar\.gz } + prog python-util:pluginbase = { + version = %{V_pluginbase} + url = https://pypi.python.org/pypi/pluginbase + regex = pluginbase-(__VER__)\.tar\.gz + } %prep %setup -q -c @@ -115,6 +122,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 %patch -p0 %build @@ -176,6 +184,13 @@ PreReq: OpenPKG, openpkg >= 20160101, python >= %{V_python} --root=$RPM_BUILD_ROOT \ --prefix=%{l_prefix} ) || exit $? + ( cd pluginbase-%{V_pluginbase} + 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