[rubygem-declarative_authorization] Cleaned up the specfile to match current Ruby packaging guidelines.
Darryl L. Pierce
mcpierce at fedoraproject.org
Thu Dec 20 19:54:08 UTC 2012
commit c876d68065d27298f3673c8890b8d09c665f0f25
Author: Darryl L. Pierce <dpierce at redhat.com>
Date: Thu Dec 20 14:53:59 2012 -0500
Cleaned up the specfile to match current Ruby packaging guidelines.
rubygem-declarative_authorization.spec | 30 +++++++++++++++++++++---------
1 files changed, 21 insertions(+), 9 deletions(-)
---
diff --git a/rubygem-declarative_authorization.spec b/rubygem-declarative_authorization.spec
index 9e2fd61..66551fc 100644
--- a/rubygem-declarative_authorization.spec
+++ b/rubygem-declarative_authorization.spec
@@ -5,20 +5,22 @@
Summary: Provides readable authorization rules for Rails
Name: rubygem-%{gem_name}
Version: 0.5.6
-Release: 1%{?dist}
+Release: 1.1%{?dist}
License: MIT
+
URL: http://github.com/stffn/declarative_authorization
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
-Provides: rubygem(%{gem_name}) = %{version}
-Requires: ruby(abi) >= %{rubyabi}
-Requires: ruby(rubygems)
-Requires: rubygem(rails) >= 2.1.0
+Provides: rubygem(%{gem_name}) = %{version}
BuildArch: noarch
BuildRequires: rubygems-devel
+Requires: ruby(abi) >= %{rubyabi}
+Requires: rubygems
+Requires: rubygem(rails) >= 2.1.0
+
%description
Provides readable authorization rules for Rails.
@@ -34,13 +36,20 @@ BuildArch: noarch
%prep
-%setup -q -c -T
-mkdir -p .%{gem_dir}
-gem install --local --install-dir .%{gem_dir} \
- --force %{SOURCE0}
+gem unpack %{SOURCE0}
+%setup -q -D -T -n %{gem_name}-%{version}
+
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+
+# apply any patches here
%build
+gem build %{gem_name}.gemspec
+
+gem install --local \
+ --install-dir .%{gem_dir} \
+ --force %{SOURCE0}
%install
@@ -64,6 +73,9 @@ cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
%doc %{gem_instdir}/CHANGELOG
%changelog
+* Thu Dec 20 2012 Darryl L. Pierce <dpierce at redhat.com> - 0.5.6-1.1
+- Cleaned up the specfile to match current Ruby packaging guidelines.
+
* Sun Sep 23 2012 Darryl L. Pierce <dpierce at redhat.com> - 0.5.6-1
- Rebased on declarative_authorization 0.5.6.
- Moved the license file into the main package.
More information about the scm-commits
mailing list