A new user interface for you! Read more...

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
%rubygems_requires

Requires:       ruby >= 1.9
Requires:	rubygem-sexp_processor >= 3.0
BuildRequires:	rubygem-sexp_processor >= 3.0
BuildRequires:  ruby-devel >= 1.9
BuildRequires:  rubygems
#
Url:            https://github.com/seattlerb/ruby_parser
Source:         %{mod_name}-%{version}.gem
#
Summary:        A ruby parser written in pure ruby
%description
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.

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

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_bindir}/ruby_parse
%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_name}-%{version}.gem
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/
%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_name}-%{version}.gemspec
%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_name}-%{version}/

%changelog
* Thu Dec 12  2011 gebhardt@pre-sense.de
- initial package (version 2.3.1)