From: undefine Date: Wed, 17 Nov 2004 00:01:40 +0000 (+0000) Subject: - initital... X-Git-Tag: auto/ac/R-cran-mlbench-1_0r0-1 X-Git-Url: https://git.pld-linux.org/?p=packages%2FR-cran-mlbench.git;a=commitdiff_plain;h=f443c26eb7fc30909041602b9b64a107e175f3b7 - initital... Changed files: R-cran-mlbench.spec -> 1.1 --- f443c26eb7fc30909041602b9b64a107e175f3b7 diff --git a/R-cran-mlbench.spec b/R-cran-mlbench.spec new file mode 100644 index 0000000..7680ff4 --- /dev/null +++ b/R-cran-mlbench.spec @@ -0,0 +1,54 @@ +%define fversion %(echo %{version} |tr r -) +%define modulename mlbench +Summary: Machine Learning Benchmark Problems +Summary(pl): Testy wydajno¶ci uczenia maszyny +Name: R-cran-%{modulename} +Version: 1.0r0 +Release: 1 +License: Free for non-commercial purposes. See the file README and the help pages of the data sets for details. +Group: Applications/Math +Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz +# Source0-md5: 101108689bd005ef96641a8c33f17698 +BuildRequires: R-base >= 2.0.0 +Provides: R-mlbench +Requires(post,postun): R-base >= 2.0.0 +Requires(post,postun): perl-base +Requires(post,postun): textutils +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +A collection of artificial and real-world machine learning benchmark +problems, including, e.g., several data sets from the UCI repository. + +%description -l pl +Ten podpakiet R zawiera zestaw rzeczywistych danych i funkcji do +tworzenia sztucznych danych s³u¿±cych jako test wydajno¶ci metod +uczenia maszyny. + +%prep +%setup -q -c + +%build +R CMD build %{modulename} + +%install +rm -rf $RPM_BUILD_ROOT +R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/ + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +(cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt + R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist) + +%postun +if [ -f %{_libdir}/R/bin/Rcmd ];then + (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt + R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist) +fi + +%files +%defattr(644,root,root,755) +%doc %{modulename}/{DESCRIPTION,COPYING,NEWS,README} +%{_libdir}/R/library/%{modulename}