packages: mysql-udf-preg/mysql-udf-preg.spec (NEW) - new; based on mysql-ud...

glen glen at pld-linux.org
Tue Nov 24 13:47:42 CET 2009


Author: glen                         Date: Tue Nov 24 12:47:42 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new; based on mysql-udf-memcached.spec

---- Files affected:
packages/mysql-udf-preg:
   mysql-udf-preg.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/mysql-udf-preg/mysql-udf-preg.spec
diff -u /dev/null packages/mysql-udf-preg/mysql-udf-preg.spec:1.1
--- /dev/null	Tue Nov 24 13:47:42 2009
+++ packages/mysql-udf-preg/mysql-udf-preg.spec	Tue Nov 24 13:47:37 2009
@@ -0,0 +1,68 @@
+# $Revision$, $Date$
+# TODO
+# - i've installed .so to %{_libdir} because straced mysqld searched
+#   same path as dlopen() would do (/lib:/lib/tls:/usr/lib). perhaps
+#   %{_libdir}/mysql would be more appropriate (but then need to
+#   insert .so with full path? patch mysqld?)
+Summary:	MySQL UDF interface to PCRE
+Name:		mysql-udf-preg
+Version:	1.0
+Release:	0.1
+License:	GPL v3
+Group:		Applications/Databases
+Source0:	http://www.mysqludf.org/lib_mysqludf_preg/lib_mysqludf_preg-%{version}.tar.gz
+# Source0-md5:	c1837e6996417669d7d10bc1ae1d00e6
+URL:		http://www.mysqludf.org/lib_mysqludf_preg/index.php
+BuildRequires:	mysql-devel
+BuildRequires:	pcre-devel
+Requires:	mysql
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+MySQL UDF interface to the PCRE (Perl Compatible Regular Expressions)
+library for pattern matching.
+
+The PCRE library is a set of functions that implement regular
+expression pattern matching using the same syntax and semantics as
+Perl 5. This syntax can often handle more complex expressions and
+capturing than standard regular expression implementations.
+
+lib_mysqludf_preg is a useful performance optimization for those
+applications that are already performing these regular expression
+matches in a high level language (i. e. PHP) on the client side. It is
+also helpful when there is a need to capture a parenthesized
+subexpression from a regular expression, or simply as a slight
+performance boost over the builtin RLIKE/REGEXP functions.
+
+%prep
+%setup -q -n lib_mysqludf_preg-%{version}
+
+%build
+%configure \
+	--disable-static
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+rm $RPM_BUILD_ROOT%{_libdir}/lib_mysqludf_preg.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog INSTALL README
+%doc installdb.sql uninstalldb.sql
+%attr(755,root,root) %{_libdir}/lib_mysqludf_preg.so
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/11/24 12:47:37  glen
+- new; based on mysql-udf-memcached.spec
================================================================


More information about the pld-cvs-commit mailing list