[rubygem-dynect_rest] Update spec to make maintaining multiple branches easier

Russell Harrison rharrison at fedoraproject.org
Fri Aug 30 15:29:47 UTC 2013


commit 8d945672a7d2b888a58908ea0cce1f7cb77d91e6
Author: Russell Harrison <rharrison at fedoraproject.org>
Date:   Wed Aug 28 18:22:21 2013 -0400

    Update spec to make maintaining multiple branches easier

 rubygem-dynect_rest.spec |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/rubygem-dynect_rest.spec b/rubygem-dynect_rest.spec
index 14bb3ed..37a075f 100644
--- a/rubygem-dynect_rest.spec
+++ b/rubygem-dynect_rest.spec
@@ -16,14 +16,18 @@ Source0:        http://rubygems.org/gems/%{gem_name}-%{version}.gem
 Patch0:         dynect_rest-fix_redirect_handling.patch
 
 BuildArch:      noarch
-%if 0%{?fedora} >= 19
-Requires: ruby(release)
-BuildRequires: ruby(release)
-%else
+%if 0%{?rhel} <= 6 && 0%{?fedora} <= 18
 Requires: ruby(abi) >= %{rubyabi}
 BuildRequires: ruby(abi) >= %{rubyabi}
+%else
+Requires: ruby(release)
+BuildRequires: ruby(release)
 %endif
+%if 0%{?rhel} <= 6 && 0%{?fedora} <= 16
+BuildRequires:  rubygems
+%else
 BuildRequires:  rubygems-devel
+%endif
 BuildRequires:  ruby
 Requires:       ruby(rubygems)
 Requires:       ruby
@@ -95,6 +99,7 @@ rm -f %{buildroot}%{gem_instdir}/.rspec
 
 %changelog
 * Tue Aug 27 2013 Russell Harrison <rharrison at fedoraproject.org> 0.4.3-7
+- Update spec to make maintaining multiple branches easier
 - Patch to fix redirect handling during long API calls.
 
 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4.3-6


More information about the scm-commits mailing list