[packages/openark-kit] use mysql socket path from our mysql

glen glen at pld-linux.org
Mon Aug 12 12:29:46 CEST 2013


commit 569ff3d9cc19a1d8cef58e9a6080de8e345475fa
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Aug 12 13:29:23 2013 +0300

    use mysql socket path from our mysql

 openark-kit.spec | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/openark-kit.spec b/openark-kit.spec
index d26a398..d14fedc 100644
--- a/openark-kit.spec
+++ b/openark-kit.spec
@@ -9,7 +9,9 @@ Source0:	https://openarkkit.googlecode.com/files/%{name}-%{version}.tar.gz
 URL:		https://code.google.com/p/openarkkit/
 BuildRequires:	python >= 1:2.3
 BuildRequires:	rpm-pythonprov
+BuildRequires:	mysql-devel
 BuildRequires:	rpmbuild(macros) >= 1.219
+BuildRequires:	sed >= 4.0
 Requires:	python-MySQLdb
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -47,6 +49,9 @@ The available tools are:
 %prep
 %setup -q
 
+socket=$(mysql_config --socket)
+grep -rl /var/run/mysqld/mysql.sock . | xargs sed -i -e "s,/var/run/mysqld/mysql.sock,$socket,"
+
 %build
 %{__python} setup.py build
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openark-kit.git/commitdiff/569ff3d9cc19a1d8cef58e9a6080de8e345475fa



More information about the pld-cvs-commit mailing list