[packages/mysql-shell] new, version 1.0.4
glen
glen at pld-linux.org
Sun Jun 26 16:50:18 CEST 2016
commit ab5837264f19019574dabf84a045baacd4142dc7
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Jun 26 17:49:33 2016 +0300
new, version 1.0.4
based on upstream .src.rpm
http://dev.mysql.com/get/Downloads/MySQL-Shell/mysql-shell-1.0.4-1.fc24.src.rpm
cleaned up a bit, but it still seems a mess (static? ssl? eh?)
mysql-shell.spec | 114 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 114 insertions(+)
---
diff --git a/mysql-shell.spec b/mysql-shell.spec
new file mode 100644
index 0000000..42254db
--- /dev/null
+++ b/mysql-shell.spec
@@ -0,0 +1,114 @@
+#
+# Conditional build:
+%bcond_without boost #
+%bcond_without gtest #
+%bcond_without protobuf #
+%bcond_with static #
+%bcond_without ssl #
+
+# define v8_includedir and v8_libdir for rpmbuild when building static
+
+Summary: Command line shell and scripting environment for MySQL
+Name: mysql-shell
+Version: 1.0.4
+Release: 0.1
+License: GPL v2
+Source0: https://cdn.mysql.com/Downloads/%{name}-%{version}-src.tar.gz
+# Source0-md5: b8e721b11a98e74539747204ae08ac64
+Group: Applications/Databases
+URL: http://dev.mysql.com/doc/refman/en/mysql-shell.html
+%{?with_boost:BuildRequires: boost-devel}
+BuildRequires: cmake
+#BuildRequires: libedit-devel FIXME only if -DWITH_EDITLINE=system
+%{?with_protobuf:BuildRequires: protobuf-devel}
+BuildRequires: python-devel
+%if %{without static}
+BuildRequires: mysql-devel
+BuildRequires: openssl-devel
+#BuildRequires: v8-devel
+#BuildRequires: v8-python
+%endif
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The MySQL Shell is an interactive JavaScript, Python, or SQL interface
+supporting development and administration for the MySQL Server and is
+a component of the MySQL Server. You can use the MySQL Shell to
+perform data queries and updates as well as various administration
+operations.
+
+The MySQL Shell provides:
+- Both Interactive and Batch operations
+- JavaScript, Python, and SQL language modes
+- Document and Relational Models
+- CRUD Document and Relational APIs via scripting
+- Traditional Table, JSON, Tab Separated output results formats
+- Stored Sessions
+- MySQL Standard and X Protocols
+
+%prep
+%setup -q -n %{name}-%{version}-src
+
+%build
+install -d build
+cd build
+
+cmake .. \
+ -DCMAKE_INSTALL_PREFIX=%{_prefix} \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+%if "%{_lib}" == "lib64"
+ -DLIB_SUFFIX=64 \
+%endif
+%if %{with static}
+ -DWITH_SSL=%{!?with_ssl:bundled}%{?with_ssl:ON} \
+ -DMYSQLCLIENT_STATIC_LINKING=ON \
+ -DV8_INCLUDE_DIR=%{v8_includedir} \
+ -DV8_LIB_DIR=%{v8_libdir} \
+%else
+ -DWITH_SSL=system \
+ -DMYSQLCLIENT_STATIC_LINKING=ON \
+ -DHAVE_V8=0FF
+%endif
+%if %{with boost}
+ -DBOOST_ROOT=ON \
+ -DBoost_NO_SYSTEM_PATHS:BOOL=TRUE \
+%endif
+%if %{with protobuf}
+ -DWITH_PROTOBUF=ON \
+%endif
+%if %{with gtest}
+ -DWITH_TESTS=ON \
+ -DWITH_GTEST=ON \
+%endif
+ -DHAVE_PYTHON=1 \
+
+# Supported V8 versions are limited, disable
+# V8 in non static for now.
+# -DV8_INCLUDE_DIR=%{_includedir}/v8 \
+# -DV8_LIB_DIR=%{_libdir} \
+# Shared linking don't work
+# -DMYSQLCLIENT_STATIC_LINKING=ON \
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} -C build install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+rm -r $RPM_BUILD_ROOT%{_includedir}
+rm $RPM_BUILD_ROOT%{_prefix}/lib/*.{so,a}
+rm $RPM_BUILD_ROOT%{_datadir}/mysqlsh/{COPYING.txt,README}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_bindir}/mysqlsh
+%{_mandir}/man1/mysqlsh.1*
+%if %{with static}
+%{_datadir}/mysqlsh/modules/js/mysql.js
+%{_datadir}/mysqlsh/modules/js/mysqlx.js
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mysql-shell.git/commitdiff/ab5837264f19019574dabf84a045baacd4142dc7
More information about the pld-cvs-commit
mailing list