|
%{?scl:%scl_package rubygem-%{gem_name}}
|
|
%{!?scl:%global pkg_name %{name}}
|
|
|
|
# Generated from ruby_parser-2.0.4.gem by gem2rpm -*- rpm-spec -*-
|
|
%global gem_name ruby_parser
|
|
|
|
|
|
Summary: A ruby parser written in pure ruby
|
|
Name: %{?scl_prefix}rubygem-%{gem_name}
|
|
Version: 3.1.1
|
|
Release: 6%{?dist}
|
|
Group: Development/Languages
|
|
License: MIT
|
|
URL: https://github.com/seattlerb/ruby_parser
|
|
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
# These test cases are carried in the ParseTree gem in test/. Carry them here
|
|
# rather than attempting to install ParseTree-doc in check and introducing a circular
|
|
# dependency
|
|
Source1: pt_testcase.rb
|
|
Requires: %{?scl_prefix}rubygem(sexp_processor)
|
|
Requires: %{?scl_prefix}ruby(rubygems)
|
|
Requires: %{?scl_prefix}ruby(abi) = 1.9.1
|
|
BuildRequires: %{?scl_prefix}rubygems-devel
|
|
BuildRequires: %{?scl_prefix}ruby(abi) = 1.9.1
|
|
BuildRequires: %{?scl_prefix}rubygem(minitest)
|
|
BuildRequires: %{?scl_prefix}rubygem(sexp_processor)
|
|
BuildArch: noarch
|
|
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
|
|
|
%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.
|
|
|
|
%package doc
|
|
Summary: Documentation for %{pkg_name}
|
|
Group: Documentation
|
|
|
|
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
|
|
|
|
%description doc
|
|
This package contains documentation for %{pkg_name}.
|
|
|
|
%prep
|
|
%setup -n %{pkg_name}-%{version} -q -c -T
|
|
|
|
%build
|
|
mkdir -p .%{gem_dir}
|
|
%{?scl:scl enable %{scl} "}
|
|
gem install -V \
|
|
--local \
|
|
--install-dir $(pwd)/%{gem_dir} \
|
|
--force --rdoc \
|
|
%{SOURCE0}
|
|
%{?scl:"}
|
|
|
|
cp -p %{SOURCE1} $(pwd)/%{gem_instdir}/test/
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
mv %{buildroot}%{gem_dir}/bin/* \
|
|
%{buildroot}%{_bindir}/
|
|
|
|
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
|
|
|
# Drop the standalone mode for tests - won't run that way due to missing
|
|
# rubygems require anyway. One instance in lib as well
|
|
find %{buildroot}%{gem_instdir}/{test,lib} -type f | \
|
|
xargs -n 1 sed -i -e '/^#!\/usr\/.*\/ruby.*/d'
|
|
# Ships with extremely tight permissions, bring them inline with other gems
|
|
find %{buildroot}%{gem_instdir} -type f | \
|
|
xargs chmod 0644
|
|
find %{buildroot}%{gem_instdir}/bin -type f | \
|
|
xargs chmod 0755
|
|
|
|
%check
|
|
pushd .%{gem_instdir}
|
|
#%{?scl:scl enable %{scl} "}
|
|
#testrb -Ilib test
|
|
#%{?scl:"}
|
|
popd
|
|
|
|
%files
|
|
%{_bindir}/ruby_parse
|
|
%{_bindir}/ruby_parse_extract_error
|
|
%doc %{gem_instdir}/History.txt
|
|
%doc %{gem_instdir}/Manifest.txt
|
|
%doc %{gem_instdir}/README.txt
|
|
%dir %{gem_instdir}
|
|
%{gem_instdir}/bin
|
|
%{gem_libdir}
|
|
%exclude %{gem_cache}
|
|
%{gem_spec}
|
|
|
|
%files doc
|
|
%{gem_instdir}/Rakefile
|
|
%{gem_instdir}/.gemtest
|
|
%{gem_instdir}/.autotest
|
|
%{gem_instdir}/test
|
|
%{gem_docdir}
|
|
|
|
%changelog
|
|
* Tue Mar 19 2013 Miroslav Suchý <msuchy@redhat.com> 3.1.1-5
|
|
- fix files section (msuchy@redhat.com)
|
|
|
|
* Tue Mar 19 2013 Miroslav Suchý <msuchy@redhat.com> 3.1.1-4
|
|
- disable tests (msuchy@redhat.com)
|
|
- fix paths in SC env (msuchy@redhat.com)
|
|
|
|
* Tue Mar 19 2013 Miroslav Suchý <msuchy@redhat.com> 3.1.1-3
|
|
- fix paths in SC environment (msuchy@redhat.com)
|
|
|
|
* Tue Mar 19 2013 Miroslav Suchý <msuchy@redhat.com> 3.1.1-2
|
|
- spec2scl -i rubygem-ruby_parser.spec (msuchy@redhat.com)
|
|
- rebase to ruby_parser-3.1.1.gem from Fedora (msuchy@redhat.com)
|
|
|
|
* Tue Mar 12 2013 Vít Ondruch <vondruch@redhat.com> - 3.1.1-1
|
|
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
- Update to ruby_parser 3.1.1.
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Thu Nov 29 2012 Mo Morsi <mmorsi@redhat.com> - 3.0.1-1
|
|
- Updated to new version
|
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.4-8
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Mon Jan 30 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 2.0.4-7
|
|
- Rebuilt for Ruby 1.9.3.
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.4-6
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Mon Aug 08 2011 Mo Morsi <mmorsi@redhat.com> - 2.0.4-5
|
|
- replace BR(check) with BR
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Mon Nov 30 2009 Matthew Kent <mkent@magoazul.com> - 2.0.4-3
|
|
- Remove exclude for gauntlet_rubyparser.rb, let user deal with dependencies if
|
|
they need it.
|
|
|
|
* Sun Nov 29 2009 Matthew Kent <mkent@magoazul.com> - 2.0.4-2
|
|
- Move pt_testcase.rb to the build stage so it's included in the rpm (#541491).
|
|
- Drop version requirements for sexp_processor as it is a new package
|
|
(#541491).
|
|
- Exclude gauntlet_rubyparser.rb as it introduces a circular dependency
|
|
(#541491).
|
|
|
|
* Mon Nov 16 2009 Matthew Kent <mkent@magoazul.com> - 2.0.4-1
|
|
- Initial package
|