From 72f1a226eeb2186ac0ce6f386f6224c85bdaef71 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 5 Apr 2018 14:54:44 +0300 Subject: [PATCH] install to mysql plugin dir where mysql expects them --- mysql-udf-preg.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mysql-udf-preg.spec b/mysql-udf-preg.spec index 36654c7..8d6488c 100644 --- a/mysql-udf-preg.spec +++ b/mysql-udf-preg.spec @@ -17,6 +17,8 @@ BuildRequires: pcre-devel Requires: mysql BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +%define plugindir %{_libdir}/mysql/plugin + # bug in configure makes it check for CXX if CXX is passed %undefine __cxx @@ -47,9 +49,10 @@ performance boost over the builtin RLIKE/REGEXP functions. %install rm -rf $RPM_BUILD_ROOT %{__make} install \ + libdir=%{plugindir} \ DESTDIR=$RPM_BUILD_ROOT -rm $RPM_BUILD_ROOT%{_libdir}/lib_mysqludf_preg.la +rm $RPM_BUILD_ROOT%{plugindir}/lib_mysqludf_preg.la %clean rm -rf $RPM_BUILD_ROOT @@ -71,4 +74,4 @@ fi %defattr(644,root,root,755) %doc README.md AUTHORS ChangeLog INSTALL %doc installdb.sql uninstalldb.sql -%attr(755,root,root) %{_libdir}/lib_mysqludf_preg.so +%attr(755,root,root) %{plugindir}/lib_mysqludf_preg.so -- 2.44.0