]>
Commit | Line | Data |
---|---|---|
f443c26e | 1 | %define fversion %(echo %{version} |tr r -) |
2 | %define modulename mlbench | |
3 | Summary: Machine Learning Benchmark Problems | |
5bd5b939 | 4 | Summary(pl.UTF-8): Problemy wydajności uczenia maszyn |
f443c26e | 5 | Name: R-cran-%{modulename} |
6 | Version: 1.0r0 | |
56951e4b | 7 | Release: 3 |
b98c21b3 | 8 | License: Free for non-commercial purposes (see README and data sets help pages for details) |
f443c26e | 9 | Group: Applications/Math |
10 | Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz | |
11 | # Source0-md5: 101108689bd005ef96641a8c33f17698 | |
1da4c7ec JR |
12 | BuildRequires: R >= 2.8.1 |
13 | Requires(post,postun): R >= 2.8.1 | |
f443c26e | 14 | Requires(post,postun): perl-base |
15 | Requires(post,postun): textutils | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | A collection of artificial and real-world machine learning benchmark | |
20 | problems, including, e.g., several data sets from the UCI repository. | |
21 | ||
77b5604a JR |
22 | %description -l pl.UTF-8 |
23 | Ten podpakiet R zawiera zestaw sztucznych i prawdziwych problemów | |
24 | wydajności uczenia maszyn, w tym kilka zbiorów danych z repozytorium | |
b98c21b3 | 25 | UCI. |
f443c26e | 26 | |
27 | %prep | |
28 | %setup -q -c | |
29 | ||
30 | %build | |
31 | R CMD build %{modulename} | |
32 | ||
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
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 | |
56951e4b | 42 | R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index) |
f443c26e | 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 | |
56951e4b | 47 | R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index) |
f443c26e | 48 | fi |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
52 | %doc %{modulename}/{DESCRIPTION,COPYING,NEWS,README} | |
53 | %{_libdir}/R/library/%{modulename} |