1 |
%define modulename cairoDevice |
2 |
%define realver 2.19 |
3 |
%define r_library %{_libdir}/R/library |
4 |
%define _requires_exceptions libR.so |
5 |
|
6 |
Summary: A cairo antialiased graphics device driver for R |
7 |
Name: R-cran-%{modulename} |
8 |
Version: %realver |
9 |
Release: %mkrel 1 |
10 |
License: GPLv2+ |
11 |
Group: Sciences/Mathematics |
12 |
Url: http://cran.r-project.org/web/packages/%{modulename}/index.html |
13 |
Source0: http://cran.r-project.org/src/contrib/%{modulename}_%{realver}.tar.gz |
14 |
BuildRequires: R-base |
15 |
BuildRequires: gtk2-devel |
16 |
Requires: R-base |
17 |
Suggests: R-cran-RGtk2 |
18 |
|
19 |
%description |
20 |
Cairo/GTK graphics device driver with output to screen, |
21 |
file (png, svg, pdf, and ps) or memory (GdkDrawable). |
22 |
The screen device may be embedded into RGtk2 interfaces. |
23 |
Supports all interactive features of other graphics devices, |
24 |
including getGraphicsEvent(). |
25 |
|
26 |
%prep |
27 |
%setup -q -c |
28 |
|
29 |
%build |
30 |
R CMD build %{modulename} |
31 |
|
32 |
%install |
33 |
mkdir -p %{buildroot}/%{r_library} |
34 |
|
35 |
# (tpg) install |
36 |
R CMD INSTALL %{modulename} --library=%{buildroot}/%{r_library} --no-test-load |
37 |
|
38 |
# (tpg) provided by R-base |
39 |
rm -rf %{buildroot}%{_libdir}/R/library/R.css |
40 |
|
41 |
%files |
42 |
%{_libdir}/R/library/%{modulename} |