From c6a3cb31ceb76d571dd32362f1b39dfb23d2a590 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Tue, 6 Mar 2018 11:35:59 +0000 Subject: [PATCH] - restore mysql compatible client library name --- mysql.spec | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/mysql.spec b/mysql.spec index b38b30d..de37588 100644 --- a/mysql.spec +++ b/mysql.spec @@ -493,6 +493,10 @@ Ten pakiet zawiera standardowego demona MySQL NDB CPC. %prep %setup -q -n percona-server-%{version}-%{percona_rel} %{?with_sphinx:-a100} %{!?with_system_boost:-a101} +# we want to use old, mysql compatible client library name +find . -name CMakeLists.txt -exec sed -i -e 's#perconaserverclient#mysqlclient#g' "{}" ";" +sed -i -e 's#perconaserverclient#mysqlclient#g' libmysql/libmysql.{ver.in,map} scripts/mysql_config.* + %patch0 -p1 %if %{with sphinx} @@ -978,10 +982,10 @@ fi %attr(751,root,root) %dir %{_sysconfdir}/%{name} %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mysql-client.conf %{_sysconfdir}/%{name}/my.cnf -%attr(755,root,root) %{_libdir}/libperconaserverclient.so.*.*.* -%attr(755,root,root) %ghost %{_libdir}/libperconaserverclient.so.20 -#%attr(755,root,root) %{_libdir}/libperconaserverclient_r.so.*.*.* -#%attr(755,root,root) %ghost %{_libdir}/libperconaserverclient_r.so.18 +%attr(755,root,root) %{_libdir}/libmysqlclient.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libmysqlclient.so.20 +#%attr(755,root,root) %{_libdir}/libmysqlclient_r.so.*.*.* +#%attr(755,root,root) %ghost %{_libdir}/libmysqlclient_r.so.18 %if %{with ndb} %attr(755,root,root) %{_libdir}/libndbclient.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libndbclient.so.3 @@ -990,9 +994,9 @@ fi %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/mysql_config -%attr(755,root,root) %{_libdir}/libperconaserverclient.so -#%attr(755,root,root) %{_libdir}/libperconaserverclient_r.so -%{_pkgconfigdir}/perconaserverclient.pc +%attr(755,root,root) %{_libdir}/libmysqlclient.so +#%attr(755,root,root) %{_libdir}/libmysqlclient_r.so +%{_pkgconfigdir}/mysqlclient.pc %if %{with ndb} %attr(755,root,root) %{_libdir}/libndbclient.so %endif @@ -1006,8 +1010,8 @@ fi %files static %defattr(644,root,root,755) -%{_libdir}/libperconaserverclient.a -#%{_libdir}/libperconaserverclient_r.a +%{_libdir}/libmysqlclient.a +#%{_libdir}/libmysqlclient_r.a %if %{with ndb} %{_libdir}/libndbclient.a %endif -- 2.46.0