From 396402905ae3ed5ce401187a70a5b20b67883139 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sat, 2 Jun 2018 16:51:31 -0400 Subject: [PATCH] Initial import (#1585315). --- .gitignore | 1 + R-glue.spec | 93 +++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 3 -- sources | 1 + 4 files changed, 95 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 R-glue.spec delete mode 100644 README.md create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ecb24b6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/glue_1.2.0.tar.gz diff --git a/R-glue.spec b/R-glue.spec new file mode 100644 index 0000000..122431a --- /dev/null +++ b/R-glue.spec @@ -0,0 +1,93 @@ +%global packname glue +%global rlibdir %{_libdir}/R/library + +# Not all available yet. +%global with_suggests 0 + +Name: R-%{packname} +Version: 1.2.0 +Release: 1%{?dist} +Summary: Interpreted String Literals + +License: MIT +URL: https://cran.r-project.org/web/packages/%{packname}/index.html +Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz + +# Here's the R view of the dependencies world: +# Depends: +# Imports: R-methods +# Suggests: R-testthat, R-covr, R-magrittr, R-crayon, R-knitr, R-rmarkdown, R-DBI, R-RSQLite, R-R.utils, R-forcats, R-microbenchmark, R-rprintf, R-stringr, R-ggplot2 +# LinkingTo: +# Enhances: + +Requires: R-methods +Suggests: R-crayon +Suggests: R-DBI +BuildRequires: R-devel +BuildRequires: tex(latex) +BuildRequires: R-methods +BuildRequires: R-testthat +BuildRequires: R-magrittr +BuildRequires: R-crayon +BuildRequires: R-knitr +BuildRequires: R-rmarkdown +BuildRequires: R-DBI +BuildRequires: R-RSQLite +BuildRequires: R-R.utils +BuildRequires: R-rprintf +BuildRequires: R-stringr +%if %{with_suggests} +BuildRequires: R-forcats +BuildRequires: R-microbenchmark +BuildRequires: R-ggplot2 +%endif + +%description +An implementation of interpreted string literals, inspired by Python's +Literal String Interpolation +and Docstrings and Julia's +Triple-Quoted String Literals + + +%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 +export LANG=C.UTF-8 +%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}/doc +%doc %{rlibdir}/%{packname}/html +%{rlibdir}/%{packname}/DESCRIPTION +%doc %{rlibdir}/%{packname}/NEWS.md +%license %{rlibdir}/%{packname}/LICENSE +%{rlibdir}/%{packname}/INDEX +%{rlibdir}/%{packname}/NAMESPACE +%{rlibdir}/%{packname}/Meta +%{rlibdir}/%{packname}/R +%{rlibdir}/%{packname}/help +%dir %{rlibdir}/%{packname}/libs +%{rlibdir}/%{packname}/libs/%{packname}.so + + +%changelog +* Wed Apr 25 2018 Elliott Sales de Andrade - 1.2.0-1 +- initial package for Fedora diff --git a/README.md b/README.md deleted file mode 100644 index bcc714d..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# R-glue - -The R-glue package \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..0c7767a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (glue_1.2.0.tar.gz) = e390f4c829367da2f0033bcd5500173abe96802698b27fb9d923deacc1fb610e8a407eeffedbb09e2ff2a8e931bf791cff68f861b481ffd684ee7e34610f7208