rpms/rubygem-ParseTree/F-11 import.log, NONE, 1.1 rubygem-ParseTree-3.0.4-minitest.patch, NONE, 1.1 rubygem-ParseTree.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Matthew Kent
mkent at fedoraproject.org
Mon Dec 7 05:47:02 UTC 2009
- Previous message (by thread): rpms/rubygem-ParseTree/devel import.log, NONE, 1.1 rubygem-ParseTree-3.0.4-minitest.patch, NONE, 1.1 rubygem-ParseTree.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/perl-XML-Grove/devel perl-XML-Grove.spec,1.27,1.28
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mkent
Update of /cvs/pkgs/rpms/rubygem-ParseTree/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv19067/F-11
Modified Files:
.cvsignore sources
Added Files:
import.log rubygem-ParseTree-3.0.4-minitest.patch
rubygem-ParseTree.spec
Log Message:
- Initial CVS import
--- NEW FILE import.log ---
rubygem-ParseTree-3_0_4-4_fc13:F-11:rubygem-ParseTree-3.0.4-4.fc13.src.rpm:1260164088
rubygem-ParseTree-3.0.4-minitest.patch:
test_unified_ruby.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE rubygem-ParseTree-3.0.4-minitest.patch ---
--- test/test_unified_ruby.rb.orig 2009-11-25 23:52:32.962414853 -0800
+++ test/test_unified_ruby.rb 2009-11-25 23:59:03.282477403 -0800
@@ -2,7 +2,7 @@
$TESTING = true
-require 'minitest/autorun' if $0 == __FILE__ unless defined? $ZENTEST and $ZENTEST
+require 'minitest/autorun'
require 'test/unit/testcase'
require 'sexp'
require 'sexp_processor'
--- NEW FILE rubygem-ParseTree.spec ---
# Generated from ParseTree-3.0.4.gem by gem2rpm -*- rpm-spec -*-
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%global gemname ParseTree
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
%global rubyabi 1.8
Summary: Extracts the parse tree for a class/method and returns an s-expression
Name: rubygem-%{gemname}
Version: 3.0.4
Release: 4%{?dist}
Group: Development/Languages
License: MIT
URL: http://parsetree.rubyforge.org/
Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# Reported upstrea via
# http://rubyforge.org/tracker/?func=detail&aid=27491&group_id=439&atid=1780
Patch0: rubygem-ParseTree-3.0.4-minitest.patch
Requires: rubygem(RubyInline)
Requires: rubygem(sexp_processor)
Requires: ruby(rubygems)
Requires: ruby(abi) = %{rubyabi}
BuildRequires: ruby(rubygems)
BuildRequires: ruby(abi) = %{rubyabi}
BuildRequires(check): rubygem(rake), rubygem(hoe), rubygem(minitest)
BuildRequires(check): rubygem(RubyInline), rubygem(sexp_processor), rubygem(ruby2ruby)
BuildArch: noarch
Provides: rubygem(%{gemname}) = %{version}
%description
ParseTree is a C extension (using RubyInline) that extracts the parse
tree for an entire class or a specific method and returns it as a
s-expression (aka sexp) using ruby's arrays, strings, symbols, and
integers.
%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}
%description doc
This package contains documentation for %{name}.
%prep
%setup -q -c -T
mkdir -p .%{gemdir}
gem install -V \
--local \
--install-dir $(pwd)/%{gemdir} \
--force --rdoc \
%{SOURCE0}
pushd .%{geminstdir}
%patch0 -p0
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gemdir}
cp -a .%{gemdir}/* %{buildroot}%{gemdir}/
mkdir -p %{buildroot}/%{_bindir}
mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir}
rmdir %{buildroot}%{gemdir}/bin
find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x
# Drop the standalone mode for tests - won't run that way due to missing
# rubygems require anyway. Some shebangs in libraries as well.
find %{buildroot}%{geminstdir}/{test,lib} -type f | \
xargs -n 1 sed -i -e '/^#!\/usr\/.*\/ruby.*/d'
find %{buildroot}%{geminstdir}/{bin,demo} -type f | \
xargs -n 1 sed -i -e 's"^#!/usr/local/bin/ruby"#!/usr/bin/ruby"'
# Ships with extremely tight permissions, bring them inline with other gems
find %{buildroot}%{geminstdir} -type f | \
xargs chmod 0644
find %{buildroot}%{geminstdir}/{bin,demo,validate.sh} -type f | \
xargs chmod 0755
%clean
rm -rf %{buildroot}
%check
pushd .%{geminstdir}
# Don't muck within home directories, also reported upstream
sed -i 's^"~/.ruby_inline"^"inline_tmp"^' Rakefile test/test_parse_tree.rb
# Builds in home by default
export INLINEDIR=inline_tmp
rake test
%files
%defattr(-,root,root,-)
%{_bindir}/parse_tree_abc
%{_bindir}/parse_tree_audit
%{_bindir}/parse_tree_deps
%{_bindir}/parse_tree_show
%doc %{geminstdir}/History.txt
%doc %{geminstdir}/Manifest.txt
%doc %{geminstdir}/README.txt
%dir %{geminstdir}
%{geminstdir}/bin
%{geminstdir}/lib
# Script creates a circular dependency and is primarily for development
# Included, but it's dependencies aren't met.
#%{geminstdir}/lib/gauntlet_parsetree.rb
%{gemdir}/cache/%{gemname}-%{version}.gem
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
# Ignore development related files shipped in gem
%exclude %{geminstdir}/validate.sh
%exclude %{geminstdir}/.require_paths
%files doc
%defattr(-,root,root,-)
%{geminstdir}/Rakefile
%{geminstdir}/test
%{geminstdir}/.autotest
# Ignore non functioning demo
%exclude %{geminstdir}/demo
%{gemdir}/doc/%{gemname}-%{version}
%changelog
* Thu Dec 3 2009 Matthew Kent <mkent at magoazul.com> - 3.0.4-4
- Drop needless versions from Requires (#541807).
- Exclude demo/ for now as it's non functional (#541807).
* Mon Nov 30 2009 Matthew Kent <mkent at magoazul.com> - 3.0.4-3
- Remove exclude for gauntlet_parsetree.rb, let user deal with dependencies if
they need it.
* Sun Nov 29 2009 Matthew Kent <mkent at magoazul.com> - 3.0.4-2
- Exclude gauntlet_parsetree.rb as it introduces a circular dependency.
* Mon Nov 16 2009 Matthew Kent <mkent at magoazul.com> - 3.0.4-1
- Initial package
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/rubygem-ParseTree/F-11/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore 6 Dec 2009 23:24:49 -0000 1.1
+++ .cvsignore 7 Dec 2009 05:47:02 -0000 1.2
@@ -0,0 +1 @@
+ParseTree-3.0.4.gem
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/rubygem-ParseTree/F-11/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources 6 Dec 2009 23:24:49 -0000 1.1
+++ sources 7 Dec 2009 05:47:02 -0000 1.2
@@ -0,0 +1 @@
+0955106bcbac25e87e74b4e852179d8b ParseTree-3.0.4.gem
- Previous message (by thread): rpms/rubygem-ParseTree/devel import.log, NONE, 1.1 rubygem-ParseTree-3.0.4-minitest.patch, NONE, 1.1 rubygem-ParseTree.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/perl-XML-Grove/devel perl-XML-Grove.spec,1.27,1.28
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list