--- rpms/e-smith-mysql/sme10/e-smith-mysql.spec 2016/04/11 19:12:05 1.6 +++ rpms/e-smith-mysql/sme10/e-smith-mysql.spec 2016/04/11 20:32:10 1.7 @@ -1,16 +1,17 @@ -# $Id: e-smith-mysql.spec,v 1.5 2016/03/31 12:57:40 unnilennium Exp $ +# $Id: e-smith-mysql.spec,v 1.6 2016/04/11 19:12:05 vip-ire Exp $ Summary: e-smith specific mysql configuration and templates. %define name e-smith-mysql Name: %{name} %define version 2.6.0 -%define release 5 +%define release 6 Version: %{version} Release: %{release}%{?dist} License: GPL Group: Networking/Daemons Source: %{name}-%{version}.tar.xz -Patch0: e-smith-mysql-2.6.0-mariadb1.patch +Patch0: e-smith-mysql-2.6.0-mariadb1.patch +Patch1: e-smith-mysql-2.6.0-mysqld2mariadb.patch BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildArchitectures: noarch Requires: mariadb-server @@ -21,6 +22,9 @@ BuildRequires: e-smith-devtools >= 1.13. AutoReqProv: no %changelog +* Mon Apr 11 2016 Daniel Berteaud 2.6.0-6.sme +- Rename mysqld to mariadb [SME: 9438] + * Mon Apr 11 2016 Daniel Berteaud 2.6.0-5.sme - Remove uneeded scriplets %post and %postun [SME: 9422] @@ -728,7 +732,18 @@ mysql. %prep %setup %patch0 -p1 +%patch1 -p1 + +# mysqld renamed to mariadb [SME: 9438] +# TODO: remove on next tarball creation +rm -f root/service/mysqld +rm -rf root/var/service/mysqld +rm -rf root/var/run/ +rm -rf root/var/log/mysqld +rm -f root/etc/rc.d/init.d/supervise/mysqld +rm -f root/etc/rc.d/rc7.d/S50mysqld +mkdir -p root/var/log/mariadb.run %build perl createlinks @@ -737,14 +752,13 @@ perl createlinks rm -rf $RPM_BUILD_ROOT (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ - --dir /var/run/mysqld 'attr(0755,mysql,mysql)' \ - --file /var/service/mysqld/run 'attr(0755,root,root)' \ - --file /var/service/mysqld/control/t 'attr(0750,root,root)' \ - --file /var/service/mysqld/control/d 'attr(0750,root,root)' \ - --file /var/service/mysqld/control/i 'attr(0750,root,root)' \ - --file /var/service/mysqld/control/q 'attr(0750,root,root)' \ - --file /var/service/mysqld/log/run 'attr(0755,root,root)' \ - --dir '/var/log/mysqld' 'attr(2750,smelog,smelog)' \ + --file /var/service/mariadb/run 'attr(0755,root,root)' \ + --file /var/service/mariadb/control/t 'attr(0750,root,root)' \ + --file /var/service/mariadb/control/d 'attr(0750,root,root)' \ + --file /var/service/mariadb/control/i 'attr(0750,root,root)' \ + --file /var/service/mariadb/control/q 'attr(0750,root,root)' \ + --file /var/service/mariadb/log/run 'attr(0755,root,root)' \ + --dir '/var/log/mariadb.run' 'attr(2750,smelog,smelog)' \ --dir '/home/e-smith/db/mysql' 'attr(0750,root,root)' \ > %{name}-%{version}-filelist echo "%doc COPYING" >> %{name}-%{version}-filelist