|
@@ -1,4 +1,5 @@
|
|
%bcond_with source
|
|
%bcond_with source
|
|
|
|
+%bcond_without onigmo
|
|
|
|
|
|
%define mysqld_user mysql
|
|
%define mysqld_user mysql
|
|
%define mysqld_group mysql
|
|
%define mysqld_group mysql
|
|
@@ -11,9 +12,9 @@
|
|
%define _unpackaged_files_terminate_build 1
|
|
%define _unpackaged_files_terminate_build 1
|
|
|
|
|
|
%define mariadb_base_version 10.2
|
|
%define mariadb_base_version 10.2
|
|
-%define mariadb_version 10.3.12
|
|
+%define mariadb_version 10.3.14
|
|
-%define mroonga_version 8.09
|
|
+%define mroonga_version 9.01
|
|
-%define groonga_version 8.1.1
|
|
+%define groonga_version 9.0.2
|
|
%define client_version 18
|
|
%define client_version 18
|
|
|
|
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
@@ -120,6 +121,22 @@ This storage engine supports table partitioning, MariaDB virtual
|
|
columns and also permits defining special columns such as ROWID,
|
|
columns and also permits defining special columns such as ROWID,
|
|
FILEID, and SERVID.
|
|
FILEID, and SERVID.
|
|
|
|
|
|
|
|
+%package galera
|
|
|
|
+##Version: %{mroonga_version}
|
|
|
|
+Version: %{mariadb_version}
|
|
|
|
+Summary: The configuration files and scripts for galera replication
|
|
|
|
+Group: Applications/Databases
|
|
|
|
+Provides: mariadb-server-galera = %{mariadb_version}-%{release}
|
|
|
|
+Requires(pre): mariadb-server = %{mariadb_version}-%{release}
|
|
|
|
+Requires: mariadb-server = %{mariadb_version}-%{release}
|
|
|
|
+Requires: galera
|
|
|
|
+Obsoletes: MySQL-mroonga < 4.02
|
|
|
|
+Obsoletes: mariadb-mroonga < 4.07
|
|
|
|
+Obsoletes: mariadb-mroonga-doc < 4.07
|
|
|
|
+
|
|
|
|
+%description galera
|
|
|
|
+ This package contains the files for MariaDB Galera Cluster.
|
|
|
|
+
|
|
%ifarch x86_64
|
|
%ifarch x86_64
|
|
%package tokudb
|
|
%package tokudb
|
|
Version: %{mariadb_version}
|
|
Version: %{mariadb_version}
|
|
@@ -248,7 +265,9 @@ mkdir release
|
|
-DTOKUDB_OK=1 \
|
|
-DTOKUDB_OK=1 \
|
|
%endif
|
|
%endif
|
|
-DGRN_WITH_MECAB="yes" \
|
|
-DGRN_WITH_MECAB="yes" \
|
|
|
|
+%if %{without onigmo}
|
|
-DGRN_WITH_ONIGMO="no"
|
|
-DGRN_WITH_ONIGMO="no"
|
|
|
|
+%endif
|
|
|
|
|
|
# -DWITHOUT_TOKUDB="yes"
|
|
# -DWITHOUT_TOKUDB="yes"
|
|
# -DWITH_PCRE="system"
|
|
# -DWITH_PCRE="system"
|
|
@@ -275,6 +294,7 @@ install -d %{buildroot}%{_infodir}
|
|
install -m 0644 Docs/mysql.info %{buildroot}%{_infodir}
|
|
install -m 0644 Docs/mysql.info %{buildroot}%{_infodir}
|
|
rm -rf ./doc
|
|
rm -rf ./doc
|
|
mv -f %{buildroot}%{_docdir} ./
|
|
mv -f %{buildroot}%{_docdir} ./
|
|
|
|
+rm doc/README-wsrep
|
|
|
|
|
|
mv -f %{buildroot}%{_datadir}/groonga ./
|
|
mv -f %{buildroot}%{_datadir}/groonga ./
|
|
mv -f %{buildroot}%{_datadir}/groonga-normalizer-mysql ./
|
|
mv -f %{buildroot}%{_datadir}/groonga-normalizer-mysql ./
|
|
@@ -305,6 +325,13 @@ popd
|
|
rm -f %{buildroot}%{_mandir}/man1/tokuft*
|
|
rm -f %{buildroot}%{_mandir}/man1/tokuft*
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
+# install files for galera cluster.
|
|
|
|
+install -m755 ./scripts/galera_new_cluster.sh %{buildroot}%{_bindir}/galera_new_cluster
|
|
|
|
+install -m755 ./scripts/galera_recovery.sh %{buildroot}%{_bindir}/galera_recovery
|
|
|
|
+perl -pi -e 's|^wsrep_provider=.*$|wsrep_provider=%{_libdir}/galera/libgalera_smm.so|' %{buildroot}%{_datadir}/mysql/wsrep.cnf
|
|
|
|
+perl -pi -e 's|^wsrep_notify_cmd=.*$|#wsrep_notify_cmd=%{_datadir}/mysql/wsrep_notify|' %{buildroot}%{_datadir}/mysql/wsrep.cnf
|
|
|
|
+install -m644 %{buildroot}%{_datadir}/mysql/wsrep.cnf %{buildroot}%{_sysconfdir}/my.cnf.d/galera.cnf
|
|
|
|
+
|
|
# force linking statically.
|
|
# force linking statically.
|
|
perl -pi -e 's,-lmariadb,%{_libdir}/libmariadbclient.a,' %{buildroot}%{_bindir}/mysql_config
|
|
perl -pi -e 's,-lmariadb,%{_libdir}/libmariadbclient.a,' %{buildroot}%{_bindir}/mysql_config
|
|
|
|
|
|
@@ -453,8 +480,6 @@ fi
|
|
%doc %{_infodir}/mysql.info*
|
|
%doc %{_infodir}/mysql.info*
|
|
|
|
|
|
%doc %{_mandir}/man1/aria_*.1*
|
|
%doc %{_mandir}/man1/aria_*.1*
|
|
-%doc %{_mandir}/man1/galera_new_cluster.1*
|
|
|
|
-%doc %{_mandir}/man1/galera_recovery.1*
|
|
|
|
%doc %{_mandir}/man1/innochecksum.1*
|
|
%doc %{_mandir}/man1/innochecksum.1*
|
|
%doc %{_mandir}/man1/mariabackup.1*
|
|
%doc %{_mandir}/man1/mariabackup.1*
|
|
%doc %{_mandir}/man1/mariadb-service-convert.1*
|
|
%doc %{_mandir}/man1/mariadb-service-convert.1*
|
|
@@ -521,6 +546,7 @@ fi
|
|
%exclude %{_libdir}/mysql/plugin/ha_mroonga.so
|
|
%exclude %{_libdir}/mysql/plugin/ha_mroonga.so
|
|
%exclude %{_datadir}/mysql/mroonga
|
|
%exclude %{_datadir}/mysql/mroonga
|
|
%{_libdir}/mysql
|
|
%{_libdir}/mysql
|
|
|
|
+%dir %{_sysconfdir}/my.cnf.d
|
|
%config(noreplace) %{_sysconfdir}/my.cnf.d/enable_encryption.preset
|
|
%config(noreplace) %{_sysconfdir}/my.cnf.d/enable_encryption.preset
|
|
%config(noreplace) %{_sysconfdir}/my.cnf.d/server.cnf
|
|
%config(noreplace) %{_sysconfdir}/my.cnf.d/server.cnf
|
|
%config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql
|
|
%config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql
|
|
@@ -545,9 +571,20 @@ fi
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
%{_libdir}/mysql/plugin/ha_connect.so
|
|
%{_libdir}/mysql/plugin/ha_connect.so
|
|
|
|
|
|
|
|
+%files galera
|
|
|
|
+%defattr(-, root, root)
|
|
|
|
+%doc Docs/README-wsrep
|
|
|
|
+%doc %{_mandir}/man1/galera_new_cluster.1*
|
|
|
|
+%doc %{_mandir}/man1/galera_recovery.1*
|
|
|
|
+%dir %{_sysconfdir}/my.cnf.d
|
|
|
|
+%config(noreplace) %{_sysconfdir}/my.cnf.d/galera.cnf
|
|
|
|
+%{_bindir}/galera_new_cluster
|
|
|
|
+%{_bindir}/galera_recovery
|
|
|
|
+
|
|
%ifarch x86_64
|
|
%ifarch x86_64
|
|
%files tokudb
|
|
%files tokudb
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
|
|
+%dir %{_sysconfdir}/my.cnf.d
|
|
%config(noreplace) %{_sysconfdir}/my.cnf.d/tokudb.cnf
|
|
%config(noreplace) %{_sysconfdir}/my.cnf.d/tokudb.cnf
|
|
%{_libdir}/mysql/plugin/ha_tokudb.so
|
|
%{_libdir}/mysql/plugin/ha_tokudb.so
|
|
%{_bindir}/tokuft*
|
|
%{_bindir}/tokuft*
|
|
@@ -630,6 +667,12 @@ fi
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sun May 05 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.3.14-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- replaced patch1000 to update Groonga to v9.0.2.
|
|
|
|
+- added a subpackage for galera cluster.
|
|
|
|
+- enabled regexp with groonga.
|
|
|
|
+
|
|
* Thu Jan 31 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.3.12-1
|
|
* Thu Jan 31 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.3.12-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
- replaced patch1000 to update Groonga to v8.1.1.
|
|
- replaced patch1000 to update Groonga to v8.1.1.
|