55 |
Summary: A very fast and reliable SQL database engine |
Summary: A very fast and reliable SQL database engine |
56 |
Name: mariadb |
Name: mariadb |
57 |
Version: 5.5.18 |
Version: 5.5.18 |
58 |
Release: %mkrel 0.bzr%{bzrrev}.2 |
Release: %mkrel 0.bzr%{bzrrev}.3 |
59 |
Group: Databases |
Group: Databases |
60 |
License: GPLv2 with exceptions |
License: GPLv2 with exceptions |
61 |
URL: http://mariadb.org/ |
URL: http://mariadb.org/ |
452 |
install -m0644 Mageia/mysqld.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/mysqld |
install -m0644 Mageia/mysqld.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/mysqld |
453 |
install -m0644 Mageia/my.cnf %{buildroot}%{_sysconfdir}/my.cnf |
install -m0644 Mageia/my.cnf %{buildroot}%{_sysconfdir}/my.cnf |
454 |
|
|
455 |
|
# rectify libdir for plugins |
456 |
|
perl -pi -e "s|^plugin_dir=/usr/lib/mysql/plugin|plugin_dir=%{_libdir}/mysql/plugin|g" %{buildroot}%{_sysconfdir}/my.cnf |
457 |
|
|
458 |
mkdir -p %{buildroot}/etc/tmpfiles.d |
mkdir -p %{buildroot}/etc/tmpfiles.d |
459 |
install -m 0644 %{SOURCE10} %{buildroot}/etc/tmpfiles.d/mysql.conf |
install -m 0644 %{SOURCE10} %{buildroot}/etc/tmpfiles.d/mysql.conf |
460 |
mkdir -p %{buildroot}/lib/systemd/system |
mkdir -p %{buildroot}/lib/systemd/system |
604 |
%pre |
%pre |
605 |
# enable plugins |
# enable plugins |
606 |
if [ -f %{_sysconfdir}/my.cnf ]; then |
if [ -f %{_sysconfdir}/my.cnf ]; then |
607 |
|
# rectify libdir for plugins |
608 |
|
perl -pi -e "s|^plugin_dir=/usr/lib/mysql/plugin|plugin_dir=%{_libdir}/mysql/plugin|g" %{_sysconfdir}/my.cnf |
609 |
perl -pi -e "s|^#plugin-load|plugin-load|g" %{_sysconfdir}/my.cnf |
perl -pi -e "s|^#plugin-load|plugin-load|g" %{_sysconfdir}/my.cnf |
610 |
perl -pi -e "s|^#federated|federated|g" %{_sysconfdir}/my.cnf |
perl -pi -e "s|^#federated|federated|g" %{_sysconfdir}/my.cnf |
611 |
# switch to federatedx provider |
# switch to federatedx provider |
636 |
%pre common-core |
%pre common-core |
637 |
# enable plugins |
# enable plugins |
638 |
if [ -f %{_sysconfdir}/my.cnf ]; then |
if [ -f %{_sysconfdir}/my.cnf ]; then |
639 |
|
# rectify libdir for plugins |
640 |
|
perl -pi -e "s|^plugin_dir=/usr/lib/mysql/plugin|plugin_dir=%{_libdir}/mysql/plugin|g" %{_sysconfdir}/my.cnf |
641 |
perl -pi -e "s|^#plugin-load|plugin-load|g" %{_sysconfdir}/my.cnf |
perl -pi -e "s|^#plugin-load|plugin-load|g" %{_sysconfdir}/my.cnf |
642 |
perl -pi -e "s|^#federated|federated|g" %{_sysconfdir}/my.cnf |
perl -pi -e "s|^#federated|federated|g" %{_sysconfdir}/my.cnf |
643 |
# switch to federatedx provider |
# switch to federatedx provider |