]>
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 | |
56951e4b | 12 | BuildRequires: R-base >= 2.4.0 |
f443c26e | 13 | Provides: R-mlbench |
5b5f0855 | 14 | Obsoletes: R-mlbench |
56951e4b | 15 | Requires(post,postun): R-base >= 2.4.0 |
f443c26e | 16 | Requires(post,postun): perl-base |
17 | Requires(post,postun): textutils | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | A collection of artificial and real-world machine learning benchmark | |
22 | problems, including, e.g., several data sets from the UCI repository. | |
23 | ||
77b5604a JR |
24 | %description -l pl.UTF-8 |
25 | Ten podpakiet R zawiera zestaw sztucznych i prawdziwych problemów | |
26 | wydajności uczenia maszyn, w tym kilka zbiorów danych z repozytorium | |
b98c21b3 | 27 | UCI. |
f443c26e | 28 | |
29 | %prep | |
30 | %setup -q -c | |
31 | ||
32 | %build | |
33 | R CMD build %{modulename} | |
34 | ||
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/ | |
38 | ||
39 | %clean | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
42 | %post | |
43 | (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt | |
56951e4b | 44 | R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index) |
f443c26e | 45 | |
46 | %postun | |
47 | if [ -f %{_libdir}/R/bin/Rcmd ];then | |
48 | (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt | |
56951e4b | 49 | R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index) |
f443c26e | 50 | fi |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc %{modulename}/{DESCRIPTION,COPYING,NEWS,README} | |
55 | %{_libdir}/R/library/%{modulename} |