Sophie

Sophie

distrib > Mandriva > 2010.1 > i586 > media > contrib-updates-src > by-pkgid > 9ad675dfb97cba29f62744a4546c8ea8 > files > 2

R-cran-Cairo-1.4.5-2.1mdv2010.1.src.rpm

%define modulename Cairo
%define realver 1.4-5
%define r_library %{_libdir}/R/library
%define _requires_exceptions libR.so

Summary:	A cairo bindings for R
Name:		R-cran-%{modulename}
Version:	%(echo %realver|tr '-' '.')
%define subrel  1
Release:	%mkrel 2
License:	GPLv2+
Group:		Sciences/Mathematics
Url:		http://cran.r-project.org/web/packages/%{modulename}/index.html
Source0:	http://cran.r-project.org/src/contrib/%{modulename}_%{realver}.tar.gz
BuildRequires:	R-base
BuildRequires:	libcairo-devel
BuildRequires:	libjpeg-devel
BuildRequires:	libtiff-devel
Requires:	R-base
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot

%description
This package provides a Cairo graphics device that can be 
use to create high-quality vector (PDF, PostScript and SVG) 
and bitmap output (PNG,JPEG,TIFF), and high-quality rendering 
in displays (X11 and Win32). Since it uses the same back-end 
for all output, copying across formats is WYSIWYG.Files are 
created without the dependence on X11 or other external programs.
This device supports alpha channel (semi-transparent drawing) and 
resulting images can contain transparent and semi-transparent regions.
It is ideal for use in server environemnts (file output) and as a 
replacement for other devices that don't have Cairo's capabilities 
such as alpha support or anti-aliasing.Backends are modular such that 
any subset of backends is supported.

%prep
%setup -q -c

%build
R CMD build %{modulename}

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{r_library}

# (tpg) install
R CMD INSTALL %{modulename} --library=%{buildroot}/%{r_library}

# (tpg) provided by R-base
rm -rf %{buildroot}%{_libdir}/R/library/R.css

%clean 
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_libdir}/R/library/%{modulename}


%changelog
* Sat Sep 11 2010 Funda Wang <fwang@mandriva.org> 1.4.5-2.1mdv2010.1
+ Revision: 577195
- rebuild to fix bug#60972

* Thu Jan 14 2010 Funda Wang <fwang@mandriva.org> 1.4.5-2mdv2010.1
+ Revision: 491115
- rebuild for new jpeg

* Fri Dec 25 2009 Jérôme Brenier <incubusss@mandriva.org> 1.4.5-1mdv2010.1
+ Revision: 482226
- new version 1.4.5

  + Thierry Vignaud <tv@mandriva.org>
    - rebuild

* Sun Aug 10 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 1.4.3-1mdv2009.0
+ Revision: 270296
- update to new version 1.4-3

  + Thierry Vignaud <tv@mandriva.org>
    - rebuild
    - rebuild

* Fri Feb 29 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 1.3.5-2mdv2008.1
+ Revision: 176956
- remove requires on libR.so

* Sun Feb 17 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 1.3.5-1mdv2008.1
+ Revision: 169883
- fix Url
- add missing buildrequires
- add source and spec file
- Created package structure for R-cran-Cairo.