From 0bfb45760dae93793255a817d7c959d7c172da51 Mon Sep 17 00:00:00 2001 From: Junkyeong Kim Date: Thu, 18 Mar 2021 11:46:27 +0900 Subject: Add post for hal backend Make symbolic link for hal backend package. Change-Id: Ib4bf41c6010bfb3501b206f4362f818850a7a72f Signed-off-by: Junkyeong Kim --- packaging/libtbm-vc4.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packaging/libtbm-vc4.spec b/packaging/libtbm-vc4.spec index 2b94d26..d1eca72 100644 --- a/packaging/libtbm-vc4.spec +++ b/packaging/libtbm-vc4.spec @@ -60,12 +60,15 @@ if [ -f %{_libdir}/bufmgr/libtbm_default.so ]; then fi ln -s libtbm-vc4.so %{_libdir}/bufmgr/libtbm_default.so +%postun -p /sbin/ldconfig + +%post -n hal-backend-tbm-vc4 if [ -f %{_hal_libdir}/libhal-backend-tbm.so ]; then rm -rf %{_hal_libdir}/libhal-backend-tbm.so fi ln -s libhal-backend-tbm-vc4.so %{_hal_libdir}/libhal-backend-tbm.so -%postun -p /sbin/ldconfig +%postun -n hal-backend-tbm-vc4 -p /sbin/ldconfig %files %manifest %{name}.manifest -- cgit v1.2.3