|
@@ -1,3 +1,5 @@
|
|
|
|
+%bcond_with source
|
|
|
|
+
|
|
%define mysqld_user mysql
|
|
%define mysqld_user mysql
|
|
%define mysqld_group mysql
|
|
%define mysqld_group mysql
|
|
%define mysqldatadir /var/lib/mysql
|
|
%define mysqldatadir /var/lib/mysql
|
|
@@ -9,7 +11,8 @@
|
|
%define _unpackaged_files_terminate_build 1
|
|
%define _unpackaged_files_terminate_build 1
|
|
|
|
|
|
%define mariadb_base_version 10.0
|
|
%define mariadb_base_version 10.0
|
|
-%define mariadb_version 10.0.14
|
|
+%define mariadb_version 10.0.15
|
|
|
|
+%define mroonga_version 4.06
|
|
%define client_version 18
|
|
%define client_version 18
|
|
|
|
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
@@ -38,6 +41,7 @@ BuildRequires: bison, cmake, gcc-c++, groff
|
|
BuildRequires: libaio-devel, libboost-devel, libevent-devel, libxml2-devel
|
|
BuildRequires: libaio-devel, libboost-devel, libevent-devel, libxml2-devel
|
|
BuildRequires: ncurses-devel, perl, openssl-devel, readline-devel
|
|
BuildRequires: ncurses-devel, perl, openssl-devel, readline-devel
|
|
BuildRequires: zlib-devel
|
|
BuildRequires: zlib-devel
|
|
|
|
+BuildRequires: mecab-devel
|
|
Requires: fileutils sh-utils
|
|
Requires: fileutils sh-utils
|
|
Provides: msqlormysql MySQL mysql
|
|
Provides: msqlormysql MySQL mysql
|
|
Obsoletes: mysql MySQL5
|
|
Obsoletes: mysql MySQL5
|
|
@@ -54,6 +58,7 @@ MariaDB bug reports should be submitted through https://mariadb.atlassian.net/
|
|
|
|
|
|
|
|
|
|
%package server
|
|
%package server
|
|
|
|
+Version: %{mariadb_version}
|
|
Release: %{release}
|
|
Release: %{release}
|
|
Summary: MariaDB: a very fast and robust SQL database server
|
|
Summary: MariaDB: a very fast and robust SQL database server
|
|
Group: Applications/Databases
|
|
Group: Applications/Databases
|
|
@@ -72,8 +77,22 @@ conditions of the GNU General Public License Version 2 (http://www.gnu.org/licen
|
|
MariaDB documentation can be found at http://kb.askmonty.org/
|
|
MariaDB documentation can be found at http://kb.askmonty.org/
|
|
MariaDB bug reports should be submitted through https://mariadb.atlassian.net/
|
|
MariaDB bug reports should be submitted through https://mariadb.atlassian.net/
|
|
|
|
|
|
|
|
+%package mroonga
|
|
|
|
+##Version: %{mroonga_version}
|
|
|
|
+Version: %{mariadb_version}
|
|
|
|
+Summary: A fast fulltext searchable storage engine for MariaDB.
|
|
|
|
+Group: Applications/Databases
|
|
|
|
+Requires(pre): mariadb-server = %{mariadb_version}-%{release}
|
|
|
|
+Requires: mariadb-server = %{mariadb_version}-%{release}
|
|
|
|
+Obsoletes: mariadb-mroonga-doc < 4.07
|
|
|
|
+
|
|
|
|
+%description mroonga
|
|
|
|
+Mroonga is a fast fulltext searchable storage plugin for MariaDB.
|
|
|
|
+It is based on groonga that is a fast fulltext search engine and
|
|
|
|
+column store. Groonga is good at real-time update.
|
|
|
|
|
|
%package client
|
|
%package client
|
|
|
|
+Version: %{mariadb_version}
|
|
Summary: MariaDB - Client
|
|
Summary: MariaDB - Client
|
|
Group: Applications/Databases
|
|
Group: Applications/Databases
|
|
Obsoletes: mysql-client MySQL-client < 5.6.0
|
|
Obsoletes: mysql-client MySQL-client < 5.6.0
|
|
@@ -84,6 +103,7 @@ This package contains the standard MariaDB clients and administration tools.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
%package devel
|
|
|
|
+Version: %{mariadb_version}
|
|
Summary: MariaDB - Development libraries and headers
|
|
Summary: MariaDB - Development libraries and headers
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
Requires: %{name}-static, openssl-devel, zlib-devel
|
|
Requires: %{name}-static, openssl-devel, zlib-devel
|
|
@@ -96,6 +116,7 @@ MariaDB server components (e.g. plugins or embedded applications).
|
|
|
|
|
|
|
|
|
|
%package static
|
|
%package static
|
|
|
|
+Version: %{mariadb_version}
|
|
Summary: MariaDB - static libraries
|
|
Summary: MariaDB - static libraries
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
Requires: %{name}-devel
|
|
Requires: %{name}-devel
|
|
@@ -103,8 +124,9 @@ Requires: %{name}-devel
|
|
%description static
|
|
%description static
|
|
This package provides static libraries of MariaDB.
|
|
This package provides static libraries of MariaDB.
|
|
|
|
|
|
-
|
|
+%if %{with source}
|
|
%package source
|
|
%package source
|
|
|
|
+Version: %{mariadb_version}
|
|
Summary: MariaDB - Source
|
|
Summary: MariaDB - Source
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
Requires: mariadb-devel = %{version}-%{release}
|
|
Requires: mariadb-devel = %{version}-%{release}
|
|
@@ -114,8 +136,10 @@ AutoReqProv: no
|
|
%description source
|
|
%description source
|
|
This package contains the sources files of MariaDB.
|
|
This package contains the sources files of MariaDB.
|
|
|
|
|
|
|
|
+%endif
|
|
|
|
|
|
%package test
|
|
%package test
|
|
|
|
+Version: %{mariadb_version}
|
|
Requires: %{name}-client = %{version}-%{release} perl-DBI perl
|
|
Requires: %{name}-client = %{version}-%{release} perl-DBI perl
|
|
Summary: MariaDB - Test suite
|
|
Summary: MariaDB - Test suite
|
|
Group: Applications/Databases
|
|
Group: Applications/Databases
|
|
@@ -127,6 +151,7 @@ This package contains the MariaDB regression test suite.
|
|
|
|
|
|
|
|
|
|
%package embedded
|
|
%package embedded
|
|
|
|
+Version: %{mariadb_version}
|
|
Summary: MariaDB as an embeddable library
|
|
Summary: MariaDB as an embeddable library
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
Obsoletes: mysql-embedded MySQL-embedded
|
|
Obsoletes: mysql-embedded MySQL-embedded
|
|
@@ -174,7 +199,8 @@ mkdir release
|
|
-DWITH_SEQUENCE_STORAGE_ENGINE="ON" \
|
|
-DWITH_SEQUENCE_STORAGE_ENGINE="ON" \
|
|
-DWITH_XTRADB_STORAGE_ENGINE="ON" \
|
|
-DWITH_XTRADB_STORAGE_ENGINE="ON" \
|
|
-DWITHOUT_TOKUDB=1 \
|
|
-DWITHOUT_TOKUDB=1 \
|
|
- -DWITH_JEMALLOC="no"
|
|
+ -DWITH_JEMALLOC="no" \
|
|
|
|
+ -DGRN_WITH_MECAB="yes"
|
|
|
|
|
|
# -DWITH_PCRE="system"
|
|
# -DWITH_PCRE="system"
|
|
|
|
|
|
@@ -199,11 +225,13 @@ install -m 0644 Docs/mysql.info %{buildroot}%{_infodir}
|
|
rm -rf ./doc
|
|
rm -rf ./doc
|
|
mv -f %{buildroot}%{_docdir} ./
|
|
mv -f %{buildroot}%{_docdir} ./
|
|
|
|
|
|
|
|
+%if %{with source}
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}-source
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}-source
|
|
pushd %{buildroot}%{_datadir}/%{name}-source
|
|
pushd %{buildroot}%{_datadir}/%{name}-source
|
|
tar zxf %{SOURCE0}
|
|
tar zxf %{SOURCE0}
|
|
find %{buildroot}%{_datadir}/%{name}-source -type f -exec chmod ugo-x {} \;
|
|
find %{buildroot}%{_datadir}/%{name}-source -type f -exec chmod ugo-x {} \;
|
|
popd
|
|
popd
|
|
|
|
+%endif
|
|
|
|
|
|
install -d %{buildroot}%{_sysconfdir}/rpm
|
|
install -d %{buildroot}%{_sysconfdir}/rpm
|
|
sed -e 's/@BASEVERSION@/%{mariadb_base_version}/' -e 's/@VERSION@/%{version}/' -e 's/@RELEASE@/%{release}/' < %{SOURCE1000} > %{buildroot}%{_sysconfdir}/rpm/macros.mariadb
|
|
sed -e 's/@BASEVERSION@/%{mariadb_base_version}/' -e 's/@VERSION@/%{version}/' -e 's/@RELEASE@/%{release}/' < %{SOURCE1000} > %{buildroot}%{_sysconfdir}/rpm/macros.mariadb
|
|
@@ -295,6 +323,40 @@ if [ $1 -ge 1 ]; then
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
+%pre mroonga
|
|
|
|
+if [ $1 -gt 1 ]; then
|
|
|
|
+/usr/bin/mysql -u root < %{_datadir}/mysql/mroonga/uninstall.sql || cat <<EOF
|
|
|
|
+An error occured when to register plugin.
|
|
|
|
+Please run a command below:
|
|
|
|
+
|
|
|
|
+ /usr/bin/mysql -u root < %{_datadir}/mysql/mroonga/uninstall.sql
|
|
|
|
+
|
|
|
|
+EOF
|
|
|
|
+
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+%post mroonga
|
|
|
|
+if [ $1 -eq 1 ] ; then
|
|
|
|
+ /usr/bin/mysql -u root < %{_datadir}/mysql/mroonga/install.sql || cat <<EOF
|
|
|
|
+An error occured when to register plugin.
|
|
|
|
+Please run a command below:
|
|
|
|
+
|
|
|
|
+ /usr/bin/mysql -u root < %{_datadir}/mysql/mroonga/install.sql
|
|
|
|
+
|
|
|
|
+EOF
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+%postun mroonga
|
|
|
|
+if [ $1 -gt 0 ] ; then
|
|
|
|
+ /usr/bin/mysql -u root < %{_datadir}/mysql/mroonga/install.sql || cat <<EOF
|
|
|
|
+An error occured when to register plugin.
|
|
|
|
+Please run a command below:
|
|
|
|
+
|
|
|
|
+ /usr/bin/mysql -u root < %{_datadir}/mysql/mroonga/install.sql
|
|
|
|
+
|
|
|
|
+EOF
|
|
|
|
+fi
|
|
|
|
+
|
|
# Clean up the BuildRoot
|
|
# Clean up the BuildRoot
|
|
%clean
|
|
%clean
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
|
|
@@ -362,6 +424,8 @@ fi
|
|
%{_bindir}/resolveip
|
|
%{_bindir}/resolveip
|
|
#%{_bindir}/tokuftdump
|
|
#%{_bindir}/tokuftdump
|
|
%{_sbindir}/mysqld
|
|
%{_sbindir}/mysqld
|
|
|
|
+%exclude %{_libdir}/mysql/plugin/ha_mroonga.so
|
|
|
|
+%exclude %{_datadir}/mysql/mroonga
|
|
%{_libdir}/mysql
|
|
%{_libdir}/mysql
|
|
%config(noreplace) %{_sysconfdir}/my.cnf.d/server.cnf
|
|
%config(noreplace) %{_sysconfdir}/my.cnf.d/server.cnf
|
|
#%config(noreplace) %{_sysconfdir}/my.cnf.d/tokudb.cnf
|
|
#%config(noreplace) %{_sysconfdir}/my.cnf.d/tokudb.cnf
|
|
@@ -370,6 +434,11 @@ fi
|
|
%{_datadir}/mysql
|
|
%{_datadir}/mysql
|
|
%attr(755, mysql, mysql) %dir %{mysqldatadir}
|
|
%attr(755, mysql, mysql) %dir %{mysqldatadir}
|
|
|
|
|
|
|
|
+%files mroonga
|
|
|
|
+%defattr(-, root, root)
|
|
|
|
+%{_libdir}/mysql/plugin/ha_mroonga.so
|
|
|
|
+%{_datadir}/mysql/mroonga
|
|
|
|
+
|
|
%files client
|
|
%files client
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
%config(noreplace) %{_sysconfdir}/my.cnf.d/mysql-clients.cnf
|
|
%config(noreplace) %{_sysconfdir}/my.cnf.d/mysql-clients.cnf
|
|
@@ -414,9 +483,11 @@ fi
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%{_libdir}/lib*.a
|
|
%{_libdir}/lib*.a
|
|
|
|
|
|
|
|
+%if %{with source}
|
|
%files source
|
|
%files source
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
%{_datadir}/mariadb-source
|
|
%{_datadir}/mariadb-source
|
|
|
|
+%endif
|
|
|
|
|
|
%files test
|
|
%files test
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
@@ -436,6 +507,10 @@ fi
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Wed Nov 26 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.15-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- enabled bundled Mroonga.
|
|
|
|
+
|
|
* Mon Sep 29 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.14-1
|
|
* Mon Sep 29 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.14-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
|
|
|