From 05570acc6d919c0dd1707d864cba32452a4f6d45 Mon Sep 17 00:00:00 2001 From: "Mun, Gwan-gyeong" Date: Mon, 25 Apr 2016 22:50:35 +0900 Subject: [PATCH] Remove symbolic link of libGLESv1_CM.so and create libGLESv1_CM.so's symbolic link on rpm post section. : on https://build.tizen.org/package/view_file?expand=1&file=_service%3Agbs%3Arpm.spec&package=rpm&project=Tizen%3ABase "install -m 644 %{SOURCE9} %{buildroot}%{rpmhome}/fileattrs/libsymlink.attr" makes explicit dependancy for symbolic link file if package does not include symbolic link's target. Change-Id: Ib3515321e4ec47755d1522794d6917b9d94336ca --- packaging/coregl.spec | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/packaging/coregl.spec b/packaging/coregl.spec index d03ed64..dc7074f 100644 --- a/packaging/coregl.spec +++ b/packaging/coregl.spec @@ -70,8 +70,6 @@ ln -sf driver/libGLESv2.so.2.0 %{buildroot}%{_libdir}/libGLESv2.so.2.0 %endif ln -sf libEGL.so.1.4 %{buildroot}%{_libdir}/libEGL.so.1 ln -sf libEGL.so.1 %{buildroot}%{_libdir}/libEGL.so -ln -sf libGLESv1_CM.so.1.1 %{buildroot}%{_libdir}/libGLESv1_CM.so.1 -ln -sf libGLESv1_CM.so.1 %{buildroot}%{_libdir}/libGLESv1_CM.so ln -sf libGLESv2.so.2.0 %{buildroot}%{_libdir}/libGLESv2.so.2 ln -sf libGLESv2.so.2 %{buildroot}%{_libdir}/libGLESv2.so @@ -89,9 +87,17 @@ cp libGLESv1_CM.so.1.1 %{buildroot}%{_libdir}/ %clean rm -rf %{buildroot} -%post -p /sbin/ldconfig +%post +cd %{_libdir} +ln -sf libGLESv1_CM.so.1.1 libGLESv1_CM.so.1 +ln -sf libGLESv1_CM.so.1 libGLESv1_CM.so +/sbin/ldconfig > /dev/null 2>&1 -%postun -p /sbin/ldconfig +%postun +cd %{_libdir} +rm -rf libGLESv1_CM.so +rm -rf libGLESv1_CM.so.1 +/sbin/ldconfig > /dev/null 2>&1 %files %manifest packaging/coregl.manifest @@ -100,8 +106,6 @@ rm -rf %{buildroot} %{_libdir}/libCOREGL.so* %endif %{_libdir}/libEGL.so* -%{_libdir}/libGLESv1_CM.so -%{_libdir}/libGLESv1_CM.so.1 %{_libdir}/libGLESv2.so* %{TZ_SYS_RO_SHARE}/license/%{name} %{TZ_SYS_RO_SHARE}/license/%{name}.MIT -- 2.7.4