Fix PostgreSQL 11 compatibility.

This commit is contained in:
Vít Ondruch 2019-01-09 14:15:38 +01:00
parent ae3d7f9ded
commit f4c55ad7ce

View File

@ -3,7 +3,7 @@
Name: rubygem-%{gem_name}
Version: 1.1.3
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A Ruby interface to the PostgreSQL RDBMS
# Upstream license clarification (https://bitbucket.org/ged/ruby-pg/issue/72/)
#
@ -16,6 +16,9 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# Disable RPATH.
# https://bitbucket.org/ged/ruby-pg/issue/183
Patch0: rubygem-pg-0.17.1-remove-rpath.patch
# Fix compatibility with PG11.
# https://bitbucket.org/ged/ruby-pg/issues/287/pg-connection-server-ping-returns-correct
Patch1: rubygem-pg-1.1.3-Fix-specs-for-PostgreSQL-11.patch
# Required in ext/pg_text_decoder.c
Requires: rubygem(bigdecimal)
BuildRequires: ruby(release)
@ -46,6 +49,7 @@ Documentation for %{name}.
%setup -q -n %{gem_name}-%{version}
%patch0 -p1
%patch1 -p1
%build
# Create the gem as gem install only works on a gem file
@ -121,6 +125,9 @@ popd
%{gem_instdir}/spec
%changelog
* Wed Jan 09 2019 Vít Ondruch <vondruch@redhat.com> - 1.1.3-2
- Fix PostgreSQL 11 compatibility.
* Tue Sep 18 2018 Jun Aruga <jaruga@redhat.com> - 1.1.3-1
- Update to pg 1.1.3.
- Update to output log when tests fail.