From 021cb0e5da9aa9fcc6f1226f3643385daa150144 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Tue, 29 Aug 2017 21:45:02 -0400 Subject: [PATCH] Initial import (#1484746). --- .gitignore | 1 + R-Cairo.spec | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 3 --- sources | 1 + 4 files changed, 77 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 R-Cairo.spec delete mode 100644 README.md create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dcc045f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/Cairo_1.5-9.tar.gz diff --git a/R-Cairo.spec b/R-Cairo.spec new file mode 100644 index 0000000..5d01766 --- /dev/null +++ b/R-Cairo.spec @@ -0,0 +1,75 @@ +%global packname Cairo +%global rlibdir %{_libdir}/R/library + + +Name: R-%{packname} +Version: 1.5.9 +Release: 2%{?dist} +Summary: Use cairo as a high-quality graphics device + +License: GPLv2 +URL: https://cran.r-project.org/web/packages/%{packname}/index.html +Source0: https://cran.r-project.org/src/contrib/%{packname}_1.5-9.tar.gz + +# Here's the R view of the dependencies world: +# Depends: +# Imports: R-grDevices R-graphics +# Suggests: R-png +# LinkingTo: +# Enhances: + + + +Requires: R-grDevices R-graphics +Requires: R-png +BuildRequires: R-devel tex(latex) +BuildRequires: R-grDevices R-graphics +BuildRequires: R-png +BuildRequires: cairo-devel +BuildRequires: libXt-devel + +%description +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 +environments (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 -n %{packname} + +%build + +%install +mkdir -p %{buildroot}%{rlibdir} +%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname} +test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so) +rm -f %{buildroot}%{rlibdir}/R.css + +%check +%{_bindir}/R CMD check %{packname} + +%files +%dir %{rlibdir}/%{packname} +%doc %{rlibdir}/%{packname}/html +%{rlibdir}/%{packname}/libs +%{rlibdir}/%{packname}/DESCRIPTION +%doc %{rlibdir}/%{packname}/NEWS +%{rlibdir}/%{packname}/INDEX +%{rlibdir}/%{packname}/NAMESPACE +%{rlibdir}/%{packname}/Meta +%{rlibdir}/%{packname}/R +%{rlibdir}/%{packname}/help + + +%changelog +* Thu Aug 24 2017 Elliott Sales de Andrade 1.5.9-2 +- Cleanup metadata a bit. + +* Fri Feb 17 2017 Elliott Sales de Andrade 1.5.9-1 +- initial package for Fedora diff --git a/README.md b/README.md deleted file mode 100644 index d2621a2..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# R-Cairo - -The R-Cairo package \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..07f4077 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (Cairo_1.5-9.tar.gz) = bc220436272bb0e144e6bb89df75fc3da26162c763a837cd3e01e76a4d22e225ef9b5215b6655212fa634ff78df5f43b46c1f633903c5e7e9b379a0cba3010b4