%define oname net-http-persistent Name: ruby-%{oname} Version: 2.8 Release: %mkrel 3 Summary: Manages persistent connections using Net::HTTP plus a speed fix for Ruby License: MIT Group: Development/Ruby URL: http://docs.seattlerb.org/net-http-persistent Source0: http://rubygems.org/gems/%{oname}-%{version}.gem BuildRequires: rubygems Buildarch: noarch %description Manages persistent connections using Net::HTTP plus a speed fix for Ruby 1.8. It's thread-safe too! Using persistent HTTP connections can dramatically increase the speed of HTTP. Creating a new HTTP connection for every request involves an extra TCP round-trip and causes TCP congestion avoidance negotiation to start over. Net::HTTP supports persistent connections with some API methods but does not handle reconnection gracefully. Net::HTTP::Persistent supports reconnection and retry according to RFC 2616. %files %dir %{ruby_gemdir}/gems/%{oname}-%{version}/ %{ruby_gemdir}/gems/%{oname}-%{version}/lib %{ruby_gemdir}/specifications/%{oname}-%{version}.gemspec #------------------------------------------------------------------------------- %package doc Summary: Documentation for %{name} Group: Development/Ruby Requires: %{name} = %{version}-%{release} %description doc Documents, Rdoc & RI documentation for %{name}. %files doc %doc %{ruby_gemdir}/doc/%{oname}-%{version} %doc %{ruby_gemdir}/gems/%{oname}-%{version}/History.txt %doc %{ruby_gemdir}/gems/%{oname}-%{version}/Manifest.txt %doc %{ruby_gemdir}/gems/%{oname}-%{version}/README.rdoc #------------------------------------------------------------------------------- %prep %setup -q tar xmf data.tar.gz %build %gem_build %install %gem_install %changelog * Fri Feb 08 2013 umeabot <umeabot> 2.8-3.mga3 + Revision: 396208 - Rebuild for CVE-2013-0256 * Mon Jan 14 2013 umeabot <umeabot> 2.8-2.mga3 + Revision: 381131 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sat Nov 03 2012 fwang <fwang> 2.8-1.mga3 + Revision: 313311 - imported package ruby-net-http-persistent