From: Marcin Krol Date: Sun, 31 Dec 2023 17:39:13 +0000 (+0100) Subject: - missing alternatives scripts for mysql-devel X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=a7ebce1860a13a372eb3419e4f11be8ffd8ade7e;p=packages%2Fmysql.git - missing alternatives scripts for mysql-devel --- 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"