From a4990b0e852955b1883505d7e8fd1c3ad9c68bf4 Mon Sep 17 00:00:00 2001 From: Jeongmo Yang Date: Thu, 22 Apr 2021 14:31:17 +0900 Subject: [PATCH] Change install path for HAL image - The path is changed from /usr/lib to /hal/lib. [Version] 1.1.0-1 [Issue Type] HAL path Change-Id: Ided61a0073856ee96c199593e9f661ef88c9243d Signed-off-by: Jeongmo Yang --- packaging/gst-plugins-video-dec.spec | 10 ++++++---- src/Makefile.am | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/packaging/gst-plugins-video-dec.spec b/packaging/gst-plugins-video-dec.spec index 4cb280e..a0f9d0d 100644 --- a/packaging/gst-plugins-video-dec.spec +++ b/packaging/gst-plugins-video-dec.spec @@ -1,6 +1,6 @@ Name: gst-plugins-video-dec Version: 1.1.0 -Release: 0 +Release: 1 License: LGPL-2.1+ Summary: nexell video decoder gstreamer plugin Group: Development/Libraries @@ -27,13 +27,15 @@ Nexell video decoder gstreamer plugin %build autoreconf -v --install || exit 1 -%configure +%configure --libdir=%{_hal_libdir} make %{?_smp_mflags} %postun -p /sbin/ldconfig %install rm -rf %{buildroot} +mkdir -p %{buildroot}%{_hal_licensedir}/%{name} +cp LICENSE.LGPLv2+ %{buildroot}%{_hal_licensedir}/%{name} make install DESTDIR=%{buildroot} find %{buildroot} -type f -name "*.la" -delete @@ -41,5 +43,5 @@ find %{buildroot} -type f -name "*.la" -delete %files %manifest gst-plugins-video-dec.manifest %defattr(-,root,root,-) -%{_libdir}/gstreamer-1.0/libgstnxvideodec.so* -%license LICENSE.LGPLv2+ +%{_hal_libdir}/gstreamer-1.0/libgstnxvideodec.so* +%{_hal_licensedir}/%{name}/* diff --git a/src/Makefile.am b/src/Makefile.am index e829796..da62468 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -30,7 +30,7 @@ libgstnxvideodec_la_LIBADD = \ -lnxgstmeta \ -lnx_video_api -libgstnxvideodec_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) -L$(libdir) +libgstnxvideodec_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) -L$(libdir) -Wl,-rpath,${libdir} libgstnxvideodec_la_LIBTOOLFLAGS = --tag=disable-static # headers we need but don't want installed -- 2.7.4