From 01da50c7fbf7e6ce2ebd188cedaea6d1dd64b2ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Negrier=20Duarte?= Date: Mon, 8 Apr 2024 21:47:05 +0100 Subject: [PATCH] packages: Fedora spec add missing file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * delete /usr/lib/debug folder from package Signed-off-by: Gonçalo Negrier Duarte --- deploy/build_packages/lenovolegionlinux.spec | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/deploy/build_packages/lenovolegionlinux.spec b/deploy/build_packages/lenovolegionlinux.spec index 2ec1a9d..b1105db 100644 --- a/deploy/build_packages/lenovolegionlinux.spec +++ b/deploy/build_packages/lenovolegionlinux.spec @@ -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 @@ -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"