null+****@clear*****
null+****@clear*****
2012年 1月 29日 (日) 18:43:35 JST
Kouhei Sutou 2012-01-29 18:43:35 +0900 (Sun, 29 Jan 2012) New Revision: 9fb351ad5426ae12ccde51b5a6ca4bf44bb05f5b Log: [rpm][fedora] add mysql-mroonga-compatible package. Modified files: packages/rpm/fedora/mysql-mroonga.spec.in Modified: packages/rpm/fedora/mysql-mroonga.spec.in (+55 -2) =================================================================== --- packages/rpm/fedora/mysql-mroonga.spec.in 2012-01-25 21:54:04 +0900 (458e95f) +++ packages/rpm/fedora/mysql-mroonga.spec.in 2012-01-29 18:43:35 +0900 (1cdff3d) @@ -21,16 +21,36 @@ Requires: groonga-libs >= %{groonga_required_version} Requires: mysql-server Requires: mysql Obsoletes: mysql-groonga < 1.10-0 +Conflicts: mysql-mroonga-compatible %description Mroonga is a fast fulltext searchable storage plugin for MySQL. It is based on groonga that is a fast fulltext search engine and column store. Groonga is good at real-time update. +%package compatible +Summary: A fast fulltext searchable storage engine for MySQL. +Group: Applications/Databases +License: LGPLv2.1 +Conflicts: mysql-mroonga + +%description compatible +This package is just provided for backward compatibility. + +Mroonga uses "groonga" as storage engine name before 1.20. +But mroonga 1.20 or later uses "mroonga" as storage engine +name. It means that 1.20 breaks backward compatibility. + +This package provide mroonga as "groonga" storage engine. +You can use this package to avoid + +Note that this package will be remov****@1*****. So you need +to upgrade to use "mroonga" storage engine sooner or later. + %package doc Summary: Documentation for mroonga Group: Documentation -License: LGPLv2 +License: LGPLv2.1 %description doc Documentation for mroonga @@ -77,6 +97,19 @@ CREATE FUNCTION last_insert_grn_id RETURNS INTEGER soname 'ha_mroonga.so'; echo " $command") fi +%post compatible +if [ $1 -eq 1 ]; then + sql=" +INSTALL PLUGIN groonga SONAME 'ha_groonga.so'; +CREATE FUNCTION last_insert_grn_id RETURNS INTEGER soname 'ha_groonga.so'; +" + command="/usr/bin/mysql -u root -e \"$sql\"" + echo $command + eval $command || \ + (echo "run the following command to register mroonga:"; \ + echo " $command") +fi + %postun if [ $1 -eq 0 ]; then sql=" @@ -90,9 +123,28 @@ UNINSTALL PLUGIN mroonga; echo " $command") fi +%postun compatible +if [ $1 -eq 0 ]; then + sql=" +DROP FUNCTION last_insert_grn_id; +UNINSTALL PLUGIN groonga; +" + command="/usr/bin/mysql -u root -e \"$sql\"" + echo $command + eval $command || \ + (echo "run the following command to unregister mroonga:"; \ + echo " $command") +fi + %files %defattr(-,root,root,-) -%{_libdir}/mysql/plugin/ +%{_libdir}/mysql/plugin/ha_mroonga.* +%{_datadir}/man/man1/* +%{_datadir}/man/*/man1/* + +%files compatible +%defattr(-,root,root,-) +%{_libdir}/mysql/plugin/ha_groonga.* %{_datadir}/man/man1/* %{_datadir}/man/*/man1/* @@ -106,6 +158,7 @@ fi - new upstream release. - require groonga 1.3.0. - groonga -> mroonga. +- add mysql-mroonga-copmatible package for backward compatibility. * Thu Dec 29 2011 Kouhei Sutou <kou****@clear*****> - 1.11-0 - new upstream release.