[6815] | 1 | %{!?use_system_mysql:%define use_system_mysql 0} |
---|
| 2 | |
---|
[8349] | 3 | %define mysql_base_version %{__mariadb_base_version} |
---|
| 4 | %define mysql_version %{__mariadb_version} |
---|
| 5 | %define mysql_release %{__mariadb_release} |
---|
[6815] | 6 | |
---|
[8349] | 7 | %define groonga_required_version 4.0.1 |
---|
[6815] | 8 | |
---|
[8349] | 9 | Name: mariadb-mroonga |
---|
| 10 | Version: 4.01 |
---|
[6815] | 11 | Release: 1%{?_dist_release} |
---|
[8349] | 12 | Summary: A fast fulltext searchable storage engine for MariaDB. |
---|
[6815] | 13 | |
---|
| 14 | Group: Applications/Databases |
---|
| 15 | License: LGPLv2.1 |
---|
| 16 | URL: http://mroonga.github.com/ |
---|
| 17 | Source0: http://github.com/downloads/mroonga/mroonga/mroonga-%{version}.tar.gz |
---|
[8349] | 18 | ### the next release may include the follwing patches. |
---|
| 19 | Patch0: 4a3d6c77a9.patch |
---|
| 20 | Patch1: 171fa019d4.patch |
---|
[6815] | 21 | |
---|
| 22 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n) |
---|
| 23 | BuildRequires: groonga-devel >= %{groonga_required_version} |
---|
[8349] | 24 | BuildRequires: groonga-normalizer-mysql-devel pcre-devel |
---|
| 25 | BuildRequires: mariadb-source |
---|
[6815] | 26 | %if "%{?mysql_version}" != "" |
---|
[8349] | 27 | Requires: mariadbserver-%{mysql_base_version} |
---|
| 28 | Requires: mariadbclient-%{mysql_base_version} |
---|
[6815] | 29 | %endif |
---|
| 30 | Requires: groonga-libs >= %{groonga_required_version} |
---|
[8349] | 31 | Requires: groonga-normalizer-mysql |
---|
| 32 | Obsoletes: MySQL-mroonga < 4.00 |
---|
[6815] | 33 | |
---|
| 34 | Vendor: Project Vine |
---|
| 35 | Distribution: Vine Linux |
---|
| 36 | Packager: tomop |
---|
| 37 | |
---|
| 38 | %description |
---|
[8349] | 39 | Mroonga is a fast fulltext searchable storage plugin for MariaDB. |
---|
[6815] | 40 | It is based on groonga that is a fast fulltext search engine and |
---|
| 41 | column store. Groonga is good at real-time update. |
---|
| 42 | |
---|
| 43 | %package doc |
---|
| 44 | Summary: Documentation for mroonga |
---|
| 45 | Group: Documentation |
---|
| 46 | License: LGPLv2.1 |
---|
| 47 | |
---|
| 48 | %description doc |
---|
| 49 | Documentation for mroonga |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | %prep |
---|
| 53 | %setup -q -n mroonga-%{version} |
---|
[8349] | 54 | %patch0 -p1 -b .private |
---|
| 55 | %patch1 -p1 -b .LOCK_open |
---|
[6815] | 56 | |
---|
| 57 | %build |
---|
[8349] | 58 | mysql_source=%{_datadir}/mariadb-source/mariadb-%{mysql_version} |
---|
[6815] | 59 | %configure --disable-static --with-mysql-source=${mysql_source} \ |
---|
| 60 | %{?mroonga_configure_options} |
---|
| 61 | make %{?_smp_mflags} |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | %install |
---|
[8349] | 65 | rm -rf %{buildroot} |
---|
| 66 | make install DESTDIR=%{buildroot} |
---|
| 67 | rm -f %{buildroot}%{_libdir}/mysql/plugin/*.la |
---|
| 68 | mv -f %{buildroot}%{_datadir}/doc/mroonga/ mysql-mroonga-doc/ |
---|
[6815] | 69 | |
---|
| 70 | %clean |
---|
[8349] | 71 | rm -rf %{buildroot} |
---|
[6815] | 72 | |
---|
| 73 | %post |
---|
| 74 | if [ "$1" = 2 ] ; then |
---|
| 75 | sql=" |
---|
| 76 | DROP FUNCTION last_insert_grn_id; |
---|
| 77 | UNINSTALL PLUGIN mroonga; |
---|
| 78 | FLUSH TABLES; |
---|
| 79 | " |
---|
| 80 | command="/usr/bin/mysql -u root -e \"$sql\"" |
---|
| 81 | echo $command |
---|
| 82 | eval $command || \ |
---|
| 83 | (echo "run the following command to unregister mroonga:"; \ |
---|
| 84 | echo " $command") |
---|
| 85 | fi |
---|
| 86 | sql=" |
---|
| 87 | DELETE IGNORE FROM mysql.plugin WHERE name = 'mroonga'; |
---|
| 88 | INSTALL PLUGIN mroonga SONAME 'ha_mroonga.so'; |
---|
| 89 | CREATE FUNCTION last_insert_grn_id RETURNS INTEGER soname 'ha_mroonga.so'; |
---|
| 90 | " |
---|
| 91 | command="/usr/bin/mysql -u root -e \"$sql\"" |
---|
| 92 | echo $command |
---|
| 93 | eval $command || \ |
---|
| 94 | (echo "run the following command to register mroonga:"; \ |
---|
| 95 | echo " $command") |
---|
| 96 | |
---|
| 97 | %preun |
---|
| 98 | if [ "$1" = 0 ]; then |
---|
| 99 | sql=" |
---|
| 100 | DROP FUNCTION last_insert_grn_id; |
---|
| 101 | UNINSTALL PLUGIN mroonga; |
---|
| 102 | FLUSH TABLES; |
---|
| 103 | " |
---|
| 104 | command="/usr/bin/mysql -u root -e \"$sql\"" |
---|
| 105 | echo $command |
---|
| 106 | eval $command || \ |
---|
| 107 | (echo "run the following command to unregister mroonga:"; \ |
---|
| 108 | echo " $command") |
---|
| 109 | fi |
---|
| 110 | |
---|
| 111 | %files |
---|
| 112 | %defattr(-,root,root,-) |
---|
[8349] | 113 | %{_libdir}/mysql/plugin/* |
---|
[6815] | 114 | %{_datadir}/man/man1/* |
---|
| 115 | %{_datadir}/man/*/man1/* |
---|
| 116 | |
---|
| 117 | %files doc |
---|
| 118 | %defattr(-,root,root,-) |
---|
| 119 | %doc README COPYING |
---|
| 120 | %doc mysql-mroonga-doc/* |
---|
| 121 | |
---|
| 122 | %changelog |
---|
[8349] | 123 | * Fri Apr 11 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.01-1 |
---|
| 124 | - new upstream release. |
---|
| 125 | - added Patch0 and Patch1. |
---|
| 126 | |
---|
| 127 | * Mon Mar 24 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.00-2 |
---|
| 128 | - rebuilt with mariadb-10.0.9. |
---|
| 129 | |
---|
| 130 | * Tue Feb 11 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.00-1 |
---|
| 131 | - new upstream release. |
---|
| 132 | |
---|
| 133 | * Wed Dec 18 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.10-2 |
---|
| 134 | - added "BR: groonga-normalizer-mysql-devel". |
---|
| 135 | |
---|
| 136 | * Wed Dec 04 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.10-1 |
---|
| 137 | - new upstream release. |
---|
| 138 | - built with MariaDB. |
---|
| 139 | |
---|
[7514] | 140 | * Wed Feb 20 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.00-1 |
---|
| 141 | - new upstream release. |
---|
| 142 | - fixed dates of old %%changelog. |
---|
| 143 | |
---|
[7160] | 144 | * Fri Nov 16 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.08-1 |
---|
| 145 | - new upstream release. |
---|
| 146 | |
---|
[6815] | 147 | * Sat Sep 15 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.06-1 |
---|
| 148 | - initial build for Vine Linux. |
---|
| 149 | |
---|
| 150 | * Wed Aug 29 2012 Kouhei Sutou <kou@clear-code.com> - 2.06-0 |
---|
| 151 | - new upstream release. |
---|
| 152 | - make MySQL spec file name customizable. |
---|
| 153 | - make mroonga configure options customizable. |
---|
| 154 | - add missing mysql-devel BuildRequires. Reported by wing. Thanks!!! |
---|
| 155 | - use MySQL 5.5.27. |
---|
| 156 | |
---|
| 157 | * Sun Jul 29 2012 HAYASHI Kentaro <hayashi@clear-code.com> - 2.05-0 |
---|
| 158 | - new upstream release. |
---|
| 159 | - use MySQL 5.5.25a. |
---|
| 160 | |
---|
| 161 | * Fri Jun 29 2012 Kouhei Sutou <kou@clear-code.com> - 2.04-0 |
---|
| 162 | - new upstream release. |
---|
| 163 | - ensure deleting mroonga plugin before install. |
---|
| 164 | Suggested by Kazuhiro Isobe. Thanks!!! |
---|
| 165 | - use MySQL 5.5.25. |
---|
| 166 | |
---|
| 167 | * Tue May 29 2012 Kouhei Sutou <kou@clear-code.com> - 2.03-0 |
---|
| 168 | - new upstream release. |
---|
| 169 | - use MySQL 5.5.24. |
---|
| 170 | - make mysql_* variables customizable |
---|
| 171 | - require groonga 2.0.3 or later. |
---|
| 172 | |
---|
| 173 | * Sun Apr 29 2012 Kouhei Sutou <kou@clear-code.com> - 2.02-0 |
---|
| 174 | - new upstream release. |
---|
| 175 | - use MySQL 5.5.23. |
---|
| 176 | - require groonga 2.0.2 or later. |
---|
| 177 | |
---|
| 178 | * Thu Mar 29 2012 Kouhei Sutou <kou@clear-code.com> - 2.01-0 |
---|
| 179 | - new upstream release. |
---|
| 180 | - ensure plugin is uninstalled by closing all tables use mroonga. |
---|
| 181 | |
---|
| 182 | * Wed Feb 29 2012 Kouhei Sutou <kou@clear-code.com> - 2.00-0 |
---|
| 183 | - new upstream release. |
---|
| 184 | - always install/uninstall plugin. |
---|
| 185 | - use MySQL 5.1.61 and 5.5.21. |
---|
| 186 | - require groonga 2.0.0 or later. |
---|
| 187 | |
---|
| 188 | * Sun Jan 29 2012 Kouhei Sutou <kou@clear-code.com> - 1.20-0 |
---|
| 189 | - new upstream release. |
---|
| 190 | - require groonga 1.3.0. |
---|
| 191 | - groonga -> mroonga. |
---|
| 192 | - use MySQL 5.5.20. |
---|
| 193 | |
---|
| 194 | * Thu Dec 29 2011 Kouhei Sutou <kou@clear-code.com> - 1.11-0 |
---|
| 195 | - new upstream release. |
---|
| 196 | |
---|
| 197 | * Sat Oct 29 2011 Kouhei Sutou <kou@clear-code.com> - 1.10-0 |
---|
| 198 | - new upstream release. |
---|
| 199 | - groonga storage engine -> mroonga. |
---|
| 200 | |
---|
| 201 | * Thu Sep 29 2011 Kouhei Sutou <kou@clear-code.com> - 1.0.0-0 |
---|
| 202 | - new upstream release. |
---|
| 203 | |
---|
| 204 | * Mon Aug 29 2011 Kouhei Sutou <kou@clear-code.com> - 0.9-0 |
---|
| 205 | - new upstream release. |
---|
| 206 | |
---|
| 207 | * Fri Jul 29 2011 Kouhei Sutou <kou@clear-code.com> - 0.8-0 |
---|
| 208 | - new upstream release. |
---|
| 209 | |
---|
| 210 | * Wed Jun 29 2011 Kouhei Sutou <kou@clear-code.com> - 0.7-0 |
---|
| 211 | - new upstream release. |
---|
| 212 | |
---|
| 213 | * Sun May 29 2011 Kouhei Sutou <kou@clear-code.com> - 0.6-0 |
---|
| 214 | - new upstream release. |
---|
| 215 | |
---|
[7514] | 216 | * Tue May 17 2011 Kouhei Sutou <kou@clear-code.com> - 0.5-2 |
---|
[6815] | 217 | - use MySQL 5.5.12. |
---|
| 218 | |
---|
[7514] | 219 | * Tue Mar 29 2011 Kouhei Sutou <kou@clear-code.com> - 0.5-1 |
---|
[6815] | 220 | - new upstream release. |
---|
| 221 | |
---|
| 222 | * Sat Jan 29 2011 Kouhei Sutou <kou@clear-code.com> - 0.4-4 |
---|
| 223 | - do not remove plugin on upgrade. |
---|
| 224 | |
---|
| 225 | * Wed Jan 12 2011 Kouhei Sutou <kou@clear-code.com> - 0.4-3 |
---|
| 226 | - rebuild without debug symbol. |
---|
| 227 | |
---|
| 228 | * Thu Dec 30 2010 Kouhei Sutou <kou@clear-code.com> - 0.4-2 |
---|
| 229 | - use MySQL 5.5.8-1. |
---|
| 230 | - fix SQL literal notation. |
---|
| 231 | |
---|
| 232 | * Mon Nov 29 2010 Kouhei Sutou <kou@clear-code.com> - 0.4-1 |
---|
| 233 | - use the latest MySQL. |
---|
| 234 | - new upstream release. |
---|
| 235 | |
---|
| 236 | * Sun Nov 21 2010 Kouhei Sutou <kou@clear-code.com> - 0.3-2 |
---|
| 237 | - install user define function. |
---|
| 238 | |
---|
| 239 | * Fri Oct 29 2010 Kouhei Sutou <kou@clear-code.com> - 0.3-1 |
---|
| 240 | - new upstream release. |
---|
| 241 | |
---|
| 242 | * Fri Oct 08 2010 Kouhei Sutou <kou@clear-code.com> - 0.2-2 |
---|
| 243 | - specify target MySQL version. |
---|
| 244 | - use %{version}. |
---|
| 245 | |
---|
| 246 | * Wed Sep 29 2010 Kouhei Sutou <kou@clear-code.com> - 0.2-1 |
---|
| 247 | - new upstream release. |
---|
| 248 | |
---|
[7514] | 249 | * Sun Sep 12 2010 Kouhei Sutou <kou@clear-code.com> - 0.1-3 |
---|
[6815] | 250 | - require MySQL-client-community. |
---|
| 251 | |
---|
| 252 | * Fri Sep 10 2010 Kouhei Sutou <kou@clear-code.com> - 0.1-2 |
---|
| 253 | - use MySQL-devel-community. |
---|
| 254 | |
---|
| 255 | * Fri Sep 03 2010 Kouhei Sutou <kou@clear-code.com> - 0.1-1 |
---|
| 256 | - initial packaging for CentOS. |
---|