1 %define fversion %(echo %{version} |tr r -)
2 %define modulename ggplot2
3 Summary: Fast hierarchical clustering routines for R and Python
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: f01d950c6385750e737ac7eac6260c87
11 URL: http://cran.fhcrc.org/web/packages/ggplot2/index.html
12 BuildRequires: R >= 2.8.1
13 BuildRequires: R-cran-digest
14 BuildRequires: R-cran-gtable
15 BuildRequires: R-cran-reshape2
16 BuildRequires: R-cran-proto
17 BuildRequires: R-cran-plyr
18 BuildRequires: R-cran-scales
19 Requires(post,postun): R >= 2.8.1
20 Requires(post,postun): perl-base
21 Requires(post,postun): textutils
23 Requires: R-cran-digest
24 Requires: R-cran-gtable
25 Requires: R-cran-reshape2
26 Requires: R-cran-proto
28 Requires: R-cran-scales
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 An implementation of the grammar of graphics in R. It combines the
33 advantages of both base and lattice graphics: conditioning and shared
34 axes are handled automatically, and you can still build up a plot step
35 by step from multiple data sources. It also implements a sophisticated
36 multidimensional conditioning system and a consistent interface to map
37 data to aesthetic attributes. See the ggplot2 website for more
38 information, documentation and examples.
44 R CMD build %{modulename}
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT%{_libdir}/R/library/
49 R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
56 %doc %{modulename}/DESCRIPTION
57 %{_libdir}/R/library/%{modulename}