1 %define fversion %(echo %{version} |tr r -)
2 %define modulename mlbench
3 Summary: Machine Learning Benchmark Problems
4 Summary(pl): Problemy wydajno¶ci uczenia maszyn
5 Name: R-cran-%{modulename}
8 License: Free for non-commercial purposes (see README and data sets help pages for details)
9 Group: Applications/Math
10 Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz
11 # Source0-md5: 101108689bd005ef96641a8c33f17698
12 BuildRequires: R-base >= 2.0.0
14 Requires(post,postun): R-base >= 2.0.0
15 Requires(post,postun): perl-base
16 Requires(post,postun): textutils
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 A collection of artificial and real-world machine learning benchmark
21 problems, including, e.g., several data sets from the UCI repository.
24 Ten podpakiet R zawiera zestaw sztucznych i prawdziwych problemów
25 wydajno¶ci uczenia maszyn, w tym kilka zbiorów danych z repozytorium
32 R CMD build %{modulename}
35 rm -rf $RPM_BUILD_ROOT
36 R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
39 rm -rf $RPM_BUILD_ROOT
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)
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)
52 %defattr(644,root,root,755)
53 %doc %{modulename}/{DESCRIPTION,COPYING,NEWS,README}
54 %{_libdir}/R/library/%{modulename}