Revert smack label changes and change owner of fontconfig cache files
[platform/upstream/fontconfig.git] / packaging / fontconfig.spec
index b8f8e23..2658894 100644 (file)
@@ -116,6 +116,8 @@ mkdir -p %{TZ_SYS_RO_SHARE}/app_fonts
 # The HOME setting is to avoid problems if HOME hasn't been reset
 if [ -x %{TZ_SYS_BIN}/fc-cache ] && %{TZ_SYS_BIN}/fc-cache --version 2>&1 | grep -q %{version} ; then
 fc-cache -rf --system-only
+chown -R owner:users %{TZ_SYS_VAR}/cache/fontconfig
+chmod -R 664 %{TZ_SYS_VAR}/cache/fontconfig
 fi
 
 %postun -p /sbin/ldconfig