=== modified file 'build/percona-server.spec'
--- build/percona-server.spec	2013-04-23 06:02:56 +0000
+++ build/percona-server.spec	2013-04-23 22:04:29 +0000
@@ -527,6 +527,16 @@
 # FIXME: the shared libraries to use libmysql*-$major.$minor.so syntax
 mv -v $RBR/%{_libdir}/*.a $RBR/%{_libdir}/mysql/
 
+# libmysqlclient_r.so.18 and libmysqlclient_r.so.18.0.0 (generated by
+# libmysql/CMakeLists.txt) point to libmysqlclient.so instead of the versioned
+# libmysqlclient.so.18. Since libmysqlclient.so will live in a separate
+# package, we want these to point to the versioned library.
+for l in "$RBR%{_libdir}/libmysqlclient_r.so.18"*
+do
+    rm "$l"
+    ln -s "$(echo "$(basename "$l")" | sed 's/_r//')" "$l"
+done
+
 # Install logrotate and autostart
 install -m 644 $MBD/release/support-files/mysql-log-rotate $RBR%{_sysconfdir}/logrotate.d/mysql
 install -m 755 $MBD/release/support-files/mysql.server $RBR%{_sysconfdir}/init.d/mysql

