File rubygem-ruby_parser.spec of Package rubygem-ruby_parser

# spec file for package rubygem-ruby_parser (Version 2.3.1)

# norootforbuild
Name:           rubygem-ruby_parser
Version:        2.3.1
Release:        1.0
%define mod_name ruby_parser
Group:          Development/Languages/Ruby
License:        MIT
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  rubygems_with_buildroot_patch

Requires:       ruby >= 1.9
Requires:	rubygem-sexp_processor >= 3.0
BuildRequires:	rubygem-sexp_processor >= 3.0
BuildRequires:  ruby-devel >= 1.9
BuildRequires:  rubygems
Source:         %{mod_name}-%{version}.gem
Summary:        A ruby parser written in pure ruby
ruby_parser (RP) is a ruby parser written in pure ruby (utilizing
racc--which does by default use a C extension). RP's output is
the same as ParseTree's output: s-expressions using ruby's arrays and
base types.

%gem_install %{S:0}
find %{buildroot} -name "*.rb" -exec sed -i -e "s@/usr/local/bin/ruby@/usr/bin/ruby@g" {} +

%{__rm} -rf %{buildroot}

%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_name}-%{version}/

* Thu Dec 12  2011
- initial package (version 2.3.1)