]>
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} |
6 | Version: 1.5r1 | |
f91345d8 | 7 | Release: 4 |
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 | |
11 | # Source0-md5: 5f0a033bb84d4be58575b3eb9549d53f | |
f91345d8 | 12 | BuildRequires: R-base >= 2.4.0 |
defe2102 | 13 | # should be BR: R-cran-class, but our builders doesn't support BR: foo after Provides: foo |
14 | BuildRequires: R-cran-VR | |
f91345d8 | 15 | Requires(post,postun): R-base >= 2.4.0 |
e8bc250d | 16 | Requires(post,postun): perl-base |
17 | Requires(post,postun): textutils | |
18 | Requires: R-cran-class | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | Functions for latent class analysis, short time Fourier transform, | |
23 | fuzzy clustering, support vector machines, shortest path computation, | |
24 | bagged clustering, naive Bayes classifier, ... | |
25 | ||
b94ce8a9 | 26 | %description -l pl.UTF-8 |
e8bc250d | 27 | Funkcje do analizy klas, szybkiej transformaty Fouriera, rozmytego |
b94ce8a9 JR |
28 | klastrowania, obsługi maszyn wektorowych, obliczenia najkrótszych |
29 | ścieżek, naiwnej klasyfikacji Bayesa... | |
e8bc250d | 30 | |
31 | %prep | |
32 | %setup -q -c | |
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 | |
f91345d8 | 43 | R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index) |
e8bc250d | 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 | |
f91345d8 | 48 | R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index) |
e8bc250d | 49 | fi |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %doc %{modulename}/{DESCRIPTION,COPYRIGHT.*,NEWS,README} | |
54 | %{_libdir}/R/library/%{modulename} |