%define rname execjs %define oname %{rname} Name: ruby-%{rname} Version: 1.4.0 Release: %mkrel 4 Summary: Ruby libxml bindings Group: Development/Ruby License: MIT URL: http://libxml.rubyforge.org/ Source0: http://rubygems.org/downloads/%{rname}-%{version}.gem BuildRequires: rubygems BuildArch: noarch %description The Libxml-Ruby project provides Ruby language bindings for the GNOME Libxml2 XML toolkit. It is free software, released under the MIT License. Libxml-ruby's primary advantage over REXML is performance - if speed is your need, these are good libraries to consider, as demonstrated by the informal benchmark below. #------------------------------------------------------------------------------- %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 %dir %{ruby_gemdir}/gems/%{oname}-%{version}/ %{ruby_gemdir}/gems/%{oname}-%{version}/lib %{ruby_gemdir}/specifications/%{oname}-%{version}.gemspec %files doc %doc %{ruby_gemdir}/doc/%{oname}-%{version} %changelog * Fri Feb 08 2013 umeabot <umeabot> 1.4.0-4.mga3 + Revision: 395943 - Rebuild for CVE-2013-0256 * Mon Jan 14 2013 umeabot <umeabot> 1.4.0-3.mga3 + Revision: 380865 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sat Nov 03 2012 fwang <fwang> 1.4.0-2.mga3 + Revision: 312945 - rebuild for new ruby * Fri Jun 08 2012 shlomif <shlomif> 1.4.0-1.mga3 + Revision: 257850 - Got the rpm to build - imported package ruby-execjs