]> git.pld-linux.org Git - packages/R-cran-mlbench.git/blob - R-cran-mlbench.spec
- pl fix, shortened License
[packages/R-cran-mlbench.git] / R-cran-mlbench.spec
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}
6 Version:        1.0r0
7 Release:        1
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
13 Provides:       R-mlbench
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)
18
19 %description
20 A collection of artificial and real-world machine learning benchmark
21 problems, including, e.g., several data sets from the UCI repository.
22
23 %description -l pl
24 Ten podpakiet R zawiera zestaw sztucznych i prawdziwych problemów
25 wydajno¶ci uczenia maszyn, w tym kilka zbiorów danych z repozytorium
26 UCI.
27
28 %prep
29 %setup -q -c
30
31 %build
32 R CMD build %{modulename}
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,COPYING,NEWS,README}
54 %{_libdir}/R/library/%{modulename}
This page took 0.071023 seconds and 3 git commands to generate.