diff options
Diffstat (limited to 'storage/mroonga/packages/rpm/centos/mysql55-mroonga.spec.in')
-rw-r--r-- | storage/mroonga/packages/rpm/centos/mysql55-mroonga.spec.in | 131 |
1 files changed, 106 insertions, 25 deletions
diff --git a/storage/mroonga/packages/rpm/centos/mysql55-mroonga.spec.in b/storage/mroonga/packages/rpm/centos/mysql55-mroonga.spec.in index e20e1b32162..8bd2ba540d3 100644 --- a/storage/mroonga/packages/rpm/centos/mysql55-mroonga.spec.in +++ b/storage/mroonga/packages/rpm/centos/mysql55-mroonga.spec.in @@ -1,26 +1,26 @@ %{?scl:%scl_package mroonga} %{!?scl:%global pkg_name %{name}} -%{!?centos_ver:%define centos_ver 5} +%define _centos_ver %{?centos_ver:%{centos_ver}}%{!?centos_ver:5} -%if %{centos_ver} == 6 -%define mysql_version_default 5.5.41 -%define mysql_release_default 2 -%define mysql_dist_default el6.centos.alt -%define mysql_download_base_url_default http://vault.centos.org/6.6/SCL/Source/SPackages +%if %{_centos_ver} == 6 +%define mysql_version_default 5.5.52 +%define mysql_release_default 1 +%define mysql_dist_default el6 +%define mysql_download_base_url_default http://vault.centos.org/6.8/sclo/Source/rh/mysql55/ %define mysql_spec_file_default mysql.spec %else -%define mysql_version_default 5.5.40 -%define mysql_release_default 2 +%define mysql_version_default 5.5.45 +%define mysql_release_default 1 %define mysql_dist_default el5 %define mysql_download_base_url_default http://vault.centos.org/5.11/updates/SRPMS %define mysql_spec_file_default mysql.spec %endif -%{!?mysql_version:%define mysql_version %{mysql_version_default}} -%{!?mysql_release:%define mysql_release %{mysql_release_default}} -%{!?mysql_dist:%define mysql_dist %{mysql_dist_default}} -%{!?mysql_download_base_url:%define mysql_download_base_url %{mysql_download_base_url_default}} -%{!?mysql_spec_file:%define mysql_spec_file %{mysql_spec_file_default}} +%define _mysql_version %{?mysql_version:%{mysql_version}}%{!?mysql_version:%{mysql_version_default}} +%define _mysql_release %{?mysql_release:%{mysql_release}}%{!?mysql_release:%{mysql_release_default}} +%define _mysql_dist %{?mysql_dist:%{mysql_dist}}%{!?mysql_dist:%{mysql_dist_default}} +%define _mysql_download_base_url %{?mysql_download_base_url:%{mysql_download_base_url}}%{!?mysql_download_base_url:%{mysql_download_base_url_default}} +%define _mysql_spec_file %{?mysql_spec_file:%{mysql_spec_file}}%{!?mysql_spec_file:%{mysql_spec_file_default}} %define groonga_required_version @REQUIRED_GROONGA_VERSION@ @@ -39,10 +39,10 @@ BuildRequires: groonga-devel >= %{groonga_required_version} BuildRequires: groonga-normalizer-mysql-devel BuildRequires: wget BuildRequires: which -BuildRequires: mysql55-mysql-devel = %{mysql_version}-%{mysql_release}.%{mysql_dist} +BuildRequires: mysql55-mysql-devel = %{_mysql_version}-%{_mysql_release}.%{_mysql_dist} BuildRequires: mysql55-build -Requires: mysql55-mysql-server = %{mysql_version}-%{mysql_release}.%{mysql_dist} -Requires: mysql55-mysql = %{mysql_version}-%{mysql_release}.%{mysql_dist} +Requires: mysql55-mysql-server = %{_mysql_version}-%{_mysql_release}.%{_mysql_dist} +Requires: mysql55-mysql = %{_mysql_version}-%{_mysql_release}.%{_mysql_dist} Requires: groonga-libs >= %{groonga_required_version} Requires: groonga-normalizer-mysql %{?scl:Requires: %scl_runtime} @@ -64,21 +64,21 @@ Documentation for Mroonga %prep %setup -q -n %{pkg_name}-%{version} -mysql_full_version=%{mysql_version}-%{mysql_release}.%{mysql_dist} +mysql_full_version=%{_mysql_version}-%{_mysql_release}.%{_mysql_dist} srpm=mysql55-mysql-${mysql_full_version}.src.rpm if [ ! -f ../../SRPMS/$srpm ]; then - wget --continue -O ../../SRPMS/$srpm %{mysql_download_base_url}/$srpm + wget --continue -O ../../SRPMS/$srpm %{_mysql_download_base_url}/$srpm rpm -Uvh ../../SRPMS/$srpm fi %build -mysql_source=../mysql-%{mysql_version} +mysql_source=../mysql-%{_mysql_version} if [ ! -d ${mysql_source} ]; then specs_dir= MYSQL_RPMBUILD_TEST=no rpmbuild -bp \ --define 'runselftest 0' \ --define 'optflags -O0' \ - ../../SPECS/%{mysql_spec_file} + ../../SPECS/%{_mysql_spec_file} fi %configure --disable-static --with-mysql-source=${mysql_source} \ --disable-fast-mutexes \ @@ -97,10 +97,10 @@ rm -rf $RPM_BUILD_ROOT %post mysql_command=`scl enable mysql55 'which mysql'` -password_option="" -$mysql_command -u root -e "quit" -if [ $? -ne 0 ]; then - password_option="-p" +if $mysql_command -u root -e "quit" > /dev/null 2>&1; then + password_option="" +else + password_option="-p" fi current_version=0 version=`echo %{groonga_required_version} | sed -e 's/\.//g'` @@ -137,7 +137,7 @@ eval $command || \ %preun uninstall_sql=%{_datadir}/mroonga/uninstall.sql mysql_command=`scl enable mysql55 'which mysql'` -if $mysql_command -u root -e "quit"; then +if $mysql_command -u root -e "quit" > /dev/null 2>&1; then password_option="" else password_option="-p" @@ -163,6 +163,87 @@ fi %doc mysql-mroonga-doc/* %changelog +* Thu Oct 12 2017 Kentaro Hayashi <hayashi@clear-code.com> - 7.07-1 +- new upstream release. + +* Tue Aug 29 2017 Kentaro Hayashi <hayashi@clear-code.com> - 7.06-1 +- new upstream release. + +* Sat Jul 29 2017 Kentaro Hayashi <hayashi@clear-code.com> - 7.05-1 +- new upstream release. + +* Thu Jun 29 2017 Kentaro Hayashi <hayashi@clear-code.com> - 7.04-1 +- new upstream release. + +* Mon May 29 2017 Kentaro Hayashi <hayashi@clear-code.com> - 7.03-1 +- new upstream release. + +* Sat Apr 29 2017 Kentaro Hayashi <hayashi@clear-code.com> - 7.02-1 +- new upstream release. + +* Wed Mar 29 2017 Kentaro Hayashi <hayashi@clear-code.com> - 7.01-1 +- new upstream release. + +* Thu Feb 09 2017 Kentaro Hayashi <hayashi@clear-code.com> - 7.00-1 +- new upstream release. + +* Fri Jan 13 2017 Kouhei Sutou <kou@clear-code.com> - 6.13-1 +- new upstream release. + +* Thu Dec 29 2016 Kentaro Hayashi <hayashi@clear-code.com> - 6.12-1 +- new upstream release. + +* Tue Nov 29 2016 Kentaro Hayashi <hayashi@clear-code.com> - 6.11-1 +- new upstream release. + +* Sat Oct 29 2016 Kentaro Hayashi <hayashi@clear-code.com> - 6.10-1 +- new upstream release. + +* Thu Sep 29 2016 Kentaro Hayashi <hayashi@clear-code.com> - 6.09-1 +- new upstream release. + +* Mon Aug 29 2016 Kentaro Hayashi <hayashi@clear-code.com> - 6.08-1 +- new upstream release. + +* Fri Jul 29 2016 Kentaro Hayashi <hayashi@clear-code.com> - 6.07-1 +- new upstream release. + +* Thu Jun 30 2016 Masafumi Yokoyama <yokoyama@clear-code.com> - 6.06-1 +- new upstream release. + +* Wed Jun 29 2016 Kentaro Hayashi <hayashi@clear-code.com> - 6.05-1 +- new upstream release. + +* Sun May 29 2016 Kentaro Hayashi <hayashi@clear-code.com> - 6.03-1 +- new upstream release. + +* Fri Apr 29 2016 HAYASHI Kentaro <hayashi@clear-code.com> - 6.02-1 +- new upstream release. + +* Tue Mar 29 2016 Masafumi Yokoyama <yokoyama@clear-code.com> - 6.01-1 +- new upstream release. + +* Mon Feb 29 2016 Kouhei Sutou <kou@clear-code.com> - 6.00-1 +- new upstream release. + +* Fri Jan 29 2016 Kouhei Sutou <kou@clear-code.com> - 5.12-1 +- new upstream release. + +* Sun Nov 29 2015 Kouhei Sutou <kou@clear-code.com> - 5.10-1 +- new upstream release. + +* Thu Oct 29 2015 Kouhei Sutou <kou@cozmixng.org> - 5.09-1 +- new upstream release. + +* Tue Sep 29 2015 Kouhei Sutou <kou@clear-code.com> - 5.08-1 +- new upstream release. + +* Mon Aug 31 2015 Kouhei Sutou <kou@clear-code.com> - 5.06-1 +- new upstream release. + +* Wed Jul 29 2015 Masafumi Yokoyama <yokoyama@clear-code.com> - 5.05-1 +- new upstream release. + * Mon Jun 29 2015 Masafumi Yokoyama <myokoym@gmail.com> - 5.04-1 - new upstream release. |