]> git.pld-linux.org Git - packages/mysql-udf-preg.git/commitdiff
install to mysql plugin dir where mysql expects them master auto/th/mysql-udf-preg-1.2-0.rc2.1
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 5 Apr 2018 11:54:44 +0000 (14:54 +0300)
committerElan Ruusamäe <glen@pld-linux.org>
Thu, 5 Apr 2018 11:54:44 +0000 (14:54 +0300)
mysql-udf-preg.spec

index 36654c7bdee6c8d0add966d598ab2a390ed03738..8d6488c3e50ae9f675f120c02f45ab7db563edb3 100644 (file)
@@ -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
This page took 0.093952 seconds and 4 git commands to generate.