]>
Commit | Line | Data |
---|---|---|
e8bc250d | 1 | %define fversion %(echo %{version} |tr r -) |
2 | %define modulename e1071 | |
3 | Summary: Misc Functions of the Department of Statistics (e1071), TU Wien | |
723db896 | 4 | Summary(pl.UTF-8): Różne funkcje Wydziału Statystyki (e1071) Politechniki Wiedeńskiej |
e8bc250d | 5 | Name: R-cran-%{modulename} |
68718ac1 | 6 | Version: 1.6r1 |
22a60c2d | 7 | Release: 2 |
b17b9fb7 | 8 | License: GPL v2. See COPYRIGHT.svm.cpp for the copyright of the svm C++ code. |
e8bc250d | 9 | Group: Applications/Math |
10 | Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz | |
68718ac1 | 11 | # Source0-md5: cdc77694de66523f05634f58b0eb3128 |
276e167f JR |
12 | BuildRequires: R >= 2.8.1 |
13 | Requires(post,postun): R >= 2.8.1 | |
e8bc250d | 14 | Requires(post,postun): perl-base |
15 | Requires(post,postun): textutils | |
276e167f | 16 | Requires: R |
e8bc250d | 17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
20 | Functions for latent class analysis, short time Fourier transform, | |
21 | fuzzy clustering, support vector machines, shortest path computation, | |
22 | bagged clustering, naive Bayes classifier, ... | |
23 | ||
b94ce8a9 | 24 | %description -l pl.UTF-8 |
e8bc250d | 25 | Funkcje do analizy klas, szybkiej transformaty Fouriera, rozmytego |
b94ce8a9 JR |
26 | klastrowania, obsługi maszyn wektorowych, obliczenia najkrótszych |
27 | ścieżek, naiwnej klasyfikacji Bayesa... | |
e8bc250d | 28 | |
29 | %prep | |
30 | %setup -q -c | |
31 | ||
32 | %install | |
33 | rm -rf $RPM_BUILD_ROOT | |
22a60c2d | 34 | install -d $RPM_BUILD_ROOT%{_libdir}/R/library/ |
e8bc250d | 35 | R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/ |
36 | ||
37 | %clean | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
40 | %post | |
41 | (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt | |
f91345d8 | 42 | R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index) |
e8bc250d | 43 | |
44 | %postun | |
45 | if [ -f %{_libdir}/R/bin/Rcmd ];then | |
46 | (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt | |
f91345d8 | 47 | R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index) |
e8bc250d | 48 | fi |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
22a60c2d | 52 | %doc %{modulename}/{DESCRIPTION,README} |
e8bc250d | 53 | %{_libdir}/R/library/%{modulename} |