[packages/webscalesql] add pkg-config
glen
glen at pld-linux.org
Tue Apr 7 22:18:10 CEST 2015
commit 8049f4d88f2500ef9f5b103014e71d97cf6a2eac
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Apr 7 23:18:05 2015 +0300
add pkg-config
webscalesql.spec | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
---
diff --git a/webscalesql.spec b/webscalesql.spec
index a869dd5..035fa53 100644
--- a/webscalesql.spec
+++ b/webscalesql.spec
@@ -12,7 +12,7 @@
Summary: WebScaleSQL, based upon the MySQL community releases
Name: webscalesql
Version: %{basever}.%{revs}
-Release: 0.1
+Release: 0.2
License: GPL + MySQL FLOSS Exception
Group: Applications/Databases
Source0: https://github.com/webscalesql/webscalesql-5.6/archive/%{gitrev}/%{name}-5.6-%{gitrev}.tar.gz
@@ -112,6 +112,24 @@ mv $RPM_BUILD_ROOT%{_bindir}/{,.}mysql_config
%{__rm} $RPM_BUILD_ROOT%{_libdir}/libmysqlservices.so
mv $RPM_BUILD_ROOT%{_bindir}/{.,}mysql_config
+# create pkg-config
+# FIXME: what about the _r library?
+install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
+cat > $RPM_BUILD_ROOT%{_pkgconfigdir}/libwebscalesqlclient.pc <<'EOF'
+prefix=%{_prefix}
+exec_prefix=%{_exec_prefix}
+libdir=%{_libdir}
+includedir=%{_includedir}/mysql
+
+Name: libwebscalesqlclient
+Description: WebScaleSQL client library (MySQL)
+Version: %{version}
+Requires:
+Libs: -L${libdir} -lwebscalesqlclient
+Cflags: -I${includedir}
+
+EOF
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -131,6 +149,7 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/mysql
%{_libdir}/libwebscalesqlclient.so
%{_libdir}/libwebscalesqlclient_r.so
+%{_pkgconfigdir}/libwebscalesqlclient.pc
%files static
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/webscalesql.git/commitdiff/8049f4d88f2500ef9f5b103014e71d97cf6a2eac
More information about the pld-cvs-commit
mailing list