summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorŁukasz Stelmach <l.stelmach@samsung.com>2023-11-24 13:34:43 +0100
committerŁukasz Stelmach <l.stelmach@samsung.com>2023-11-24 13:35:08 +0100
commit43c1690e010ec51d1e9c70e1caea2c2959c7876c (patch)
treecf2bc19689f89ef29d0835299ca25e44f09e7759
parentb239b874e12f4571d2a9176cbea8d4a796a853a4 (diff)
downloadlibtbm-dumb-43c1690e010ec51d1e9c70e1caea2c2959c7876c.tar.gz
libtbm-dumb-43c1690e010ec51d1e9c70e1caea2c2959c7876c.tar.bz2
libtbm-dumb-43c1690e010ec51d1e9c70e1caea2c2959c7876c.zip
packaging: enforce creation of libhal-backend-tbm.so symbolic link
Change-Id: Ie123fe766df6cdafc1041b66094391c209d4c94f Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
-rw-r--r--packaging/hal-backend-tbm-dumb.spec5
1 files changed, 1 insertions, 4 deletions
diff --git a/packaging/hal-backend-tbm-dumb.spec b/packaging/hal-backend-tbm-dumb.spec
index a900e05..d7efec2 100644
--- a/packaging/hal-backend-tbm-dumb.spec
+++ b/packaging/hal-backend-tbm-dumb.spec
@@ -42,10 +42,7 @@ mkdir -p %{buildroot}%{_hal_licensedir}/libhal-backend-tbm-dumb
cp -af COPYING %{buildroot}%{_hal_licensedir}/libhal-backend-tbm-dumb
%post
-if [ -f %{_hal_libdir}/libhal-backend-tbm.so ]; then
- rm -rf %{_hal_libdir}/libhal-backend-tbm.so
-fi
-ln -s libhal-backend-tbm-dumb.so %{_hal_libdir}/libhal-backend-tbm.so
+ln -f -s libhal-backend-tbm-dumb.so %{_hal_libdir}/libhal-backend-tbm.so
%postun -p /sbin/ldconfig