]> git.pld-linux.org Git - packages/R-cran-abind.git/blob - R-cran-abind.spec
- pl fixes
[packages/R-cran-abind.git] / R-cran-abind.spec
1 %define         fversion        %(echo %{version} |tr r -)
2 %define         modulename      abind
3 Summary:        Combine multi-dimensional arrays
4 Summary(pl):    £±czenie wielowymiarowych tablic
5 Name:           R-cran-%{modulename}
6 Version:        1.1r0
7 Release:        1
8 License:        LGPL v2+
9 Group:          Applications/Math
10 Source0:        ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz
11 # Source0-md5:  e70921be502d58d9edb1a1b64af44d48
12 BuildRequires:  R-base >= 2.0.0
13 Requires(post,postun):  R-base >= 2.0.0
14 Requires(post,postun):  perl-base
15 Requires(post,postun):  textutils
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Combine multi-dimensional arrays. This is a generalization of cbind
20 and rbind. Takes a sequence of vectors, matrices, or arrays and
21 produces a single array of the same or higher dimension.
22
23 %description -l pl
24 Modu³ ten ³±czy wielowymiarowe tablice. Jest uogólnieniem cbind i
25 rbind. Pobiera listê wektorów, macierzy lub tablic i tworzy pojedyncz±
26 tablice tego samego lub wy¿szego wymiaru.
27
28 %prep
29 %setup -q -c
30
31 %build
32 R CMD build %{modulename}
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36 R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
37
38 %clean
39 rm -rf $RPM_BUILD_ROOT
40
41 %post
42 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
43  R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
44
45 %postun
46 if [ -f %{_libdir}/R/bin/Rcmd ];then
47         (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
48         R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
49 fi
50
51 %files
52 %defattr(644,root,root,755)
53 %doc %{modulename}/{DESCRIPTION,ChangeLog}
54 %{_libdir}/R/library/%{modulename}
This page took 0.114527 seconds and 4 git commands to generate.