[rubygem-redis-namespace] Adjustments for https://fedoraproject.org/wiki/Changes/Ruby_2.1

Ken Dreyer ktdreyer at fedoraproject.org
Wed Jun 11 15:26:07 UTC 2014


commit 1cc996e8f8d982f28f04fd2897db71face4cec96
Author: Ken Dreyer <ktdreyer at ktdreyer.com>
Date:   Wed Jun 11 09:25:55 2014 -0600

    Adjustments for https://fedoraproject.org/wiki/Changes/Ruby_2.1
    
    - Bump the maximum redis version.

 rubygem-redis-namespace.spec |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/rubygem-redis-namespace.spec b/rubygem-redis-namespace.spec
index a755a42..6c683ce 100644
--- a/rubygem-redis-namespace.spec
+++ b/rubygem-redis-namespace.spec
@@ -2,25 +2,31 @@
 
 Name: rubygem-%{gem_name}
 Version: 1.4.1
-Release: 2%{?dist}
+Release: 3%{?dist}
 Summary: Namespaces Redis commands
 Group: Development/Languages
 License: MIT
 URL: https://github.com/resque/redis-namespace
 Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
 Source1: rubygem-redis-namespace-test.conf
+%if 0%{?fc19} || 0%{?fc20} || 0%{?el7}
 Requires: ruby(release)
 Requires: ruby(rubygems)
 Requires: rubygem(redis) => 3.0.0
 Requires: rubygem(redis) < 3.1
+%endif
 BuildRequires: ruby(release)
 BuildRequires: rubygems-devel
 BuildRequires: rubygem(rspec)
 BuildRequires: rubygem(redis) => 3.0.0
-BuildRequires: rubygem(redis) < 3.1
+# Use a different maximum version here than what's in the spec file.
+# https://github.com/resque/redis-namespace/pull/84
+BuildRequires: rubygem(redis) < 4
 BuildRequires: redis
 BuildArch: noarch
+%if 0%{?fc19} || 0%{?fc20} || 0%{?el7}
 Provides: rubygem(%{gem_name}) = %{version}
+%endif
 
 %description
 Adds a Redis::Namespace class which can be used to namespace calls
@@ -53,6 +59,10 @@ sed -i -e "/Bundler.require/d" spec/spec_helper.rb
 rm Rakefile
 sed -i -e 's/"Rakefile",//' %{gem_name}.gemspec
 
+# Bump the maximum redis version.
+# https://github.com/resque/redis-namespace/pull/84
+sed -i -e 's/~> 3.0.4/< 4/' %{gem_name}.gemspec
+
 %build
 # Create the gem as gem install only works on a gem file
 gem build %{gem_name}.gemspec
@@ -94,6 +104,10 @@ popd
 %exclude %{gem_instdir}/spec
 
 %changelog
+* Wed Jun 11 2014 Ken Dreyer <ktdreyer at ktdreyer.com> - 1.4.1-3
+- Adjustments for https://fedoraproject.org/wiki/Changes/Ruby_2.1
+- Bump the maximum redis version.
+
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4.1-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list