From e4bd9e8c31f8ca4473922da745d4755022c2cbdf Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Mon, 13 Nov 2017 16:52:19 -0500 Subject: [PATCH] Initial import (#1511866). --- .gitignore | 1 + R-curl.spec | 99 +++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 3 -- sources | 1 + 4 files changed, 101 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 R-curl.spec delete mode 100644 README.md create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..59272de --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/curl_3.0.tar.gz diff --git a/R-curl.spec b/R-curl.spec new file mode 100644 index 0000000..7d495f8 --- /dev/null +++ b/R-curl.spec @@ -0,0 +1,99 @@ +%global packname curl +%global rlibdir %{_libdir}/R/library + +# Dependency loops and/or not yet packaged. +%global with_doc 0 +# These all require the network at the moment + dependency loop. +%global with_test 0 + +Name: R-%{packname} +Version: 3.0 +Release: 1%{?dist} +Summary: A Modern and Flexible Web Client for R + +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: +# Suggests: R-testthat R-knitr R-jsonlite R-rmarkdown R-magrittr R-httpuv R-webutils +# LinkingTo: +# Enhances: + +BuildRequires: R-devel tex(latex) +BuildRequires: pkgconfig(libcurl) +BuildRequires: R-testthat +BuildRequires: R-httpuv +BuildRequires: R-jsonlite +%if %{with_doc} +BuildRequires: R-knitr +BuildRequires: R-magrittr +BuildRequires: R-rmarkdown +%endif +%if %{with_test} +BuildRequires: R-webutils +%endif + +%description +The curl() and curl_download() functions provide highly configurable +drop-in replacements for base url() and download.file() with better +performance, support for encryption (https, ftps), gzip compression, +authentication, and other 'libcurl' goodies. The core of the package +implements a framework for performing fully customized requests where data +can be processed either in memory, on disk, or streaming via the callback +or connection interfaces. Some knowledge of 'libcurl' is recommended; for +a more-user-friendly web client see the 'httr' package which builds on +this package with http specific tools and logic. + + +%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_test} +TEST= +%else +TEST="--no-tests --no-examples" +%endif +%if %{with_doc} +%{_bindir}/R CMD check %{packname} $TEST +%else +_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --ignore-vignettes $TEST +%endif + + +%files +%dir %{rlibdir}/%{packname} +%doc %{rlibdir}/%{packname}/doc +%doc %{rlibdir}/%{packname}/html +%license %{rlibdir}/%{packname}/LICENSE +%{rlibdir}/%{packname}/DESCRIPTION +%doc %{rlibdir}/%{packname}/NEWS +%{rlibdir}/%{packname}/INDEX +%{rlibdir}/%{packname}/NAMESPACE +%{rlibdir}/%{packname}/Meta +%{rlibdir}/%{packname}/R +%{rlibdir}/%{packname}/help +%{rlibdir}/%{packname}/data +%{rlibdir}/%{packname}/libs + + +%changelog +* Fri Nov 10 2017 Elliott Sales de Andrade 3.0-1 +- New upstream release. + +* Fri Aug 25 2017 Elliott Sales de Andrade 2.8.1-1 +- initial package for Fedora diff --git a/README.md b/README.md deleted file mode 100644 index 67f42e3..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# R-curl - -The R-curl package \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..5baffda --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (curl_3.0.tar.gz) = 3271053b5a84006b93e9463e209830055d76c5c3074d045b340f14cde40242e289e29822952550ce6ef34d4c341666ae58832b0b3f7f58718931b36ca998a1df