Kouhei Sutou
null+****@clear*****
Tue Oct 10 16:45:47 JST 2017
Kouhei Sutou 2017-10-10 16:45:47 +0900 (Tue, 10 Oct 2017) New Revision: fab6c942074ec1ab99635e2b4c6ecfe20da5956a https://github.com/pgroonga/pgroonga/commit/fab6c942074ec1ab99635e2b4c6ecfe20da5956a Message: rpm: support PostgreSQL 10 Modified files: Rakefile packages/yum/build-rpm.sh Modified: Rakefile (+6 -1) =================================================================== --- Rakefile 2017-10-10 16:35:16 +0900 (991209f) +++ Rakefile 2017-10-10 16:45:47 +0900 (101c437) @@ -190,12 +190,17 @@ namespace :package do "94", "95", "96", + "10", ] namespace :build do postgresql_package_versions.each do |postgresql_package_version| rpm_package = "postgresql#{postgresql_package_version}-#{package}" - postgresql_version = postgresql_package_version.scan(/(.)/).join(".") + if postgresql_package_version.start_with?("9") + postgresql_version = postgresql_package_version.scan(/(.)/).join(".") + else + postgresql_version = postgresql_package_version + end desc "Build RPM packages for PostgreSQL #{postgresql_version}" task postgresql_package_version => [archive_name, repositories_dir] do tmp_dir = "#{yum_dir}/tmp" Modified: packages/yum/build-rpm.sh (+5 -1) =================================================================== --- packages/yum/build-rpm.sh 2017-10-10 16:35:16 +0900 (4ac9f33) +++ packages/yum/build-rpm.sh 2017-10-10 16:45:47 +0900 (da22f06) @@ -28,7 +28,11 @@ case "${architecture}" in ;; esac -pgdg_rpm=pgdg-centos${PG_PACKAGE_VERSION}-${PG_VERSION}-3.noarch.rpm +if [ ${PG_PACKAGE_VERSION} -ge 94 ]; then + pgdg_rpm=pgdg-centos${PG_PACKAGE_VERSION}-${PG_VERSION}-3.noarch.rpm +else + pgdg_rpm=pgdg-centos${PG_PACKAGE_VERSION}-${PG_VERSION}-2.noarch.rpm +fi run wget --no-check-certificate https://yum.postgresql.org/${PG_VERSION}/redhat/rhel-${distribution_version}-${architecture}/${pgdg_rpm} run rpm -ivh ${pgdg_rpm} groonga_release_rpm=groonga-release-1.3.0-1.noarch.rpm -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20171010/9f85111c/attachment.htm