Sophie

Sophie

distrib > Fedora > 17 > i386 > media > updates-src > by-pkgid > 4f9064c9bc8f8fc7a86cd26a6c550a5c > files > 2

rubygem-declarative_authorization-0.5.7-1.fc17.src.rpm

# Generated from declarative_authorization-0.5.2.gem by gem2rpm -*- rpm-spec -*-
%global gem_name declarative_authorization
%global rubyabi 1.9.1

Summary:       Provides readable authorization rules for Rails
Name:          rubygem-%{gem_name}
Version:       0.5.7
Release:       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}

BuildArch:     noarch

%if 0%{?fedora} >= 19
BuildRequires: ruby(release)
%else
BuildRequires: ruby(abi) = %{rubyabi}
BuildRequires: ruby
%endif
BuildRequires: rubygems-devel

%if 0%{?fedora} >= 19
Requires:      ruby(release)
%else
Requires:      ruby(abi) >= %{rubyabi}
Requires:      ruby
%endif
Requires:      rubygems
Requires:      rubygem(rails) >= 2.1.0

%description
Provides readable authorization rules for Rails.


%package doc
Summary:   Documentation for %{name}
Requires:  %{name} = %{version}-%{release}
BuildArch: noarch


%description doc
%{summary}.


%prep
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


%install
mkdir -p %{buildroot}%{gem_dir}
cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/


%clean


%files
%{gem_instdir}
%exclude %{gem_cache}
%{gem_spec}
%doc %{gem_instdir}/MIT-LICENSE


%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/README.rdoc
%doc %{gem_instdir}/CHANGELOG

%changelog
* Wed Mar 20 2013 Darryl L. Pierce <dpierce@redhat.com> - 0.5.7-1
- Rebased on declarative_authorization 0.5.7.

* Wed Mar 13 2013 Darryl L. Pierce <dpierce@redhat.com> - 0.5.6-3
- Updated the specfile for the current Ruby packaging guidelines.
- Bumped the release number to be the same as F19/Rawhide.

* Mon Jan  7 2013 Darryl L. Pierce <dpierce@redhat.com> - 0.5.6-1.2
- Fixed the gem installed to be the rebuilt one.

* Thu Dec 20 2012 Darryl L. Pierce <dpierce@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@redhat.com> - 0.5.6-1
- Rebased on declarative_authorization 0.5.6.
- Moved the license file into the main package.

* Sun Jul  8 2012 Darryl L. Pierce <dpierce@redhat.com> - 0.5.5-3
- Removed Group as unused field.
- Removed BuildRequires on ruby(abi).
- Created separate doc subpackage.

* Mon Feb 06 2012 Vít Ondruch <vondruch@redhat.com> - 0.5.5-2
- Rebuilt for Ruby 1.9.3.

* Tue Jan 10 2012 Darryl L. Pierce <dpierce@redhat.com> - 0.5.5-1
- Release 0.5.5 of declarative_authorization.
- Adjusted the description and summary to remove warnings.

* Thu Dec  1 2011 Darryl L. Pierce <dpierce@redhat.com> - 0.5.4-1
- Release 0.5.4 of declarative_authorization.
- Added new files included with this release.

* Thu Jul 21 2011 Darryl L. Pierce <dpierce@redhat.com> - 0.5.3-2
- Added dependency on Rails >= 2.1.0.
- Dropped the Ruby ABI dependency to >= 1.8.

* Wed Jul 20 2011 Darryl L. Pierce <dpierce@redhat.com> - 0.5.3-1
- Release 0.5.3 of declarative_authorization.
- Updated Ruby ABI dependency to >= 1.8.6.

* Sun Apr 17 2011 Darryl L. Pierce <dpierce@redhat.com> - 0.5.2-1
- Initial package