diff --git a/python-pyotherside.spec b/python-pyotherside.spec index 76dbd4a..0e6499d 100644 --- a/python-pyotherside.spec +++ b/python-pyotherside.spec @@ -16,7 +16,6 @@ # -%define skip_python2 1 %define srcname pyotherside %bcond_without test Name: python-pyotherside @@ -38,6 +37,7 @@ BuildRequires: pkgconfig(Qt5Test) BuildRequires: pkgconfig(python3) Provides: pyotherside = %{version}-%{release} Provides: python3-pyotherside = %{version}-%{release} +Obsoletes: python3-pyotherside < %{version}-%{release} %if %{with test} BuildRequires: Mesa-dri BuildRequires: xvfb-run @@ -52,7 +52,7 @@ A QML Plugin that provides access to a Python 3 interpreter from QML. sed -i 's| qtquicktests||' pyotherside.pro %build -%qmake5 PYTHON_CONFIG=python%{python_version}-config QMAKE_STRIP="/bin/true"; +%qmake5 PYTHON_CONFIG=python%{python3_version}-config QMAKE_STRIP="/bin/true"; %make_build %install