Skip to content

Commit

Permalink
spec file rpm: ajust file location
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDuartePT committed Aug 28, 2023
1 parent 29c288d commit 3eb28b7
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions python/legion_linux/lenovolegionlinux.spec
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,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 /tmp/rpm/rpmbuild/BUILDROOT/usr/lib/python3.11/site-packages/ %{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
python3 -m pip install --target %{buildroot}/usr/lib/python3.11/site-packages/ legion_linux-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

%files -n python3-%{srcname}
/usr/lib/python3.11/site-packages/legion_linux/__init__.py
Expand All @@ -45,13 +45,9 @@ install -D -m 0644 %{build}/extra/service/legion-linux.path %{_unitdir}/legion-l
/usr/lib/python3.11/site-packages/legion_linux/legion_logo.png
/usr/lib/python3.11/site-packages/legion_linux/legion_logo_dark.png
/usr/lib/python3.11/site-packages/legion_linux/legion_logo_light.png
/usr/lib/python3.11/site-packages/legion_linux/__pycache__/__init__.cpython-311.opt-1.pyc
/usr/lib/python3.11/site-packages/legion_linux/__pycache__/__init__.cpython-311.pyc
/usr/lib/python3.11/site-packages/legion_linux/__pycache__/legion.cpython-311.opt-1.pyc
/usr/lib/python3.11/site-packages/legion_linux/__pycache__/legion.cpython-311.pyc
/usr/lib/python3.11/site-packages/legion_linux/__pycache__/legion_cli.cpython-311.opt-1.pyc
/usr/lib/python3.11/site-packages/legion_linux/__pycache__/legion_cli.cpython-311.pyc
/usr/lib/python3.11/site-packages/legion_linux/__pycache__/legion_gui.cpython-311.opt-1.pyc
/usr/lib/python3.11/site-packages/legion_linux/__pycache__/legion_gui.cpython-311.pyc
/usr/lib/python3.11/site-packages/legion_linux-%{version}.dist-info/INSTALLER
/usr/lib/python3.11/site-packages/legion_linux-%{version}.dist-info/LICENSE
Expand Down

0 comments on commit 3eb28b7

Please sign in to comment.