From ddc1dacb75e3f99e4b6d18c9d10eb105c1d0dcf8 Mon Sep 17 00:00:00 2001 From: SangYoun Kwak Date: Fri, 3 Jan 2025 16:12:55 +0900 Subject: [PATCH] Modify to install udev rules under /hal/lib The udev rules should be installed under /hal/lib since it has no dependency on architectures. To install udev rules under /hal/lib, "/hal/lib" is used instead of %{buildroot}. Change-Id: I7ab907d9d4fcc282d09bcc1abcf73037aa7d20df Signed-off-by: SangYoun Kwak --- packaging/hal-backend-sensor-emulator.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packaging/hal-backend-sensor-emulator.spec b/packaging/hal-backend-sensor-emulator.spec index ce43051..85c7045 100644 --- a/packaging/hal-backend-sensor-emulator.spec +++ b/packaging/hal-backend-sensor-emulator.spec @@ -26,10 +26,10 @@ make %{?_smp_mflags} %install %make_install -mkdir -p %{buildroot}%{_hal_libdir}/udev/rules.d +mkdir -p %{buildroot}/hal/lib/udev/rules.d -install -m 0644 %SOURCE1 %{buildroot}%{_hal_libdir}/udev/rules.d -install -m 0644 %SOURCE2 %{buildroot}%{_hal_libdir}/udev/rules.d +install -m 0644 %SOURCE1 %{buildroot}/hal/lib/udev/rules.d +install -m 0644 %SOURCE2 %{buildroot}/hal/lib/udev/rules.d %post /sbin/ldconfig @@ -39,7 +39,7 @@ install -m 0644 %SOURCE2 %{buildroot}%{_hal_libdir}/udev/rules.d %files %manifest packaging/%{name}.manifest -%{_hal_libdir}/udev/rules.d/99-sensor.rules -%{_hal_libdir}/udev/rules.d/99-sensorhub.rules +/hal/lib/udev/rules.d/99-sensor.rules +/hal/lib/udev/rules.d/99-sensorhub.rules %{_hal_libdir}/*.so* %{_hal_licensedir}/%{name}/LICENSE.APLv2 -- 2.34.1