From 8a963334a7072dfff8230297b79841f742f33530 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Fri, 29 Nov 2013 12:29:30 +0100 Subject: [PATCH 1/1] - new --- R-cran-plyr.spec | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 R-cran-plyr.spec diff --git a/R-cran-plyr.spec b/R-cran-plyr.spec new file mode 100644 index 0000000..6fa222d --- /dev/null +++ b/R-cran-plyr.spec @@ -0,0 +1,45 @@ +%define fversion %(echo %{version} |tr r -) +%define modulename plyr +Summary: Tools for splitting, applying and combining data +Name: R-cran-%{modulename} +Version: 1.8 +Release: 1 +License: GPL v2 +Group: Applications/Math +Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz +# Source0-md5: e1c1d2f0c47fd16b2cef6ec9c2e5883c +URL: http://cran.fhcrc.org/web/packages/plyr/index.html +BuildRequires: R >= 2.8.1 +Requires(post,postun): R >= 2.8.1 +Requires(post,postun): perl-base +Requires(post,postun): textutils +Requires: R +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +plyr is a set of tools that solves a common set of problems: you need +to break a big problem down into manageable pieces, operate on each +pieces and then put all the pieces back together. For example, +you might want to fit a model to each spatial location or time point +in your study, summarise data by panels or collapse high-dimensional +arrays to simpler summary statistics. The development of plyr has been +generously supported by BD (Becton Dickinson). + +%prep +%setup -q -c + +%build +R CMD build %{modulename} --no-build-vignettes + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_libdir}/R/library/ +R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/ + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc %{modulename}/DESCRIPTION +%{_libdir}/R/library/%{modulename} -- 2.43.0