1 %define fversion %(echo %{version} |tr r -)
2 %define modulename gtable
3 Summary: Arrange grobs in tables
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: be491aa5220f0059a0e1cb04679b6563
11 URL: http://cran.fhcrc.org/web/packages/gtable/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 Tools to make it easier to work with "tables" of grobs.
26 R CMD build %{modulename}
29 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT%{_libdir}/R/library/
31 R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
34 rm -rf $RPM_BUILD_ROOT
37 %defattr(644,root,root,755)
38 %doc %{modulename}/DESCRIPTION
39 %{_libdir}/R/library/%{modulename}