From 13acfce7b9f8405d7db3f8e293467ed9356ab551 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Wed, 19 Jun 2019 17:47:13 -0400 Subject: [PATCH] Initial import (#1721732). --- .gitignore | 1 + R-packrat.spec | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 88 insertions(+) create mode 100644 .gitignore create mode 100644 R-packrat.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..43589ff --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/packrat_0.5.0.tar.gz diff --git a/R-packrat.spec b/R-packrat.spec new file mode 100644 index 0000000..44c43cf --- /dev/null +++ b/R-packrat.spec @@ -0,0 +1,86 @@ +%global packname packrat +%global rlibdir %{_datadir}/R/library + +# Suggests loop. +%global with_suggests 0 + +Name: R-%{packname} +Version: 0.5.0 +Release: 1%{?dist} +Summary: Dependency Management System for R Projects + +License: GPLv2 +URL: https://CRAN.R-project.org/package=%{packname} +Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz + +# Here's the R view of the dependencies world: +# Depends: +# Imports: R-tools, R-utils +# Suggests: R-testthat >= 0.7, R-devtools, R-httr, R-knitr, R-rmarkdown +# LinkingTo: +# Enhances: + +BuildArch: noarch +Requires: R-core +Requires: R-tools +Requires: R-utils +Suggests: R-testthat >= 0.7 +Suggests: R-devtools +Suggests: R-httr +Suggests: R-knitr +Suggests: R-rmarkdown +BuildRequires: R-devel +BuildRequires: tex(latex) +BuildRequires: R-tools +BuildRequires: R-utils +BuildRequires: R-testthat >= 0.7 +BuildRequires: R-httr +BuildRequires: R-knitr +BuildRequires: R-rmarkdown +%if %{with_suggests} +BuildRequires: R-devtools +%endif + +%description +Manage the R packages your project depends on in an isolated, portable, and +reproducible way. + + +%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 +%if %{with_suggests} +%{_bindir}/R CMD check %{packname} +%else +_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} +%endif + + +%files +%dir %{rlibdir}/%{packname} +%doc %{rlibdir}/%{packname}/html +%{rlibdir}/%{packname}/DESCRIPTION +%{rlibdir}/%{packname}/INDEX +%{rlibdir}/%{packname}/NAMESPACE +%{rlibdir}/%{packname}/Meta +%{rlibdir}/%{packname}/R +%{rlibdir}/%{packname}/help +%{rlibdir}/%{packname}/resources +%{rlibdir}/%{packname}/rstudio + + +%changelog +* Mon Jun 17 2019 Elliott Sales de Andrade - 0.5.0-1 +- initial package for Fedora diff --git a/sources b/sources new file mode 100644 index 0000000..67dd8ab --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (packrat_0.5.0.tar.gz) = 52daa923bfd1db8727ab744d6df766155a9199526816788d1a6e69be6798f7ea0ecd79379c76d281e256eb5b02c7574488ec0d3f871438b8d511e31c6019c239