From 326513d0e4979f42d4ed43fe0ce7c131fb8ce22f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Negrier=20Duarte?= Date: Tue, 12 Mar 2024 21:08:41 +0000 Subject: [PATCH] fix error in package build for fedora and ubuntu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gonçalo Negrier Duarte --- deploy/build_packages/build_deb_LLL.sh | 2 +- deploy/build_packages/lenovolegionlinux.spec | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/deploy/build_packages/build_deb_LLL.sh b/deploy/build_packages/build_deb_LLL.sh index 6bc22de..6b04c4c 100755 --- a/deploy/build_packages/build_deb_LLL.sh +++ b/deploy/build_packages/build_deb_LLL.sh @@ -57,7 +57,7 @@ cd deb_dist/legion-linux-${TAG} ##Add to debial install sudo cp -R ${REPODIR}/extra/service/legiond.service . -sudo cp -R ${REPODIR}/extra/service/legiond-onresume.path . +sudo cp -R ${REPODIR}/extra/service/legiond-onresume.service . sudo cp -R ${REPODIR}/extra/service/legiond/legiond . sudo cp -R ${REPODIR}/extra/service/legiond/legiond-cli . echo "legiond.service /etc/systemd/system/" | sudo tee -a debian/install diff --git a/deploy/build_packages/lenovolegionlinux.spec b/deploy/build_packages/lenovolegionlinux.spec index e1f9d65..2d90939 100644 --- a/deploy/build_packages/lenovolegionlinux.spec +++ b/deploy/build_packages/lenovolegionlinux.spec @@ -15,6 +15,7 @@ BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-wheel BuildRequires: python3-pip +BuildRequires: systemd-rpm-macros Vendor: johnfan Packager: Gonçalo Negrier Duarte Url: https://github.com/johnfanv2/LenovoLegionLinux @@ -44,7 +45,7 @@ make %pyproject_save_files legion_linux install -D -m 0644 %{_builddir}/%{srcname}-%{version}-prerelease/python/legion_linux/legion_linux/extra/service/legiond.service %{_unitdir}/legiond.service -install -D -m 0644 %{_builddir}/%{srcname}-%{version}-prerelease/python/legion_linux/legion_linux/extra/service/legion-onresume.service %{_unitdir}/legiond-onresume.service +install -D -m 0644 %{_builddir}/%{srcname}-%{version}-prerelease/python/legion_linux/legion_linux/extra/service/legiond-onresume.service %{_unitdir}/legiond-onresume.service install -D -m 0755 %{_builddir}/%{srcname}-%{version}-prerelease/python/legion_linux/legion_linux/extra/service/legiond/legiond-cli %{_bindir}/legiond_cli install -D -m 0755 %{_builddir}/%{srcname}-%{version}-prerelease/python/legion_linux/legion_linux/extra/service/legiond/legiond %{_bindir}/legiond %files -n python-%{srcname}