Author: aredridel Date: Sat Jul 9 21:56:18 2005 GMT Module: SPECS Tag: HEAD ---- Log message: - added - STBR
---- Files affected: SPECS: ruby-NArray.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/ruby-NArray.spec diff -u /dev/null SPECS/ruby-NArray.spec:1.1 --- /dev/null Sat Jul 9 23:56:18 2005 +++ SPECS/ruby-NArray.spec Sat Jul 9 23:56:13 2005 @@ -0,0 +1,62 @@ +# $Revision$, $Date$ +%define ruby_archdir %(ruby -r rbconfig -e 'print Config::CONFIG["archdir"]') +%define ruby_rubylibdir %(ruby -r rbconfig -e 'print Config::CONFIG["rubylibdir"]') +%define ruby_ridir %(ruby -r rbconfig -e 'include Config; print File.join(CONFIG["datadir"], "ri", CONFIG["ruby_version"], "system")') +Summary: Numerical Ruby +Name: ruby-NArray +Version: 0.5.7p4 +Release: 1 +License: Ruby's +Group: Development/Languages +Source0: http://www.ir.isas.ac.jp/~masa/ruby/dist/narray-%{version}.tar.gz +# Source0-md5: 6c6a5b680b91514e37992c92c74cf5ea +URL: http://www.ir.isas.ac.jp/~masa/ruby/index-e.html +BuildRequires: ruby +BuildRequires: ruby-devel +Requires: ruby +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +NArray is a class of Numerical N-dimensional Array, whose elements are 1/2/4-byte Integer, single/double-prec Real/Complex, and Ruby Object. This extension library incorporates fast calculation and easy manipulation of large numerical arrays into the Ruby language. NArray has features similar to NumPy, but NArray has vector and matrix subclasses. + +%prep +%setup -q -n narray-%{version} + +%build +ruby extconf.rb +%{__make} +rdoc --op rdoc *.c +rdoc --ri --op ri *.c + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{ruby_archdir},%{ruby_ridir}} + +%{__make} install \ + archdir=$RPM_BUILD_ROOT%{ruby_archdir} \ + sitearchdir=$RPM_BUILD_ROOT%{ruby_archdir} \ + rubylibdir=$RPM_BUILD_ROOT%{ruby_rubylibdir} \ + sitelibdir=$RPM_BUILD_ROOT%{ruby_rubylibdir} + +cp -a ri/ri/* $RPM_BUILD_ROOT%{ruby_ridir} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc rdoc/* +%{ruby_rubylibdir}/n*.rb +%attr(755,root,root) %{ruby_archdir}/narray.so +%{ruby_ridir}/NArray + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2005/07/09 21:56:13 aredridel +- added +- STBR + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
