1 %define fversion %(echo %{version} |tr r -)
2 %define modulename reshape2
3 Summary: Flexibly reshape data: a reboot of the reshape package
4 Name: R-cran-%{modulename}
8 Group: Applications/Math
9 Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz
10 # Source0-md5: 4b13c53b2a184c0498b351608ff8a085
11 URL: http://cran.fhcrc.org/web/packages/reshape2/index.html
12 BuildRequires: R >= 2.8.1
13 Requires(post,postun): R >= 2.8.1
14 Requires(post,postun): perl-base
15 Requires(post,postun): textutils
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Reshape lets you flexibly restructure and aggregate data using just
21 two functions: melt and cast.
27 R CMD build %{modulename}
30 rm -rf $RPM_BUILD_ROOT
31 install -d $RPM_BUILD_ROOT%{_libdir}/R/library/
32 R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
35 rm -rf $RPM_BUILD_ROOT
38 %defattr(644,root,root,755)
39 %doc %{modulename}/DESCRIPTION
40 %{_libdir}/R/library/%{modulename}