# Generated from faraday-0.8.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name faraday %global rubyabi 1.9.1 Summary: HTTP/REST API client library Name: rubygem-%{gem_name} Version: 0.8.0 Release: 1%{?dist} Group: Development/Languages License: GPLv2+ or Ruby URL: https://github.com/technoweenie/faraday Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem Requires: ruby(abi) = %{rubyabi} Requires: ruby(rubygems) >= 1.3.5 Requires: ruby Requires: rubygem(multipart-post) => 1.1 Requires: rubygem(multipart-post) < 2 BuildRequires: ruby(abi) = %{rubyabi} BuildRequires: rubygems-devel >= 1.3.5 BuildRequires: ruby BuildArch: noarch Provides: rubygem(%{gem_name}) = %{version} %description Faraday is an HTTP client lib that provides a common interface over many adapters (such as Net::HTTP) and embraces the concept of Rack middleware when processing the request/response cycle. %package doc Summary: Documentation for %{name} Group: Documentation Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name} %prep %setup -q -c -T mkdir -p .%{gem_dir} gem install --local --install-dir .%{gem_dir} \ --force %{SOURCE0} %build %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ #%check #pushd %{buildroot}%{gem_dir} #testrb -Ilib test #popd %files %dir %{gem_instdir} %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %{gem_dir}/Rakefile %{gem_dir}/Gemfile %{gem_dir}/LICENSE.md %{gem_dir}/README.md %{gem_dir}/config.ru %{gem_dir}/faraday.gemspec %{gem_dir}/test %changelog * Wed May 09 2012 xning - 0.8.0-1 - Initial package