%{_datadir}/mysql/%{mysqlversion}/lang/charsets
%files -n mysql-common
+%defattr(644,root,root,755)
%attr(751,root,root) %dir %{_sysconfdir}/mysql
-%attr(751,root,root) %dir %{_libdir}/mysql
-%attr(751,root,root) %dir %{_datadir}/mysql
+%dir %{_libdir}/mysql
+%dir %{_datadir}/mysql
%attr(751,root,root) %dir /var/lib/mysql
-%attr(751,root,root) %dir /var/lib/mysql-files
+%attr(750,root,root) %dir /var/lib/mysql-files
+%attr(750,root,root) %dir /var/log/mysql
+%attr(750,root,root) %dir /var/log/archive/mysql
%files dirs
+%defattr(644,root,root,755)
%attr(751,root,root) %dir %{_sysconfdir}/mysql/%{mysqlversion}
# root:root is proper here for mysql.rpm while mysql:mysql is potential security hole
%attr(751,root,root) %dir /var/lib/mysql/%{mysqlversion}