From 592790ee5f8cd1019ff7240e411eb88dd24776cf Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 06:57:48 +0100 Subject: [PATCH] fix libmysqlclient.so.18 compatibility symlink missing after upgrade obsoleting libmysqlclient [release 10.4.13-4mamba;Thu Jun 11 2020] --- mariadb.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/mariadb.spec b/mariadb.spec index 40dab66..e6f6afa 100644 --- a/mariadb.spec +++ b/mariadb.spec @@ -6,7 +6,7 @@ Name: mariadb Version: 10.4.13 -Release: 3mamba +Release: 4mamba Summary: A SQL database engine designed as a drop-in replacement of MySQL(R) Group: Applications/Databases Vendor: openmamba @@ -331,6 +331,12 @@ fi %post -n lib%{name} -p /sbin/ldconfig %postun -n lib%{name} -p /sbin/ldconfig +%posttran -n lib%{name} +if [ $1 -ge 1 ]; then + [ -e %{_libdir}/libmysqlclient.so.18 ] || ln -s libmariadb.so.3 %{_libdir}/libmysqlclient.so.18 +fi +: + %files %defattr(-,root,root) %{_bindir}/mariadbd @@ -596,10 +602,8 @@ fi %{_libdir}/libmysqlclient.so.18 /%{_lib}/security/pam_user_map.so %{_libdir}/mysql/plugin/auth_pam_tool_dir/auth_pam_tool -%ifnarch arm %{_libdir}/mysql/plugin/JdbcInterface.jar %{_libdir}/mysql/plugin/JavaWrappers.jar -%endif %{_libdir}/mysql%{?MAJversion}/plugin/*.so %{_libdir}/mysql/plugin/daemon_example.ini @@ -627,6 +631,9 @@ fi %{_mandir}/man1/mysql_config.1* %changelog +* Thu Jun 11 2020 Silvan Calarco 10.4.13-4mamba +- fix libmysqlclient.so.18 compatibility symlink missing after upgrade obsoleting libmysqlclient + * Sat May 30 2020 Silvan Calarco 10.4.13-3mamba - remove %lang() to language directories to support all languages from e.g. phpmyadmin