null+****@clear*****
null+****@clear*****
2012年 1月 30日 (月) 08:15:05 JST
Kouhei Sutou 2012-01-30 08:15:05 +0900 (Mon, 30 Jan 2012) New Revision: 5b8910eceadd053c5987801917ebea8faf4b943c Log: [rpm] always install/uninstall plugin. Modified files: packages/rpm/centos/mysql-mroonga.spec.in packages/rpm/fedora/mysql-mroonga.spec.in Modified: packages/rpm/centos/mysql-mroonga.spec.in (+12 -12) =================================================================== --- packages/rpm/centos/mysql-mroonga.spec.in 2012-01-30 08:10:37 +0900 (1e973ff) +++ packages/rpm/centos/mysql-mroonga.spec.in 2012-01-30 08:15:05 +0900 (2c7b136) @@ -112,30 +112,26 @@ mv $RPM_BUILD_ROOT%{_datadir}/doc/mroonga/ mysql-mroonga-doc/ rm -rf $RPM_BUILD_ROOT %post -if [ $1 -eq 1 ]; then - sql=" +sql=" INSTALL PLUGIN mroonga SONAME 'ha_mroonga.so'; CREATE FUNCTION last_insert_grn_id RETURNS INTEGER soname 'ha_mroonga.so'; " - command="/usr/bin/mysql -u root -e \"$sql\"" - echo $command - eval $command || \ +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=" +sql=" DROP FUNCTION last_insert_grn_id; UNINSTALL PLUGIN mroonga; " - command="/usr/bin/mysql -u root -e \"$sql\"" - echo $command - eval $command || \ +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,-) @@ -149,6 +145,10 @@ fi %doc mysql-mroonga-doc/* %changelog +* Wed Feb 29 2012 Kouhei Sutou <kou****@clear*****> - 1.21-0 +- new upstream release. +- always install/uninstall plugin. + * Sun Jan 29 2012 Kouhei Sutou <kou****@clear*****> - 1.20-0 - new upstream release. - require groonga 1.3.0. Modified: packages/rpm/fedora/mysql-mroonga.spec.in (+12 -12) =================================================================== --- packages/rpm/fedora/mysql-mroonga.spec.in 2012-01-30 08:10:37 +0900 (4129e51) +++ packages/rpm/fedora/mysql-mroonga.spec.in 2012-01-30 08:15:05 +0900 (030f78d) @@ -66,30 +66,26 @@ mv $RPM_BUILD_ROOT%{_datadir}/doc/mroonga/ mysql-mroonga-doc/ rm -rf $RPM_BUILD_ROOT %post -if [ $1 -eq 1 ]; then - sql=" +sql=" INSTALL PLUGIN mroonga SONAME 'ha_mroonga.so'; CREATE FUNCTION last_insert_grn_id RETURNS INTEGER soname 'ha_mroonga.so'; " - command="/usr/bin/mysql -u root -e \"$sql\"" - echo $command - eval $command || \ +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=" +sql=" DROP FUNCTION last_insert_grn_id; UNINSTALL PLUGIN mroonga; " - command="/usr/bin/mysql -u root -e \"$sql\"" - echo $command - eval $command || \ +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,-) @@ -103,6 +99,10 @@ fi %doc mysql-mroonga-doc/* %changelog +* Wed Feb 29 2012 Kouhei Sutou <kou****@clear*****> - 1.21-0 +- new upstream release. +- always install/uninstall plugin. + * Sun Jan 29 2012 Kouhei Sutou <kou****@clear*****> - 1.20-0 - new upstream release. - require groonga 1.3.0.