F-26: rebuild for ruby24
Patch from the upstream for test failure with integer unification
This commit is contained in:
		
							parent
							
								
									3ff1ec3e32
								
							
						
					
					
						commit
						92668985b0
					
				
							
								
								
									
										21
									
								
								rubygem-pg-0.18.4-ruby24-integer-unification.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								rubygem-pg-0.18.4-ruby24-integer-unification.patch
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,21 @@ | |||||||
|  | # HG changeset patch | ||||||
|  | # User Lars Kanis <lars@greiz-reinsdorf.de> | ||||||
|  | # 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 | ||||||
| @ -4,7 +4,7 @@ | |||||||
| Summary: A Ruby interface to the PostgreSQL RDBMS | Summary: A Ruby interface to the PostgreSQL RDBMS | ||||||
| Name: rubygem-%{gem_name} | Name: rubygem-%{gem_name} | ||||||
| Version: 0.18.4 | Version: 0.18.4 | ||||||
| Release: 2%{?dist} | Release: 3%{?dist} | ||||||
| Group: Development/Languages | Group: Development/Languages | ||||||
| # Upstream license clarification (https://bitbucket.org/ged/ruby-pg/issue/72/) | # Upstream license clarification (https://bitbucket.org/ged/ruby-pg/issue/72/) | ||||||
| # | # | ||||||
| @ -17,6 +17,9 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem | |||||||
| # Disable RPATH. | # Disable RPATH. | ||||||
| # https://bitbucket.org/ged/ruby-pg/issue/183 | # https://bitbucket.org/ged/ruby-pg/issue/183 | ||||||
| Patch0: rubygem-pg-0.17.1-remove-rpath.patch | 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: ruby(release) | ||||||
| BuildRequires: rubygems-devel | BuildRequires: rubygems-devel | ||||||
| BuildRequires: ruby-devel | BuildRequires: ruby-devel | ||||||
| @ -46,6 +49,7 @@ gem unpack %{SOURCE0} | |||||||
| gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec | gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec | ||||||
| 
 | 
 | ||||||
| %patch0 -p1 | %patch0 -p1 | ||||||
|  | %patch1 -p1 | ||||||
| 
 | 
 | ||||||
| %build | %build | ||||||
| # Create the gem as gem install only works on a gem file | # Create the gem as gem install only works on a gem file | ||||||
| @ -122,6 +126,10 @@ popd | |||||||
| %{gem_instdir}/spec | %{gem_instdir}/spec | ||||||
| 
 | 
 | ||||||
| %changelog | %changelog | ||||||
|  | * Sun Jan 15 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.18.4-3 | ||||||
|  | - F-26: rebuild for ruby24 | ||||||
|  | - Patch from the upstream for test failure with integer unification | ||||||
|  | 
 | ||||||
| * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.18.4-2 | * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.18.4-2 | ||||||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild | - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user