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