[rubygem-declarative_authorization] Fixed the conditionals for the Requires to be easier to read.
Darryl L. Pierce
mcpierce at fedoraproject.org
Wed Jan 21 14:25:26 UTC 2015
commit 785ccff81869a3142305358dc468f8d158d61c14
Author: Darryl L. Pierce <mcpierce at gmail.com>
Date: Wed Jan 21 09:20:54 2015 -0500
Fixed the conditionals for the Requires to be easier to read.
rubygem-declarative_authorization.spec | 24 +++++++++++-------------
1 files changed, 11 insertions(+), 13 deletions(-)
---
diff --git a/rubygem-declarative_authorization.spec b/rubygem-declarative_authorization.spec
index 4c99bf3..03f6ade 100644
--- a/rubygem-declarative_authorization.spec
+++ b/rubygem-declarative_authorization.spec
@@ -5,33 +5,28 @@
Summary: Provides readable authorization rules for Rails
Name: rubygem-%{gem_name}
Version: 0.5.7
-Release: 3%{?dist}
+Release: 4%{?dist}
License: MIT
URL: http://github.com/stffn/declarative_authorization
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
-Provides: rubygem(%{gem_name}) = %{version}
-
BuildArch: noarch
-%if 0%{?fedora} >= 19
BuildRequires: ruby(release)
-%else
-BuildRequires: ruby(abi) = %{rubyabi}
-BuildRequires: ruby
-%endif
BuildRequires: rubygems-devel
-%if 0%{?fedora} >= 19
+%if 0%{?fc20} || 0%{?el7}
Requires: ruby(release)
-%else
-Requires: ruby(abi) >= %{rubyabi}
-Requires: ruby
-%endif
Requires: rubygems
+%endif
+
Requires: rubygem(rails) >= 2.1.0
+%if 0%{?fc20} || 0%{?el7}
+Provides: rubygem(%{gem_name}) = %{version}
+%endif
+
%description
Provides readable authorization rules for Rails.
@@ -82,6 +77,9 @@ cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
%doc %{gem_instdir}/CHANGELOG
%changelog
+* Wed Jan 21 2015 Darryl L. Pierce <dpierce at redhat.com> - 0.5.7-4
+- Fixed the conditionals for the Requires to be easier to read.
+
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.5.7-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
More information about the scm-commits
mailing list