SPECS: ruby-parsetree.spec (NEW) - added
aredridel
aredridel at pld-linux.org
Sun Jun 17 00:59:32 CEST 2007
Author: aredridel Date: Sat Jun 16 22:59:32 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added
---- Files affected:
SPECS:
ruby-parsetree.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/ruby-parsetree.spec
diff -u /dev/null SPECS/ruby-parsetree.spec:1.1
--- /dev/null Sun Jun 17 00:59:32 2007
+++ SPECS/ruby-parsetree.spec Sun Jun 17 00:59:27 2007
@@ -0,0 +1,67 @@
+# $Revision$, $Date$
+Summary: Access to Ruby's internal parse tree
+Name: ruby-parsetree
+Version: 1.7.1
+Release: 1
+License: Ruby's
+Group: Development/Languages
+Source0: http://rubyforge.org/frs/download.php/21469/ParseTree-%{version}.gem
+# Source0-md5: b516a478ac1fe6ae35d0c23eaca24c3e
+URL: http://parsetree.rubyforge.org
+BuildRequires: rake
+BuildRequires: rpmbuild(macros) >= 1.277
+BuildRequires: setup.rb = 3.3.1
+Requires: ruby-inline
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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.
+
+%prep
+%setup -q -c
+tar xf %{SOURCE0} -O data.tar.gz | tar xzv-
+cp %{_datadir}/setup.rb .
+
+%build
+ruby setup.rb config \
+ --rbdir=%{ruby_rubylibdir} \
+ --sodir=%{ruby_archdir}
+
+ruby setup.rb setup
+
+rdoc --op rdoc lib
+rdoc --ri --op ri lib
+rm ri/created.rid
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_archdir},%{ruby_ridir}}
+
+ruby setup.rb install \
+ --prefix=$RPM_BUILD_ROOT
+
+cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc rdoc
+%attr(755,root,root) /usr/bin/*
+%{ruby_rubylibdir}/*.rb
+%{ruby_ridir}/*
+
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2007/06/16 22:59:27 aredridel
+- added
+
================================================================
More information about the pld-cvs-commit
mailing list