Name: rubygem-rest-client
Summary: Simple HTTP and REST client for Ruby
Version: 1.6.1
Release: 1
License: GPL
Group: Development/Languages
URL: http://rubygems.org/gems/rest-client/
Description: A simple Simple HTTP and REST client for Ruby, inspired by the Sinatra
microframework style of specifying actions: get, put, post, delete.
The build could not start because of the following missing build requirements:
The build was succesful. The following RPMs were generated:
The spec file used by the build system currently has the following contents:
# $Id$ # Authority: shuff # Upstream: Adam Wiggins <adam$heroku,com> %define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']") %define ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']") %define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) %define geminstdir %{gemdir}/gems/rest-client-%{version} %global rubyabi 1.8 Summary: Simple HTTP and REST client for Ruby Name: rubygem-rest-client Version: 1.6.1 Release: 1%{?dist} Group: Development/Languages License: GPL URL: http://rubygems.org/gems/rest-client/ Source: http://rubygems.org/downloads/rest-client-%{version}.gem BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch BuildRequires: ruby(rubygems) BuildRequires: ruby(abi) = %{rubyabi} Requires: ruby(rubygems) Requires: ruby(abi) = %{rubyabi} Requires: rubygem(mime-types) >= 1.16 Provides: rubygem(rest-client) = %{version} %description A simple Simple HTTP and REST client for Ruby, inspired by the Sinatra microframework style of specifying actions: get, put, post, delete. %prep %setup -q -c -T %build %{__mkdir_p} .%{gemdir} gem install -V \ --local \ --install-dir $(pwd)/%{gemdir} \ --force --rdoc \ %{SOURCE0} # change some syntax to stop the whining %{__perl} -pi -e 's|raise RequestFailed self|raise RequestFailed(self)|' .%{geminstdir}/lib/restclient/abstract_response.rb %install %{__rm} -rf %{buildroot} %{__mkdir_p} %{buildroot}%{gemdir} %{__cp} -a .%{gemdir}/* %{buildroot}%{gemdir}/ %{__mkdir_p} %{buildroot}/%{_bindir} %{__mv} %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir} find %{buildroot}/%{_bindir} -type f | xargs -n 1 sed -i -e 's"^#!/usr/bin/env ruby"#!/usr/bin/ruby"' %{__rm}dir %{buildroot}%{gemdir}/bin find %{buildroot}%{geminstdir}/lib -type f | xargs -n 1 sed -i -e '/^#!\/usr\/bin\/env ruby/d' find %{buildroot}%{geminstdir}/lib -type f | xargs chmod 0644 %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, -) %doc %{geminstdir}/README.rdoc %doc %{geminstdir}/VERSION %doc %{geminstdir}/history.md %doc %{gemdir}/doc/rest-client-%{version} %{_bindir}/* %{gemdir}/cache/rest-client-%{version}.gem %{gemdir}/specifications/rest-client-%{version}.gemspec %dir %{geminstdir} %{geminstdir}/Rakefile %{geminstdir}/bin %{geminstdir}/lib %{geminstdir}/spec %changelog * Wed Feb 16 2011 Steve Huff <shuff@vecna.org> - 1.6.1-1 - Initial package.