Skip to content

Commit

Permalink
update spec file with systemd files
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDuartePT committed Aug 28, 2023
1 parent ea356a8 commit 168e9c9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/legion_linux/lenovolegionlinux.spec
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@ See documenation of LenovoLegionLinux

%build
unset RPM_BUILD_ROOT
python3 setup.py bdist_wheel
%{__python3} 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}%{python3_sitelib} %{srcname}-%{version}-py3-none-any.whl
%{__python3} -m pip install --target %{buildroot}%{python3_sitelib} %{srcname}-%{version}-py3-none-any.whl
install -D -m 0644 %{build}/extra/service/legion-linux.service %{_unitdir}/legion-linux.service
install -D -m 0644 %{build}/extra/service/legion-linux.path %{_unitdir}/legion-linux.path

%files -n python3-%{srcname}
%{python3_sitelib}/legion_linux/__init__.py
Expand Down

0 comments on commit 168e9c9

Please sign in to comment.