%define oname thrift Name: ruby-%{oname} Epoch: 1 Version: 0.8.0 Release: %mkrel 1 Summary: Ruby bindings for the Apache Thrift RPC system License: ASL 2.0 Group: Development/Ruby URL: http://thrift.apache.org Source0: http://rubygems.org/gems/%{oname}-%{version}.gem BuildRequires: rubygems BuildRequires: ruby-devel %description Ruby bindings for the Apache Thrift RPC system %files %dir %{ruby_gemdir}/gems/%{oname}-%{version}/ %{ruby_gemdir}/gems/%{oname}-%{version}/lib %{ruby_gemdir}/specifications/%{oname}-%{version}.gemspec %{ruby_sitearchdir}/*.so #------------------------------------------------------------------------------- %package doc Summary: Documentation for %{name} Group: Development/Ruby BuildArch: noarch Requires: %{name} = %{epoch}:%{version}-%{release} %description doc Documents, Rdoc & RI documentation for %{name}. %files doc %doc %{ruby_gemdir}/doc/%{oname}-%{version} %doc %{ruby_gemdir}/gems/%{oname}-%{version}/CHANGELOG %doc %{ruby_gemdir}/gems/%{oname}-%{version}/README #------------------------------------------------------------------------------- %prep %setup -q tar xmf data.tar.gz %build %gem_build %install %gem_install rm -rf %{buildroot}%{ruby_gemdir}/gems/%{oname}-%{version}/ext/