Hello community,

here is the log from the commit of package rubygem-pg for openSUSE:Leap:15.2 
checked in at 2020-03-15 07:14:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/rubygem-pg (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.rubygem-pg.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-pg"

Sun Mar 15 07:14:00 2020 rev:11 rq:785172 version:1.2.2

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/rubygem-pg/rubygem-pg.changes  2020-01-15 
15:59:29.143800338 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.rubygem-pg.new.3160/rubygem-pg.changes        
2020-03-15 07:15:03.969088254 +0100
@@ -1,0 +2,134 @@
+Mon Feb 10 15:23:26 UTC 2020 - Stephan Kulow <[email protected]>
+
+- updated to version 1.2.2
+ see installed ChangeLog
+
+-------------------------------------------------------------------
+Wed Apr 10 20:25:16 UTC 2019 - Christophe Giboudeaux <[email protected]>
+
+- Add use-pkg-config.patch to avoid relying on postgresql-server.
+
+-------------------------------------------------------------------
+Mon Jan 14 13:50:51 UTC 2019 - Stephan Kulow <[email protected]>
+
+- updated to version 1.1.4
+ see installed ChangeLog
+
+-------------------------------------------------------------------
+Fri Sep 21 06:27:52 UTC 2018 - [email protected]
+
+- updated to version 1.1.3
+
+  - Revert opimization that was sometimes causing EBADF in 
rb_wait_for_single_fd().
+
+
+  == v1.1.2 [2018-08-28] Michael Granger <[email protected]>
+
+  - Don't generate aliases for JOHAB encoding.
+    This avoids linking to deprecated/private function rb_enc(db)_alias().
+
+
+  == v1.1.1 [2018-08-27] Michael Granger <[email protected]>
+
+  - Reduce deprecation warnings to only one message per deprecation.
+
+
+  == v1.1.0 [2018-08-24] Michael Granger <[email protected]>
+
+  Deprecated (disable warnings per PG_SKIP_DEPRECATION_WARNING=1):
+  - Forwarding conn.exec to conn.exec_params is deprecated.
+  - Forwarding conn.exec_params to conn.exec is deprecated.
+  - Forwarding conn.async_exec to conn.async_exec_params.
+  - Forwarding conn.send_query to conn.send_query_params is deprecated.
+  - Forwarding conn.async_exec_params to conn.async_exec is deprecated.
+
+  PG::Connection enhancements:
+  - Provide PG::Connection#sync_* and PG::Connection#async_* query methods for 
explicit calling syncronous or asynchronous libpq API.
+  - Make PG::Connection#exec and siblings switchable between sync and async 
API per PG::Connection.async_api= and change the default to async flavors.
+  - Add async flavors of exec_params, prepare, exec_prepared, 
describe_prepared and describe_portal.
+    They are identical to their syncronous counterpart, but make use of 
PostgreSQL's async API.
+  - Replace `rb_thread_fd_select()` by faster `rb_wait_for_single_fd()` in 
`conn.block` and `conn.async_exec` .
+  - Add PG::Connection#discard_results .
+  - Raise an ArgumentError for strings containing zero bytes by #escape, 
#escape_literal, #escape_identifier, #quote_ident and 
PG::TextEncoder::Identifier. These methods previously truncated strings.
+
+  Result retrieval enhancements:
+  - Add PG::Result#tuple_values to retrieve all field values of a row as array.
+  - Add PG::Tuple, PG::Result#tuple and PG::Result#stream_each_tuple .
+    PG::Tuple offers a way to lazy cast result values.
+  - Estimate PG::Result size allocated by libpq and notify the garbage 
collector about it when running on Ruby-2.4 or newer.
+  - Make the estimated PG::Result size available to 
ObjectSpace.memsize_of(result) .
+
+  Type cast enhancements:
+  - Replace Ruby code by a faster C implementation of the SimpleDecoder's 
timestamp decode functions. github #20
+  - Interpret years with up to 7 digists and BC dates by timestamp decoder.
+  - Add text timestamp decoders for UTC vs. local timezone variations.
+  - Add text timestamp encoders for UTC timezone.
+  - Add decoders for binary timestamps: PG::BinaryDecoder::Timestamp and 
variations.
+  - Add PG::Coder#flags accessor to allow modifications of de- respectively 
encoder behaviour.
+  - Add a flag to raise TypeError for invalid input values to 
PG::TextDecoder::Array .
+  - Add a text decoder for inet/cidr written in C.
+  - Add a numeric decoder written in C.
+  - Ensure input text is zero terminated for text format in PG::Coder#decode .
+
+  Source code enhancements:
+  - Fix headers and permission bits of various repository files.
+
+  Bugfixes:
+  - Properly decode array with prepended dimensions. #272
+    For now dimension decorations are ignored, but a correct Array is returned.
+  - Array-Decoder: Avoid leaking memory when an Exception is raised while 
parsing. Fixes #279
+
+- Add more rpmlint filters to avoid warnings which are caused by this gem
+
+- Removed license line from gem2rpm.yml as the license can be detected
+  automatically
+
+- Drop rubygem-pg-0.17.1_shebang.patch as it's no longer needed
+
+-------------------------------------------------------------------
+Sat Jul 14 12:13:01 UTC 2018 - [email protected]
+
+- updated to version 1.0.0
+ see installed History.rdoc
+
+  == v1.0.0 [2018-01-10] Michael Granger <[email protected]>
+  
+  Deprecated:
+  - Deprecate Ruby older than 2.2.
+  - Deprecate Connection#socket in favor of #socket_io.
+  
+  Removed:
+  - Remove compatibility code for Ruby < 2.0 and PostgreSQL < 9.2.
+  - Remove partial compatibility with Rubinius.
+  
+  Enhancements:
+  - Update error codes to PostgreSQL-10
+  - Update Windows binary gems to Ruby-2.5, PostgreSQL 10.1 and
+    OpenSSL 1.1.0g.
+  
+  Bugfixes:
+  - Fix URI detection for connection strings. #265 (thanks to jjoos)
+  - MINGW: Workaround segfault due to GCC linker error in conjunction with 
MSVC.
+    This happens when linking to PostgreSQL-10.0-x64 from EnterpriseDB.
+  
+  Documentation fixes:
+  - Add PostgreSQL version since when the given function is supported. #263
+  - Better documentation to `encoder` and `decoder` arguments of COPY related 
methods.
+  
+  
+  == v0.21.0 [2017-06-12] Michael Granger <[email protected]>
+  
+  Enhancements:
+  - Move add_dll_directory to the Runtime namespace for newest versions
+    of RubyInstaller.
+  - Deprecate PGconn, PGresult, and PGError top-level constants; a warning
+    will be output the first time one of them is used. They will be
+    removed in the upcoming 1.0 release.
+  
+  Documentation fixes:
+  - Update the docs for PG::Result#cmd_tuples
+  
+  New Samples:
+  - Add an example of the nicer #copy_data way of doing `COPY`.
+
+-------------------------------------------------------------------

Old:
----
  pg-0.20.0.gem
  rubygem-pg-0.17.1_shebang.patch

New:
----
  pg-1.2.2.gem
  use-pkg-config.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-pg.spec ++++++
--- /var/tmp/diff_new_pack.2iEv4B/_old  2020-03-15 07:15:04.469088516 +0100
+++ /var/tmp/diff_new_pack.2iEv4B/_new  2020-03-15 07:15:04.477088520 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-pg
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-pg
-Version:        0.20.0
+Version:        1.2.2
 Release:        0
 %define mod_name pg
 %define mod_full_name %{mod_name}-%{version}
@@ -33,25 +33,25 @@
 BuildRequires:  postgresql-devel
 # /MANUAL
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  %{rubydevel >= 2.0.0}
+BuildRequires:  %{rubydevel >= 2.2}
 BuildRequires:  %{rubygem gem2rpm}
 BuildRequires:  %{rubygem rdoc > 3.10}
 BuildRequires:  ruby-macros >= 5
-Url:            https://bitbucket.org/ged/ruby-pg
-Source:         http://rubygems.org/gems/%{mod_full_name}.gem
+URL:            https://github.com/ged/ruby-pg
+Source:         https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        rubygem-pg-rpmlintrc
 Source2:        gem2rpm.yml
 # MANUAL
-Patch0:         rubygem-pg-0.17.1_shebang.patch
+Patch0:         use-pkg-config.patch
 # /MANUAL
 Summary:        Pg is the Ruby interface to the PostgreSQL RDBMS
-License:        BSD-2-Clause and Ruby
+License:        BSD-2-Clause
 Group:          Development/Languages/Ruby
 
 %description
 Pg is the Ruby interface to the {PostgreSQL
 RDBMS}[http://www.postgresql.org/].
-It works with {PostgreSQL 9.1 and
+It works with {PostgreSQL 9.2 and
 later}[http://www.postgresql.org/support/versioning/].
 A small example usage:
 #!/usr/bin/env ruby
@@ -68,7 +68,7 @@
 
 %prep
 %gem_unpack
-%patch0 -p0
+%patch0 -p1
 find -type f -print0 | xargs -0 touch -r %{S:0}
 %gem_build
 

++++++ gem2rpm.yml ++++++
--- /var/tmp/diff_new_pack.2iEv4B/_old  2020-03-15 07:15:04.505088534 +0100
+++ /var/tmp/diff_new_pack.2iEv4B/_new  2020-03-15 07:15:04.509088537 +0100
@@ -1,8 +1,4 @@
 :summary: Pg is the Ruby interface to the PostgreSQL RDBMS
-:license: BSD-2-Clause and Ruby
-
-:patches:
-  rubygem-pg-0.17.1_shebang.patch: -p0
 
 :sources:
   - rubygem-pg-rpmlintrc
@@ -10,3 +6,6 @@
 :preamble: |-
   BuildRequires:  openssl-devel
   BuildRequires:  postgresql-devel
+
+:patches:
+  use-pkg-config.patch: -p1

++++++ pg-0.20.0.gem -> pg-1.2.2.gem ++++++
++++ 21686 lines of diff (skipped)

++++++ rubygem-pg-rpmlintrc ++++++
--- /var/tmp/diff_new_pack.2iEv4B/_old  2020-03-15 07:15:04.625088597 +0100
+++ /var/tmp/diff_new_pack.2iEv4B/_new  2020-03-15 07:15:04.625088597 +0100
@@ -1,2 +1,5 @@
 addFilter("devel-file-in-non-devel-package")
 addFilter("file-contains-buildroot")
+addFilter("script-without-shebang")
+addFilter("zero-length")
+addFilter("hidden-file-or-dir")

++++++ use-pkg-config.patch ++++++
Index: pg-1.1.4/ext/extconf.rb
===================================================================
--- pg-1.1.4.orig/ext/extconf.rb
+++ pg-1.1.4/ext/extconf.rb
@@ -23,27 +23,29 @@ if enable_config("windows-cross")
 
 else
        # Native build
+       pg_package = pkg_config('libpq')
+       if !pg_package
+               pgconfig = with_config('pg-config') ||
+                       with_config('pg_config') ||
+                       find_executable('pg_config')
 
-       pgconfig = with_config('pg-config') ||
-               with_config('pg_config') ||
-               find_executable('pg_config')
+               if pgconfig && pgconfig != 'ignore'
+                       $stderr.puts "Using config values from %s" % [ pgconfig 
]
+                       incdir = `"#{pgconfig}" --includedir`.chomp
+                       libdir = `"#{pgconfig}" --libdir`.chomp
+                       dir_config 'pg', incdir, libdir
 
-       if pgconfig && pgconfig != 'ignore'
-               $stderr.puts "Using config values from %s" % [ pgconfig ]
-               incdir = `"#{pgconfig}" --includedir`.chomp
-               libdir = `"#{pgconfig}" --libdir`.chomp
-               dir_config 'pg', incdir, libdir
-
-               # Try to use runtime path linker option, even if RbConfig 
doesn't know about it.
-               # The rpath option is usually set implicit by dir_config(), but 
so far not
-               # on MacOS-X.
-               if RbConfig::CONFIG["RPATHFLAG"].to_s.empty? && try_link('int 
main() {return 0;}', " -Wl,-rpath,#{libdir}")
-                       $LDFLAGS << " -Wl,-rpath,#{libdir}"
+                       # Try to use runtime path linker option, even if 
RbConfig doesn't know about it.
+                       # The rpath option is usually set implicit by 
dir_config(), but so far not
+                       # on MacOS-X.
+                       if RbConfig::CONFIG["RPATHFLAG"].to_s.empty? && 
try_link('int main() {return 0;}', " -Wl,-rpath,#{libdir}")
+                               $LDFLAGS << " -Wl,-rpath,#{libdir}"
+                       end
+               else
+                       $stderr.puts "No pg_config... trying anyway. If 
building fails, please try again with",
+                               " --with-pg-config=/path/to/pg_config"
+                       dir_config 'pg'
                end
-       else
-               $stderr.puts "No pg_config... trying anyway. If building fails, 
please try again with",
-                       " --with-pg-config=/path/to/pg_config"
-               dir_config 'pg'
        end
 end
 

Reply via email to