]> git.pld-linux.org Git - packages/R-cran-e1071.git/blob - R-cran-e1071.spec
- pl fixes
[packages/R-cran-e1071.git] / R-cran-e1071.spec
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):    Ró¿ne funkcje Wydzia³u Statystyki (e1071) Politechniki Wiedeñskiej
5 Name:           R-cran-%{modulename}
6 Version:        1.5r1
7 Release:        3
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:  5f0a033bb84d4be58575b3eb9549d53f
12 BuildRequires:  R-base >= 2.0.0
13 # should be BR: R-cran-class, but our builders doesn't support BR: foo after Provides: foo
14 BuildRequires:  R-cran-VR
15 Requires(post,postun):  R-base >= 2.0.0
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
26 %description -l pl
27 Funkcje do analizy klas, szybkiej transformaty Fouriera, rozmytego
28 klastrowania, obs³ugi maszyn wektorowych, obliczenia najkrótszych
29 ¶cie¿ek, naiwnej klasyfikacji Bayesa...
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
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,COPYRIGHT.*,NEWS,README}
54 %{_libdir}/R/library/%{modulename}
This page took 0.559198 seconds and 3 git commands to generate.