2 # - i've installed .so to %{_libdir} because straced mysqld searched
3 # same path as dlopen() would do (/lib:/lib/tls:/usr/lib). perhaps
4 # %{_libdir}/mysql would be more appropriate (but then need to
5 # insert .so with full path? patch mysqld?)
6 Summary: MySQL UDF interface to PCRE
11 Group: Applications/Databases
12 Source0: https://github.com/mysqludf/lib_mysqludf_preg/archive/lib_mysqludf_preg-%{version}-rc2.tar.gz
13 # Source0-md5: 19641dc644573c4863937444fcc09f62
14 URL: https://github.com/mysqludf/lib_mysqludf_preg
15 BuildRequires: mysql-devel
16 BuildRequires: pcre-devel
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 # bug in configure makes it check for CXX if CXX is passed
24 MySQL UDF interface to the PCRE (Perl Compatible Regular Expressions)
25 library for pattern matching.
27 The PCRE library is a set of functions that implement regular
28 expression pattern matching using the same syntax and semantics as
29 Perl 5. This syntax can often handle more complex expressions and
30 capturing than standard regular expression implementations.
32 lib_mysqludf_preg is a useful performance optimization for those
33 applications that are already performing these regular expression
34 matches in a high level language (i. e. PHP) on the client side. It is
35 also helpful when there is a need to capture a parenthesized
36 subexpression from a regular expression, or simply as a slight
37 performance boost over the builtin RLIKE/REGEXP functions.
40 %setup -q -n lib_mysqludf_preg-lib_mysqludf_preg-%{version}-rc2
48 rm -rf $RPM_BUILD_ROOT
50 DESTDIR=$RPM_BUILD_ROOT
52 rm $RPM_BUILD_ROOT%{_libdir}/lib_mysqludf_preg.la
55 rm -rf $RPM_BUILD_ROOT
59 %banner -e %{name} <<-'EOF'
60 To actually use the functions execute on your MySQL instances:
62 zcat %{_docdir}/%{name}-%{version}/installdb.sql.gz | mysql
64 To remove the functions:
65 zcat %{_docdir}/%{name}-%{version}/uninstalldb.sql.gz | mysql
71 %defattr(644,root,root,755)
72 %doc README.md AUTHORS ChangeLog INSTALL
73 %doc installdb.sql uninstalldb.sql
74 %attr(755,root,root) %{_libdir}/lib_mysqludf_preg.so