Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 375d411e60964f66c384decdb88cb4bb > files > 2

rubygem-hashery-1.4.0-2.fc13.src.rpm

%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%global gemname hashery
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
%global rubyabi 1.8

Summary: Facets bread collection of Hash-like classes
Name: rubygem-%{gemname}
Version: 1.4.0
Release: 2%{?dist}
Group: Development/Languages
License: ASL 2.0 and GPL+ and (GPLv2 or Ruby)
URL: http://rubyworks.github.com/hashery
Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem

Requires: ruby(abi) = %{rubyabi}
BuildRequires: rubygems

BuildArch: noarch
Provides: rubygem(%{gemname}) = %{version}

%description
The Hashery is a collection of Hash-like classes, spun-off from the original
Ruby Facets library. Included are the widely used OrderedHash, the related but
more featured Dictionary class, a number of open classes, similiar to the
standard OpenStruct and a few variations on the standard Hash.

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

%description doc
Documentation for %{name}

%prep

%build

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gemdir}
gem install --local --install-dir %{buildroot}%{gemdir} \
            --force --rdoc %{SOURCE0}

%files
%defattr(-, root, root, -)
%dir %{geminstdir}
%{geminstdir}/lib
%doc %{geminstdir}/HISTORY.rdoc
%doc %{geminstdir}/LICENSE
%doc %{geminstdir}/NOTICE
%doc %{geminstdir}/README.rdoc
%{gemdir}/cache/%{gemname}-%{version}.gem
%{gemdir}/specifications/%{gemname}-%{version}.gemspec

%files doc
%defattr(-, root, root, -)
%{geminstdir}/test
%{geminstdir}/qed
%{geminstdir}/.ruby
%{gemdir}/doc/%{gemname}-%{version}

%changelog
* Thu Jan 20 2011 Marek Goldmann <mgoldman@redhat.com> - 1.4.0-2
- Fixed files section

* Thu Jan 20 2011 Marek Goldmann <mgoldman@redhat.com> - 1.4.0-1
- Updated to new upstream release: 1.4.0

* Fri Nov 26 2010 Marek Goldmann <mgoldman@redhat.com> - 1.3.0-3
- Added R: rubygem(facets)

* Mon Nov 15 2010 Marek Goldmann <mgoldman@redhat.com> - 1.3.0-2
- Updated license

* Mon Nov 15 2010 Marek Goldmann <mgoldman@redhat.com> - 1.3.0-1
- Initial package