From a7ebce1860a13a372eb3419e4f11be8ffd8ade7e Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Sun, 31 Dec 2023 18:39:13 +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 e003056..6ee8ddb 100644 --- a/mysql.spec +++ b/mysql.spec @@ -801,6 +801,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