blob: 9b055b045d16ca0ffb80de895749cff66f532e50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
%define fversion %(echo %{version} |tr r -)
%define modulename abind
Summary: Combine multi-dimensional arrays
Summary(pl): Łączenie wielowymiarowych tablic
Name: R-cran-%{modulename}
Version: 1.1r0
Release: 2
License: LGPL v2+
Group: Applications/Math
Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz
# Source0-md5: e70921be502d58d9edb1a1b64af44d48
BuildRequires: R-base >= 2.4.0
Requires(post,postun): R-base >= 2.4.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
Moduł ten łączy wielowymiarowe tablice. Jest uogólnieniem cbind i
rbind. Pobiera listę wektorów, macierzy lub tablic i tworzy pojedynczą
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 --index)
%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 --index)
fi
%files
%defattr(644,root,root,755)
%doc %{modulename}/{DESCRIPTION,ChangeLog}
%{_libdir}/R/library/%{modulename}
|