diff --git a/python/legion_linux/lenovolegionlinux.spec b/python/legion_linux/lenovolegionlinux.spec index a99a5a0..a476ae1 100644 --- a/python/legion_linux/lenovolegionlinux.spec +++ b/python/legion_linux/lenovolegionlinux.spec @@ -26,14 +26,14 @@ See documenation of LenovoLegionLinux %build unset RPM_BUILD_ROOT -python3 setup.py bdist_wheel +python3.11 setup.py bdist_wheel %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} mkdir %{buildroot} mkdir %{buildroot}/usr cd "%{_builddir}/%{name}-%{version}/dist" -python3 -m pip install --target %{buildroot}/usr/lib/python3.11/site-packages/ legion_linux-py3-none-any.whl +python3.11 -m pip install --target %{buildroot}/usr/lib/python3.11/site-packages/ legion_linux-%{version}-py3-none-any.whl install -D -m 0644 %{build}/legion_linux/extra/service/legion-linux.service %{_unitdir}/legion-linux.service install -D -m 0644 %{build}/legion_linux//extra/service/legion-linux.path %{_unitdir}/legion-linux.path