%define oname thrift Name: ruby-%{oname} Version: 0.5.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 Requires: ruby(abi) = 1.8 Requires: rubygem(mongrel) %description Ruby bindings for the Apache Thrift RPC system %files %defattr(-, root, root, -) %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 Requires: %{name} = %{version}-%{release} %description doc Documents, Rdoc & RI documentation for %{name}. %files doc %defattr(-,root,root,-) %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 rm -rf %{buildroot} %gem_install rm -rf %{buildroot}%{ruby_gemdir}/gems/%{oname}-%{version}/ext/ %clean rm -rf %{buildroot}