# Generated from bunny-0.6.0.gem by gem2rpm -*- rpm-spec -*- %global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) %global gemname bunny %global geminstdir %{gemdir}/gems/%{gemname}-%{version} %global rubyabi 1.8 Summary: Another synchronous Ruby AMQP client Name: rubygem-%{gemname} Version: 0.6.0 Release: 1%{?dist} Group: Development/Languages License: MIT URL: http://github.com/celldee/bunny Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem Requires: ruby(rubygems) Requires: ruby(abi) = %{rubyabi} BuildRequires: ruby(rubygems) BuildRequires: ruby(abi) = %{rubyabi} BuildArch: noarch Provides: rubygem(%{gemname}) = %{version} %description A synchronous Ruby AMQP client that enables interaction with AMQP-compliant brokers/servers. %package doc Summary: Documentation for %{name} Group: Documentation Requires: %{name} = %{version}-%{release} %description doc This package contains documentation for %{name}. %prep %setup -q -c -T mkdir -p .%{gemdir} gem install -V \ --local \ --install-dir $(pwd)/%{gemdir} \ --force --rdoc \ %{SOURCE0} %build %install rm -rf %{buildroot} mkdir -p %{buildroot}%{gemdir} cp -a .%{gemdir}/* %{buildroot}%{gemdir}/ # Already have this in specifications/ rm %{buildroot}%{geminstdir}/%{gemname}.gemspec %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc %{geminstdir}/README.rdoc %doc %{geminstdir}/LICENSE %dir %{geminstdir} %{geminstdir}/lib %{gemdir}/cache/%{gemname}-%{version}.gem %{gemdir}/specifications/%{gemname}-%{version}.gemspec %files doc %defattr(-,root,root,-) %{geminstdir}/Rakefile %{geminstdir}/examples %{geminstdir}/spec %{gemdir}/doc/%{gemname}-%{version} %changelog * Tue Mar 16 2010 Matthew Kent <mkent@magoazul.com> - 0.6.0-1 - Initial package