--- /dev/null
+diff --git a/packaging/libmm-sound.spec b/packaging/libmm-sound.spec
+index 23ded05..8d829d2 100644
+--- a/packaging/libmm-sound.spec
++++ b/packaging/libmm-sound.spec
+@@ -91,6 +91,7 @@ ln -s %{_sysconfdir}/rc.d/init.d/soundserver %{buildroot}%{_sysconfdir}/rc.d/rc4
+
+
+ %post
++if test "x$D" = "x"; then
+ /sbin/ldconfig
+
+ /usr/bin/vconftool set -t int memory/Sound/ASMReady 0 -g 29 -f -i
+@@ -105,6 +106,9 @@ ln -s %{_sysconfdir}/rc.d/init.d/soundserver %{buildroot}%{_sysconfdir}/rc.d/rc4
+ /usr/bin/vconftool set -t int file/private/sound/volume/fixed 0 -g 29 -f
+ /usr/bin/vconftool set -t int file/private/sound/volume/java 11 -g 29 -f
+
++
++fi
++
+ %postun -p /sbin/ldconfig
+
+
diff --git a/packaging/libslp-location.spec b/packaging/libslp-location.spec
-index f618420..df0706a 100755
+index f618420..55c4d72 100755
--- a/packaging/libslp-location.spec
+++ b/packaging/libslp-location.spec
-@@ -48,7 +48,9 @@ make %{?jobs:-j%jobs}
+@@ -48,7 +48,8 @@ make %{?jobs:-j%jobs}
%post
-/sbin/ldconfig
-+#!/bin/sh
-+if test "x$D" != "x"; then
++if test "x$D" = "x"; then
+ldconfig
vconftool set -t int db/location/last/gps/Timestamp "0" -f
vconftool set -t double db/location/last/gps/Latitude "0.0" -f
vconftool set -t double db/location/last/gps/Longitude "0.0" -f
-@@ -67,6 +69,7 @@ vconftool set -t double db/location/last/wps/Direction "0.0" -f
+@@ -67,6 +68,7 @@ vconftool set -t double db/location/last/wps/Direction "0.0" -f
vconftool set -t int db/location/setting/GpsEnabled "0" -g 6514 -f
vconftool set -t int db/location/setting/AgpsEnabled "0" -g 6514 -f
vconftool set -t int db/location/setting/NetworkEnabled "0" -g 6514 -f
--- /dev/null
+diff --git a/packaging/pkgmgr.spec b/packaging/pkgmgr.spec
+index cb4dde3..fc7102b 100644
+--- a/packaging/pkgmgr.spec
++++ b/packaging/pkgmgr.spec
+@@ -95,11 +95,13 @@ mkdir -p %{buildroot}%{_sysconfdir}/package-manager/server
+
+ %find_lang package-manager
+ %post
+-/sbin/ldconfig
++if test "x$D" = "x"; then
++ldconfig
+
+ # For pkgmgr-install:
+ # Update mime database to support package mime types
+ update-mime-database /usr/share/mime
++fi
+
+ %post server -p /sbin/ldconfig
+
diff --git a/packaging/webkit2-efl.spec b/packaging/webkit2-efl.spec
-index 4513eef..6ee671f 100644
+index 4513eef..a51ea0a 100644
--- a/packaging/webkit2-efl.spec
+++ b/packaging/webkit2-efl.spec
-@@ -216,9 +216,9 @@ cp ./bin/MiniBrowser %{buildroot}%{_bindir}/MiniBrowser
- #!/bin/sh
+@@ -213,12 +213,12 @@ mkdir -p %{buildroot}/usr/share/edje
+ cp ./bin/MiniBrowser %{buildroot}%{_bindir}/MiniBrowser
+
+ %post
+-#!/bin/sh
++
#change file permissions
# 1. libraries
-chmod 644 %{_libdir}/libewebkit2.so