|
@@ -8,7 +8,7 @@
|
|
|
|
|
|
Name: mariadb-mroonga
|
|
Name: mariadb-mroonga
|
|
Version: 4.01
|
|
Version: 4.01
|
|
-Release: 1%{?_dist_release}
|
|
|
|
|
|
+Release: 2%{?_dist_release}
|
|
Summary: A fast fulltext searchable storage engine for MariaDB.
|
|
Summary: A fast fulltext searchable storage engine for MariaDB.
|
|
|
|
|
|
Group: Applications/Databases
|
|
Group: Applications/Databases
|
|
@@ -73,10 +73,14 @@ rm -rf %{buildroot}
|
|
%post
|
|
%post
|
|
if [ "$1" = 2 ] ; then
|
|
if [ "$1" = 2 ] ; then
|
|
sql="
|
|
sql="
|
|
- DROP FUNCTION last_insert_grn_id;
|
|
|
|
- UNINSTALL PLUGIN mroonga;
|
|
|
|
- FLUSH TABLES;
|
|
|
|
- "
|
|
|
|
|
|
+USE mysql;
|
|
|
|
+DROP FUNCTION IF EXISTS mroonga_snippet;
|
|
|
|
+DROP FUNCTION IF EXISTS last_insert_grn_id;
|
|
|
|
+DROP FUNCTION IF EXISTS mroonga_command;
|
|
|
|
+DROP FUNCTION IF EXISTS mroonga_escape;
|
|
|
|
+UNINSTALL PLUGIN mroonga;
|
|
|
|
+FLUSH TABLES;
|
|
|
|
+"
|
|
command="/usr/bin/mysql -u root -e \"$sql\""
|
|
command="/usr/bin/mysql -u root -e \"$sql\""
|
|
echo $command
|
|
echo $command
|
|
eval $command || \
|
|
eval $command || \
|
|
@@ -86,7 +90,10 @@ fi
|
|
sql="
|
|
sql="
|
|
DELETE IGNORE FROM mysql.plugin WHERE name = 'mroonga';
|
|
DELETE IGNORE FROM mysql.plugin WHERE name = 'mroonga';
|
|
INSTALL PLUGIN mroonga SONAME 'ha_mroonga.so';
|
|
INSTALL PLUGIN mroonga SONAME 'ha_mroonga.so';
|
|
-CREATE FUNCTION last_insert_grn_id RETURNS INTEGER soname 'ha_mroonga.so';
|
|
|
|
|
|
+CREATE FUNCTION last_insert_grn_id RETURNS INTEGER SONAME 'ha_mroonga.so';
|
|
|
|
+CREATE FUNCTION mroonga_snippet RETURNS STRING SONAME 'ha_mroonga.so';
|
|
|
|
+CREATE FUNCTION mroonga_command RETURNS STRING SONAME 'ha_mroonga.so';
|
|
|
|
+CREATE FUNCTION mroonga_escape RETURNS STRING SONAME 'ha_mroonga.so';
|
|
"
|
|
"
|
|
command="/usr/bin/mysql -u root -e \"$sql\""
|
|
command="/usr/bin/mysql -u root -e \"$sql\""
|
|
echo $command
|
|
echo $command
|
|
@@ -97,10 +104,14 @@ eval $command || \
|
|
%preun
|
|
%preun
|
|
if [ "$1" = 0 ]; then
|
|
if [ "$1" = 0 ]; then
|
|
sql="
|
|
sql="
|
|
- DROP FUNCTION last_insert_grn_id;
|
|
|
|
- UNINSTALL PLUGIN mroonga;
|
|
|
|
- FLUSH TABLES;
|
|
|
|
- "
|
|
|
|
|
|
+USE mysql;
|
|
|
|
+DROP FUNCTION IF EXISTS mroonga_snippet;
|
|
|
|
+DROP FUNCTION IF EXISTS last_insert_grn_id;
|
|
|
|
+DROP FUNCTION IF EXISTS mroonga_command;
|
|
|
|
+DROP FUNCTION IF EXISTS mroonga_escape;
|
|
|
|
+UNINSTALL PLUGIN mroonga;
|
|
|
|
+FLUSH TABLES;
|
|
|
|
+"
|
|
command="/usr/bin/mysql -u root -e \"$sql\""
|
|
command="/usr/bin/mysql -u root -e \"$sql\""
|
|
echo $command
|
|
echo $command
|
|
eval $command || \
|
|
eval $command || \
|
|
@@ -120,6 +131,9 @@ fi
|
|
%doc mysql-mroonga-doc/*
|
|
%doc mysql-mroonga-doc/*
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sun Apr 13 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.01-2
|
|
|
|
+- fixed %%post and %%preun scripts.
|
|
|
|
+
|
|
* Fri Apr 11 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.01-1
|
|
* Fri Apr 11 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.01-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
- added Patch0 and Patch1.
|
|
- added Patch0 and Patch1.
|