From 56ae82f175292a0ef9a4b98e24b78530e5ddb515 Mon Sep 17 00:00:00 2001 From: undefine Date: Wed, 17 Nov 2004 00:38:22 +0000 Subject: [PATCH 1/1] - initital Changed files: R-cran-abind.spec -> 1.1 --- R-cran-abind.spec | 54 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 R-cran-abind.spec diff --git a/R-cran-abind.spec b/R-cran-abind.spec new file mode 100644 index 0000000..2ec8643 --- /dev/null +++ b/R-cran-abind.spec @@ -0,0 +1,54 @@ +%define fversion %(echo %{version} |tr r -) +%define modulename abind +Summary: Combine multi-dimensional arrays +Summary(pl): £±czy wielowymiarowe tablice +Name: R-cran-%{modulename} +Version: 1.1r0 +Release: 1 +License: LGPL Version 2 or later. +Group: Applications/Math +Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz +# Source0-md5: e70921be502d58d9edb1a1b64af44d48 +BuildRequires: R-base >= 2.0.0 +Requires(post,postun): R-base >= 2.0.0 +Requires(post,postun): perl-base +Requires(post,postun): textutils +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Combine multi-dimensional arrays. This is a generalization of cbind +and rbind. Takes a sequence of vectors, matrices, or arrays and +produces a single array of the same or higher dimension. + +%description -l pl +£±czy wielowymiarowe tablice. Jest uogólnieniem cbind i rbind. Pobiera listê +wektorów, matryc lub tablic oraz tworzy pojedyñcz± tablice tego samego lub +wy¿szego wymiaru. + +%prep +%setup -q -c + +%build +R CMD build %{modulename} + +%install +rm -rf $RPM_BUILD_ROOT +R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/ + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +(cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt + R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist) + +%postun +if [ -f %{_libdir}/R/bin/Rcmd ];then + (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt + R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist) +fi + +%files +%defattr(644,root,root,755) +%doc %{modulename}/{DESCRIPTION,ChangeLog} +%{_libdir}/R/library/%{modulename} -- 2.43.0