[packages/mysql-udf-preg] install to mysql plugin dir where mysql expects them

glen glen at pld-linux.org
Thu Apr 5 13:54:56 CEST 2018


commit 72f1a226eeb2186ac0ce6f386f6224c85bdaef71
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Thu Apr 5 14:54:44 2018 +0300

    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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mysql-udf-preg.git/commitdiff/72f1a226eeb2186ac0ce6f386f6224c85bdaef71



More information about the pld-cvs-commit mailing list