Petr Gajdos, comment 4: %attr(0755, %{apache_user}, root) %dir %{_localstatedir}/lib/%{php_name} This alone causes permission update on any package install/reinstall/upgrade.