Skip to content

Commit

Permalink
spec file rpm: fix filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDuartePT committed Aug 28, 2023
1 parent 3eb28b7 commit 68b5ce7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/legion_linux/lenovolegionlinux.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 68b5ce7

Please sign in to comment.