Skip to content

Commit

Permalink
packages: Fedora spec add missing file
Browse files Browse the repository at this point in the history
* delete /usr/lib/debug folder from package

Signed-off-by: Gonçalo Negrier Duarte <[email protected]>
  • Loading branch information
MrDuartePT committed Apr 8, 2024
1 parent b0604c3 commit 01da50c
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions deploy/build_packages/lenovolegionlinux.spec
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@ install -D -m 0755 %{_builddir}/%{srcname}-%{version}/python/legion_linux/legion
install -D -m 0755 %{_builddir}/%{srcname}-%{version}/python/legion_linux/legion_linux/extra/service/legiond/legiond %{buildroot}%{_bindir}/legiond

mkdir -p %{buildroot}/etc/acpi/events/
install -D -m 0644 %{_builddir}/%{srcname}-%{version}/python/legion_linux/legion_linux/extra/acpi/events/legion_ppd %{buildroot}/etc/acpi/events/legion-ppd
install -D -m 0644 %{_builddir}/%{srcname}-%{version}/python/legion_linux/legion_linux/extra/acpi/events/legion_ac %{buildroot}/etc/acpi/events/legion_ac
install -D -m 0644 %{_builddir}/%{srcname}-%{version}/python/legion_linux/legion_linux/extra/acpi/events/legion_ppd %{buildroot}%{_sysconfdir}/acpi/events/legion-ppd
install -D -m 0644 %{_builddir}/%{srcname}-%{version}/python/legion_linux/legion_linux/extra/acpi/events/legion_ac %{buildroot}%{_sysconfdir}/acpi/events/legion_ac

# Remove debug files
rm -rf %{buildroot}/usr/lib/debug

%files -n python-%{srcname}
%doc README.md
Expand All @@ -84,6 +87,16 @@ install -D -m 0644 %{_builddir}/%{srcname}-%{version}/python/legion_linux/legion
%{_datadir}/pixmaps/legion_logo_light.png
%{_datadir}/polkit-1/actions/legion_cli.policy
%{_datadir}/polkit-1/actions/legion_gui.policy
%{_sysconfdir}/acpi/events/legion-ppd
%{_sysconfdir}/acpi/events/legion_ac
%{_bindir}/legiond
%{_bindir}/legiond-ctl
%{_unitdir}/systemd/system/legiond-cpuset.service
%{_unitdir}/systemd/system/legiond-cpuset.timer
%{_unitdir}/systemd/system/legiond-onresume.service
%{_unitdir}/systemd/system/legiond.service

%exclude /usr/lib/debug

%post
echo "Frist install?! Pls copy /usr/share/legion_linux folder to /etc/legion_linux.\n"
Expand Down

0 comments on commit 01da50c

Please sign in to comment.