%define oname httpclient Name: ruby-%{oname} Version: 2.4.0 Release: %mkrel 1 Summary: Gives something like the functionality of libwww-perl (LWP) in Ruby Group: Development/Ruby License: GPLv2 or Ruby License URL: http://dev.ctor.org/httpclient Source0: http://rubygems.org/downloads/%{oname}-%{version}.gem BuildRequires: rubygems BuildArch: noarch %description Gives something like the functionality of libwww-perl (LWP) in Ruby. #------------------------------------------------------------------------------- %package doc Summary: Documentation for %{name} Group: Development/Ruby Requires: %{name} = %{version}-%{release} %description doc Documents, Rdoc & RI documentation for %{name}. #------------------------------------------------------------------------------- %prep %setup -q tar xmf data.tar.gz %build %gem_build %install %gem_install %files %{_bindir}/%{oname} %dir %{ruby_gemdir}/gems/%{oname}-%{version}/ %{ruby_gemdir}/gems/%{oname}-%{version}/bin %{ruby_gemdir}/gems/%{oname}-%{version}/lib %{ruby_gemdir}/specifications/%{oname}-%{version}.gemspec %files doc %doc %{ruby_gemdir}/doc/%{oname}-%{version}