From 92e0fe87318e99c93462d52a741824a2edba1235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Mon, 29 May 2017 13:09:55 +0200 Subject: [PATCH] Update to pg 1.20.0. --- .gitignore | 1 + ...pg-0.18.4-ruby24-integer-unification.patch | 21 ------------------ rubygem-pg.spec | 22 +++++++++---------- sources | 2 +- 4 files changed, 13 insertions(+), 33 deletions(-) delete mode 100644 rubygem-pg-0.18.4-ruby24-integer-unification.patch diff --git a/.gitignore b/.gitignore index cfa06f1..6490ef4 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /pg-0.18.1.gem /pg-0.18.2.gem /pg-0.18.4.gem +/pg-0.20.0.gem diff --git a/rubygem-pg-0.18.4-ruby24-integer-unification.patch b/rubygem-pg-0.18.4-ruby24-integer-unification.patch deleted file mode 100644 index c7122ad..0000000 --- a/rubygem-pg-0.18.4-ruby24-integer-unification.patch +++ /dev/null @@ -1,21 +0,0 @@ -# HG changeset patch -# User Lars Kanis -# Date 1484422186 -3600 -# Node ID a446dfaf9d8f7f0223fb42184c1ad36e42b97b17 -# Parent 6ebcebaad39ca2a2496bfd5912659f35d02b409f -Bignum,Fixnum and Integer are the same in Ruby-2.4. - -Fixes #255 : https://bitbucket.org/ged/ruby-pg/issues/255 - -diff --git a/spec/pg/type_map_by_class_spec.rb b/spec/pg/type_map_by_class_spec.rb ---- a/spec/pg/type_map_by_class_spec.rb -+++ b/spec/pg/type_map_by_class_spec.rb -@@ -59,7 +59,7 @@ - it "should retrieve particular conversions" do - expect( tm[Integer] ).to eq(binaryenc_int) - expect( tm[Float] ).to eq(textenc_float) -- expect( tm[Bignum] ).to be_nil -+ expect( tm[Range] ).to be_nil - expect( derived_tm[raise_class] ).to be_kind_of(Proc) - expect( derived_tm[Array] ).to eq(:array_type_map_for) - end diff --git a/rubygem-pg.spec b/rubygem-pg.spec index b107b4e..6812800 100644 --- a/rubygem-pg.spec +++ b/rubygem-pg.spec @@ -1,11 +1,10 @@ # Generated from pg-0.11.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name pg -Summary: A Ruby interface to the PostgreSQL RDBMS Name: rubygem-%{gem_name} -Version: 0.18.4 -Release: 4%{?dist} -Group: Development/Languages +Version: 0.20.0 +Release: 1%{?dist} +Summary: A Ruby interface to the PostgreSQL RDBMS # Upstream license clarification (https://bitbucket.org/ged/ruby-pg/issue/72/) # # The portions of the code that are BSD-licensed are licensed under @@ -17,39 +16,37 @@ 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 -# https://bitbucket.org/ged/ruby-pg/issues/255/ruby-24-test-failure -# https://bitbucket.org/ged/ruby-pg/commits/a446dfaf9d8f7f0223fb42184c1ad36e42b97b17/raw -Patch1: rubygem-pg-0.18.4-ruby24-integer-unification.patch BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby-devel +# Compiler is required for build of gem binary extension. +# https://fedoraproject.org/wiki/Packaging:C_and_C++#BuildRequires_and_Requires +BuildRequires: gcc BuildRequires: postgresql-server postgresql-devel BuildRequires: rubygem(rspec) %description This is the extension library to access a PostgreSQL database from Ruby. -This library works with PostgreSQL 7.4 and later. +This library works with PostgreSQL 9.1 and later. %package doc Summary: Documentation for %{name} -Group: Documentation Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. - %prep gem unpack %{SOURCE0} + %setup -q -D -T -n %{gem_name}-%{version} gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec %patch0 -p1 -%patch1 -p1 %build # Create the gem as gem install only works on a gem file @@ -126,6 +123,9 @@ popd %{gem_instdir}/spec %changelog +* Mon May 29 2017 Vít Ondruch - 0.20.0-1 +- Update to pg 1.20.0. + * Sat Feb 11 2017 Fedora Release Engineering - 0.18.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild diff --git a/sources b/sources index 0bc1ea7..4837935 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -ac35f7c82ca7ca7b8dfd8533a238a83d pg-0.18.4.gem +SHA512 (pg-0.20.0.gem) = 8c7ef2e3b0cb43f42b4f96c5995cd9ff8b01a0d0fc1cfd24d1053e27fa6d16f4eb7008fcb5f86445ad000429898df0215f7ee89b4da9500ddc4df04f5f2a10e2