diff --git a/.gitignore b/.gitignore index 4dd97a6..9986680 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ /pg-0.20.0.gem /pg-0.21.0.gem /pg-1.0.0.gem +/pg-1.1.3.gem diff --git a/rubygem-pg.spec b/rubygem-pg.spec index 8433fef..a3e590e 100644 --- a/rubygem-pg.spec +++ b/rubygem-pg.spec @@ -2,8 +2,8 @@ %global gem_name pg Name: rubygem-%{gem_name} -Version: 1.0.0 -Release: 2%{?dist} +Version: 1.1.3 +Release: 1%{?dist} Summary: A Ruby interface to the PostgreSQL RDBMS # Upstream license clarification (https://bitbucket.org/ged/ruby-pg/issue/72/) # @@ -16,6 +16,8 @@ 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 +# Required in ext/pg_text_decoder.c +Requires: rubygem(bigdecimal) BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby-devel @@ -24,6 +26,7 @@ BuildRequires: ruby-devel BuildRequires: gcc BuildRequires: postgresql-server libpq-devel +BuildRequires: rubygem(bigdecimal) BuildRequires: rubygem(rspec) %description @@ -73,21 +76,24 @@ for file in `find %{buildroot}%{gem_libdir} -type f -name "*.rb"`; do && chmod -v 644 $file done -# Fix spec shebangs. -# https://bitbucket.org/ged/ruby-pg/issues/269/ -for file in `find %{buildroot}%{gem_instdir}/spec -type f -name "*.rb"`; do - if [ ! -z "`head -n 1 $file | grep \"^#!/\"`" ]; then - sed -i '/^#!\/usr\/bin\/env/ d' $file - chmod -v 644 $file - fi -done - %check pushd .%{gem_instdir} + +# The values of +# SELECT CAST('4714-11-24 23:58:59.1231-03 BC' AS TIMESTAMP WITHOUT TIME ZONE), +# CAST('294276-12-31 23:58:59.1231-03' AS TIMESTAMP WITHOUT TIME ZONE); +# with format: 1 are unexpected on i686 and arm7hl. +# https://bitbucket.org/ged/ruby-pg/issues/284 +sed -i '/^\t\t\t\tit "should convert format #{format} timestamps/,/^\t\t\t\tend$/ s/^.*getvalue(0,[23]).*$/#\0/' \ + spec/pg/basic_type_mapping_spec.rb + # Set --verbose to show detail log by $VERBOSE. # See https://github.com/ged/ruby-pg/blob/master/spec/helpers.rb $VERBOSE -ruby -S --verbose \ - rspec -I$(dirs +1)%{gem_extdir_mri} -f d spec +if ! ruby -S --verbose \ + rspec -I$(dirs +1)%{gem_extdir_mri} -f d spec; then + cat tmp_test_specs/setup.log + false +fi popd %files @@ -115,6 +121,10 @@ popd %{gem_instdir}/spec %changelog +* Tue Sep 18 2018 Jun Aruga - 1.1.3-1 +- Update to pg 1.1.3. +- Update to output log when tests fail. + * Sat Jul 14 2018 Fedora Release Engineering - 1.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild diff --git a/sources b/sources index ac7b776..4a41d10 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pg-1.0.0.gem) = 1cac025ab8a95b4429534b98377eedeb1e3f8b2c4a859363c4174d477577caf39557b002cde4e745189fa9a29e9181ff9d564d822f15ff5c4f03f7389b0d0398 +SHA512 (pg-1.1.3.gem) = 0a1089a3687085169ff3225f93ee0722e93f1d8b05e4034f29d602afd584580036a23d5d2743f77c4023e593ed573b72ca2bcba6400b0ecc428b4717590ad27f