1 %define fversion %(echo %{version} |tr r -)
2 %define modulename e1071
3 Summary: Misc Functions of the Department of Statistics (e1071), TU Wien
4 Summary(pl.UTF-8): Różne funkcje Wydziału Statystyki (e1071) Politechniki Wiedeńskiej
5 Name: R-cran-%{modulename}
8 License: GPL v2. See COPYRIGHT.svm.cpp for the copyright of the svm C++ code.
9 Group: Applications/Math
10 Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz
11 # Source0-md5: cdc77694de66523f05634f58b0eb3128
12 BuildRequires: R >= 2.8.1
13 Requires(post,postun): R >= 2.8.1
14 Requires(post,postun): perl-base
15 Requires(post,postun): textutils
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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, ...
24 %description -l pl.UTF-8
25 Funkcje do analizy klas, szybkiej transformaty Fouriera, rozmytego
26 klastrowania, obsługi maszyn wektorowych, obliczenia najkrótszych
27 ścieżek, naiwnej klasyfikacji Bayesa...
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{_libdir}/R/library/
35 R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
38 rm -rf $RPM_BUILD_ROOT
41 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
42 R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index)
45 if [ -f %{_libdir}/R/bin/Rcmd ];then
46 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
47 R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index)
51 %defattr(644,root,root,755)
52 %doc %{modulename}/{DESCRIPTION,README}
53 %{_libdir}/R/library/%{modulename}