From 178c7e57984b9de2655729523d447fa2552f92dd Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Sun, 31 Dec 2023 18:39:54 +0100 Subject: [PATCH] - missing alternatives scripts for mysql-devel --- mysql.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mysql.spec b/mysql.spec index b2498d8..fa3075c 100644 --- a/mysql.spec +++ b/mysql.spec @@ -803,6 +803,16 @@ if [ $1 -eq 0 ]; then update-alternatives --remove mysqldumpslow %{_libdir}/mysql/%{mysqlversion}/bin/mysqldumpslow || : fi +%posttrans -n mysql-devel +update-alternatives \ + --install %{_bindir}/mysql_config mysql_config %{_libdir}/mysql/%{mysqlversion}/bin/mysql_config %{mysqlpriority} \ + --slave %{_mandir}/man1/mysql_config.1 mysql_config.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/mysql_config.1* || : + +%postun -n mysql-devel +if [ $1 -eq 0 ]; then + update-alternatives --remove mysql_config %{_libdir}/mysql/%{mysqlversion}/bin/mysql_config || : +fi + %post ndb /sbin/chkconfig --add %{name}-ndb %service %{name}-ndb restart "%{name} NDB engine" -- 2.46.0