1 |
%define modulename Cairo |
2 |
%define realver 1.4-9 |
3 |
%define r_library %{_libdir}/R/library |
4 |
%define _requires_exceptions libR.so |
5 |
|
6 |
Summary: A cairo bindings for R |
7 |
Name: R-cran-%{modulename} |
8 |
Version: %(echo %realver|tr '-' '.') |
9 |
Release: %mkrel 2 |
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: libcairo-devel |
16 |
BuildRequires: libjpeg-devel |
17 |
BuildRequires: libtiff-devel |
18 |
BuildRequires: libxt-devel |
19 |
Requires: R-base |
20 |
|
21 |
%description |
22 |
This package provides a Cairo graphics device that can be |
23 |
use to create high-quality vector (PDF, PostScript and SVG) |
24 |
and bitmap output (PNG,JPEG,TIFF), and high-quality rendering |
25 |
in displays (X11 and Win32). Since it uses the same back-end |
26 |
for all output, copying across formats is WYSIWYG.Files are |
27 |
created without the dependence on X11 or other external programs. |
28 |
This device supports alpha channel (semi-transparent drawing) and |
29 |
resulting images can contain transparent and semi-transparent regions. |
30 |
It is ideal for use in server environemnts (file output) and as a |
31 |
replacement for other devices that don't have Cairo's capabilities |
32 |
such as alpha support or anti-aliasing.Backends are modular such that |
33 |
any subset of backends is supported. |
34 |
|
35 |
%prep |
36 |
%setup -q -c |
37 |
|
38 |
%build |
39 |
R CMD build %{modulename} |
40 |
|
41 |
%install |
42 |
rm -rf %{buildroot} |
43 |
mkdir -p %{buildroot}/%{r_library} |
44 |
|
45 |
# (tpg) install |
46 |
R CMD INSTALL %{modulename} --library=%{buildroot}/%{r_library} |
47 |
|
48 |
# (tpg) provided by R-base |
49 |
rm -rf %{buildroot}%{_libdir}/R/library/R.css |
50 |
|
51 |
%clean |
52 |
rm -rf %{buildroot} |
53 |
|
54 |
%files |
55 |
%defattr(-,root,root) |
56 |
%{_libdir}/R/library/%{modulename} |
57 |
|
58 |
|